feffery_utils_components 0.2.0-rc24 → 0.2.0-rc25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESCRIPTION +1 -1
- package/MANIFEST.in +1 -1
- package/Project.toml +1 -1
- package/README.md +1 -1
- package/feffery_utils_components/FefferyDiv.py +12 -3
- package/feffery_utils_components/FefferyMotion.py +9 -3
- package/feffery_utils_components/__init__.py +23 -1
- package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +3 -1
- package/feffery_utils_components/async-feffery_animated_3d_background_p5.js.map +1 -0
- package/feffery_utils_components/async-feffery_animated_3d_background_three.js +3 -1
- package/feffery_utils_components/async-feffery_animated_3d_background_three.js.map +1 -0
- package/feffery_utils_components/async-feffery_animated_image.js +4 -1
- package/feffery_utils_components/async-feffery_animated_image.js.map +1 -0
- package/feffery_utils_components/async-feffery_aplayer.js +3 -1
- package/feffery_utils_components/async-feffery_aplayer.js.map +1 -0
- package/feffery_utils_components/async-feffery_auto_animate.js +3 -1
- package/feffery_utils_components/async-feffery_auto_animate.js.map +1 -0
- package/feffery_utils_components/async-feffery_auto_fit.js +3 -1
- package/feffery_utils_components/async-feffery_auto_fit.js.map +1 -0
- package/feffery_utils_components/async-feffery_burger.js +3 -1
- package/feffery_utils_components/async-feffery_burger.js.map +1 -0
- package/feffery_utils_components/async-feffery_captcha.js +3 -1
- package/feffery_utils_components/async-feffery_captcha.js.map +1 -0
- package/feffery_utils_components/async-feffery_color_pickers.js +4 -1
- package/feffery_utils_components/async-feffery_color_pickers.js.map +1 -0
- package/feffery_utils_components/async-feffery_dom2image.js +4 -4
- package/feffery_utils_components/async-feffery_dom2image.js.map +1 -0
- package/feffery_utils_components/async-feffery_dplayer.js +4 -1
- package/feffery_utils_components/async-feffery_dplayer.js.map +1 -0
- package/feffery_utils_components/async-feffery_emoji_picker.js +4 -1
- package/feffery_utils_components/async-feffery_emoji_picker.js.map +1 -0
- package/feffery_utils_components/async-feffery_excel_preview.js +4 -1
- package/feffery_utils_components/async-feffery_excel_preview.js.map +1 -0
- package/feffery_utils_components/async-feffery_extra_spinner.js +4 -1
- package/feffery_utils_components/async-feffery_extra_spinner.js.map +1 -0
- package/feffery_utils_components/async-feffery_fancy_button.js +3 -1
- package/feffery_utils_components/async-feffery_fancy_button.js.map +1 -0
- package/feffery_utils_components/async-feffery_grid.js +3 -1
- package/feffery_utils_components/async-feffery_grid.js.map +1 -0
- package/feffery_utils_components/async-feffery_http_requests.js +4 -1
- package/feffery_utils_components/async-feffery_http_requests.js.map +1 -0
- package/feffery_utils_components/async-feffery_image_cropper.js +4 -1
- package/feffery_utils_components/async-feffery_image_cropper.js.map +1 -0
- package/feffery_utils_components/async-feffery_json_viewer.js +3 -1
- package/feffery_utils_components/async-feffery_json_viewer.js.map +1 -0
- package/feffery_utils_components/async-feffery_local_large_storage.js +4 -1
- package/feffery_utils_components/async-feffery_local_large_storage.js.map +1 -0
- package/feffery_utils_components/async-feffery_markdown_editor.js +3 -3
- package/feffery_utils_components/async-feffery_markdown_editor.js.map +1 -0
- package/feffery_utils_components/async-feffery_motion.js +3 -1
- package/feffery_utils_components/async-feffery_motion.js.map +1 -0
- package/feffery_utils_components/async-feffery_music_player.js +4 -1
- package/feffery_utils_components/async-feffery_music_player.js.map +1 -0
- package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +4 -1
- package/feffery_utils_components/async-feffery_photo_sphere_viewer.js.map +1 -0
- package/feffery_utils_components/async-feffery_resizable.js +3 -1
- package/feffery_utils_components/async-feffery_resizable.js.map +1 -0
- package/feffery_utils_components/async-feffery_rich_text_editor.js +4 -4
- package/feffery_utils_components/async-feffery_rich_text_editor.js.map +1 -0
- package/feffery_utils_components/async-feffery_rnd.js +3 -1
- package/feffery_utils_components/async-feffery_rnd.js.map +1 -0
- package/feffery_utils_components/async-feffery_seamless_scroll.js +3 -1
- package/feffery_utils_components/async-feffery_seamless_scroll.js.map +1 -0
- package/feffery_utils_components/async-feffery_shortcut_panel.js +32 -29
- package/feffery_utils_components/async-feffery_shortcut_panel.js.map +1 -0
- package/feffery_utils_components/async-feffery_slider_captcha.js +4 -1
- package/feffery_utils_components/async-feffery_slider_captcha.js.map +1 -0
- package/feffery_utils_components/async-feffery_sortable.js +3 -1
- package/feffery_utils_components/async-feffery_sortable.js.map +1 -0
- package/feffery_utils_components/async-feffery_vditor.js +4 -1
- package/feffery_utils_components/async-feffery_vditor.js.map +1 -0
- package/feffery_utils_components/async-feffery_word_preview.js +4 -1
- package/feffery_utils_components/async-feffery_word_preview.js.map +1 -0
- package/feffery_utils_components/async-fuc-shared.js +4 -135
- package/feffery_utils_components/async-fuc-shared.js.map +1 -0
- package/feffery_utils_components/feffery_utils_components.min.js +27 -30
- package/feffery_utils_components/feffery_utils_components.min.js.map +1 -0
- package/feffery_utils_components/metadata.json +85 -0
- package/feffery_utils_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/lib/components/animations/FefferyMotion.react.js +12 -0
- package/src/lib/components/container/FefferyDiv.react.js +115 -55
- package/src/lib/fragments/animations/FefferyMotion.react.js +30 -23
- package/tests/MotionTest/app.py +50 -0
- package/usage.py +25 -25
- package/webpack.config.js +3 -11
|
@@ -1 +1,4 @@
|
|
|
1
|
-
(window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[17],{526:function(k,e,t){t.r(e);var r={},B=(t.r(r),t.d(r,"hasBrowserEnv",function(){return i}),t.d(r,"hasStandardBrowserWebWorkerEnv",function(){return W}),t.d(r,"hasStandardBrowserEnv",function(){return J}),t.d(r,"origin",function(){return G}),t(1)),w=t(551),D=t(653),u=t(576);function n(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function o(e,t){this._pairs=[],e&&Object(u.a)(e,this,t)}var a=o.prototype,q=(a.append=function(e,t){this._pairs.push([e,t])},a.toString=function(t){let r=t?function(e){return t.call(this,e,n)}:n;return this._pairs.map(function(e){return r(e[0])+"="+r(e[1])},"").join("&")},o);function I(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function M(t,e,r){if(e){var n=r&&r.encode||I,o=r&&r.serialize,o=o?o(e,r):w.a.isURLSearchParams(e)?e.toString():new q(e,r).toString(n);if(o){let e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}}return t}var z=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.a.forEach(this.handlers,function(e){null!==e&&t(e)})}},v=t(556),H={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},a={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:q,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let i="undefined"!=typeof window&&"undefined"!=typeof document,J=(m="undefined"!=typeof navigator&&navigator.product,i&&["ReactNative","NativeScript","NS"].indexOf(m)<0),W="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,G=i&&window.location.href||"http://localhost";function K(e){function s(e,t,r,n){var o,a,i=e[n++];return"__proto__"===i||(o=Number.isFinite(+i),a=n>=e.length,i=!i&&w.a.isArray(r)?r.length:i,a?w.a.hasOwnProp(r,i)?r[i]=[r[i],t]:r[i]=t:(r[i]&&w.a.isObject(r[i])||(r[i]=[]),s(e,t,r[i],n)&&w.a.isArray(r[i])&&(r[i]=(e=>{var t={},r=Object.keys(e);let n;var o,a=r.length;for(n=0;n<a;n++)t[o=r[n]]=e[o];return t})(r[i]))),!o)}if(w.a.isFormData(e)&&w.a.isFunction(e.entries)){let r={};return w.a.forEachEntry(e,(e,t)=>{s(w.a.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),t,r,0)}),r}return null}var g={...r,...a};let s={transitional:H,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){var r,n,o=e.getContentType()||"",a=-1<o.indexOf("application/json"),i=w.a.isObject(t);if(i&&w.a.isHTMLForm(t)&&(t=new FormData(t)),w.a.isFormData(t))return a?JSON.stringify(K(t)):t;if(!(w.a.isArrayBuffer(t)||w.a.isBuffer(t)||w.a.isStream(t)||w.a.isFile(t)||w.a.isBlob(t)||w.a.isReadableStream(t))){if(w.a.isArrayBufferView(t))return t.buffer;if(w.a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(i){if(-1<o.indexOf("application/x-www-form-urlencoded"))return r=t,n=this.formSerializer,Object(u.a)(r,new g.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return g.isNode&&w.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},n)).toString();if((r=w.a.isFileList(t))||-1<o.indexOf("multipart/form-data")){let e=this.env&&this.env.FormData;return Object(u.a)(r?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(i||a){e.setContentType("application/json",!1);var s=t;if(w.a.isString(s))try{return(0,JSON.parse)(s),w.a.trim(s)}catch(s){if("SyntaxError"!==s.name)throw s}return(0,JSON.stringify)(s)}}return t}],transformResponse:[function(t){let r=this.transitional||s.transitional,e=r&&r.forcedJSONParsing,n="json"===this.responseType;if(!w.a.isResponse(t)&&!w.a.isReadableStream(t)&&t&&w.a.isString(t)&&(e&&!this.responseType||n)){let e=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(e){if("SyntaxError"===t.name)throw v.a.from(t,v.a.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:g.classes.FormData,Blob:g.classes.Blob},validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.a.forEach(["delete","get","head","post","put","patch"],e=>{s.headers[e]={}});var c=s;let V=w.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$=Symbol("internals");function l(e){return e&&String(e).trim().toLowerCase()}function f(e){return!1===e||null==e?e:w.a.isArray(e)?e.map(f):String(e)}function d(e,t,r,n,o){return w.a.isFunction(n)?n.call(this,t,r):w.a.isString(t=o?r:t)&&(w.a.isString(n)?-1!==t.indexOf(n):w.a.isRegExp(n)&&n.test(t))}class h{constructor(e){e&&this.set(e)}set(a,e,r){let o=this;function n(e,t,r){var n=l(t);if(!n)throw new Error("header name must be a non-empty string");n=w.a.findKey(o,n);n&&void 0!==o[n]&&!0!==r&&(void 0!==r||!1===o[n])||(o[n||t]=f(e))}var t=(e,r)=>w.a.forEach(e,(e,t)=>n(e,t,r));if(w.a.isPlainObject(a)||a instanceof this.constructor)t(a,e);else if(w.a.isString(a)&&(a=a.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim()))t((()=>{let t={},r,n,o;return a&&a.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&V[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(),e);else if(w.a.isHeaders(a))for(let[e,t]of a.entries())n(t,e,r);else null!=a&&n(e,a,r);return this}get(e,t){if(e=l(e)){var r=w.a.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){for(var n,o=e,a=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;n=i.exec(o);)a[n[1]]=n[2];return a}if(w.a.isFunction(t))return t.call(this,e,r);if(w.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){return!!(e=l(e))&&!(!(e=w.a.findKey(this,e))||void 0===this[e]||t&&!d(0,this[e],e,t))}delete(e,t){let r=this,n=!1;function o(e){(e=l(e))&&(e=w.a.findKey(r,e))&&(!t||d(0,r[e],e,t))&&(delete r[e],n=!0)}return w.a.isArray(e)?e.forEach(o):o(e),n}clear(e){var t=Object.keys(this);let r=t.length,n=!1;for(;r--;){var o=t[r];e&&!d(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(n){let o=this,a={};return w.a.forEach(this,(e,t)=>{var r=w.a.findKey(a,t);r?(o[r]=f(e),delete o[t]):((r=n?t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(t).trim())!==t&&delete o[t],o[r]=f(e),a[r]=!0)}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(r){let n=Object.create(null);return w.a.forEach(this,(e,t)=>{null!=e&&!1!==e&&(n[t]=r&&w.a.isArray(e)?e.join(", "):e)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let n=(this[$]=this[$]={accessors:{}}).accessors,a=this.prototype;function t(t){var e=l(t);if(!n[e]){{var r=a,o=t;let e=w.a.toCamelCase(" "+o);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+e,{value:function(e,t,r){return this[n].call(this,o,e,t,r)},configurable:!0})})}n[e]=!0}}return w.a.isArray(e)?e.forEach(t):t(e),this}}h.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.a.reduceDescriptors(h.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),w.a.freezeMethods(h);var E=h;function p(e,t){let r=this||c,n=t||r,o=E.from(n.headers),a=n.data;return w.a.forEach(e,function(e){a=e.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function X(e){return!(!e||!e.__CANCEL__)}function Q(e,t,r){v.a.call(this,null==e?"canceled":e,v.a.ERR_CANCELED,t,r),this.name="CanceledError"}w.a.inherits(Q,v.a,{__CANCEL__:!0});var b=Q,m=t(654);function Y(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new v.a("Request failed with status code "+r.status,[v.a.ERR_BAD_REQUEST,v.a.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}let O=(u,c,e=3)=>{let l=0,f=((a,i)=>{a=a||10;let s=new Array(a),u=new Array(a),c,l=0,f=0;return i=void 0!==i?i:1e3,function(e){var t=Date.now(),r=u[f];c=c||t,s[l]=e,u[l]=t;let n=f,o=0;for(;n!==l;)o+=s[n++],n%=a;return(l=(l+1)%a)===f&&(f=(f+1)%a),!(t-c<i)&&(e=r&&t-r)?Math.round(1e3*o/e):void 0}})(50,250);{var r=e=>{var t=e.loaded,r=e.lengthComputable?e.total:void 0,n=t-l,o=f(n);l=t,u({loaded:t,total:r,progress:r?t/r:void 0,bytes:n,rate:o||void 0,estimated:o&&r&&t<=r?(r-t)/o:void 0,event:e,lengthComputable:null!=r,[c?"download":"upload"]:!0})};let n,o,a=0,i=1e3/e,s=(e,t=Date.now())=>{a=t,n=null,o&&(clearTimeout(o),o=null),r.apply(null,e)};return[(...e)=>{var t=Date.now(),r=t-a;r>=i?s(e,t):(n=e,o=o||setTimeout(()=>{o=null,s(n)},i-r))},()=>n&&s(n)]}},Z=(t,r)=>{let n=null!=t;return[e=>r[0]({lengthComputable:n,total:t,loaded:e}),r[1]]},ee=t=>(...e)=>w.a.asap(()=>t(...e));var te=g.hasStandardBrowserEnv?(()=>{let r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),t;function o(e){let t=e;return r&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){e=w.a.isString(e)?o(e):e;return e.protocol===t.protocol&&e.host===t.host}})():function(){return!0},re=g.hasStandardBrowserEnv?{write(e,t,r,n,o,a){e=[e+"="+encodeURIComponent(t)];w.a.isNumber(r)&&e.push("expires="+new Date(r).toGMTString()),w.a.isString(n)&&e.push("path="+n),w.a.isString(o)&&e.push("domain="+o),!0===a&&e.push("secure"),document.cookie=e.join("; ")},read(e){e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ne(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?(e=e,(r=t)?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e):t;var r}let oe=e=>e instanceof E?{...e}:e;function y(n,o){o=o||{};let a={};function i(e,t,r){return w.a.isPlainObject(e)&&w.a.isPlainObject(t)?w.a.merge.call({caseless:r},e,t):w.a.isPlainObject(t)?w.a.merge({},t):w.a.isArray(t)?t.slice():t}function s(e,t,r){return w.a.isUndefined(t)?w.a.isUndefined(e)?void 0:i(void 0,e,r):i(e,t,r)}function e(e,t){if(!w.a.isUndefined(t))return i(void 0,t)}function t(e,t){return w.a.isUndefined(t)?w.a.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function u(e,t,r){return r in o?i(e,t):r in n?i(void 0,e):void 0}let c={url:e,method:e,data:e,baseURL:t,transformRequest:t,transformResponse:t,paramsSerializer:t,timeout:t,timeoutMessage:t,withCredentials:t,withXSRFToken:t,adapter:t,responseType:t,xsrfCookieName:t,xsrfHeaderName:t,onUploadProgress:t,onDownloadProgress:t,decompress:t,maxContentLength:t,maxBodyLength:t,beforeRedirect:t,transport:t,httpAgent:t,httpsAgent:t,cancelToken:t,socketPath:t,responseEncoding:t,validateStatus:u,headers:(e,t)=>s(oe(e),oe(t),!0)};return w.a.forEach(Object.keys(Object.assign({},n,o)),function(e){var t=c[e]||s,r=t(n[e],o[e],e);w.a.isUndefined(r)&&t!==u||(a[e]=r)}),a}var ae,ie,se=e=>{let t=y({},e),r,{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:u}=t;if(t.headers=s=E.from(s),t.url=M(ne(t.baseURL,t.url),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),w.a.isFormData(n))if(g.hasStandardBrowserEnv||g.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){let[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(g.hasStandardBrowserEnv&&((o=o&&w.a.isFunction(o)?o(t):o)||!1!==o&&te(t.url))){let e=a&&i&&re.read(i);e&&s.set(a,e)}return t},r="undefined"!=typeof XMLHttpRequest&&function(y){return new Promise(function(t,r){let n=se(y);var e=n.data,o=E.from(n.headers).normalize();let a,i,s,u,c,{responseType:l,onUploadProgress:f,onDownloadProgress:d}=n;function h(){u&&u(),c&&c(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let p=new XMLHttpRequest;function m(){var e;p&&(e=E.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),Y(function(e){t(e),h()},function(e){r(e),h()},{data:l&&"text"!==l&&"json"!==l?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:e,config:y,request:p}),p=null)}p.open(n.method.toUpperCase(),n.url,!0),p.timeout=n.timeout,"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(m)},p.onabort=function(){p&&(r(new v.a("Request aborted",v.a.ECONNABORTED,y,p)),p=null)},p.onerror=function(){r(new v.a("Network Error",v.a.ERR_NETWORK,y,p)),p=null},p.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";var t=n.transitional||H;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new v.a(e,t.clarifyTimeoutError?v.a.ETIMEDOUT:v.a.ECONNABORTED,y,p)),p=null},void 0===e&&o.setContentType(null),"setRequestHeader"in p&&w.a.forEach(o.toJSON(),function(e,t){p.setRequestHeader(t,e)}),w.a.isUndefined(n.withCredentials)||(p.withCredentials=!!n.withCredentials),l&&"json"!==l&&(p.responseType=n.responseType),d&&([s,c]=O(d,!0),p.addEventListener("progress",s)),f&&p.upload&&([i,u]=O(f),p.upload.addEventListener("progress",i),p.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(a=e=>{p&&(r(!e||e.type?new b(null,y,p):e),p.abort(),p=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal)&&(n.signal.aborted?a():n.signal.addEventListener("abort",a));o=(e=>(e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e))&&e[1]||"")(n.url);o&&-1===g.protocols.indexOf(o)?r(new v.a("Unsupported protocol "+o+":",v.a.ERR_BAD_REQUEST,y)):p.send(e||null)})},ue=(e,t)=>{function r(e){n||(n=!0,i(),e=e instanceof Error?e:this.reason,o.abort(e instanceof v.a?e:new b(e instanceof Error?e.message:e)))}let n,o=new AbortController,a=t&&setTimeout(()=>{r(new v.a(`timeout ${t} of ms exceeded`,v.a.ETIMEDOUT))},t),i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",r):e.unsubscribe(r))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",r));var s=o.signal;return s.unsubscribe=i,[s,()=>{a&&clearTimeout(a),a=null}]};let ce=(e,t,a,r,n)=>{let i=async function*(e,t,r){for await(var n of e){o=void 0;a=void 0;i=void 0;var o=ArrayBuffer.isView(n)?n:await r(String(n));var a=t;var i=o.byteLength;if(!a||i<a)yield o;else{let e,t=0;for(;t<i;)e=t+a,yield o.slice(t,e),t=e}}}(e,t,n),o,s=0,u=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{var t,r,{done:n,value:o}=await i.next();n?(u(),e.close()):(t=o.byteLength,a&&(r=s+=t,a(r)),e.enqueue(new Uint8Array(o)))}catch(e){throw u(e),e}},cancel:e=>(u(e),i.return())},{highWaterMark:2})},R="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,le=R&&"function"==typeof ReadableStream,S=R&&("function"==typeof TextEncoder?(ae=new TextEncoder,e=>ae.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),fe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},de=le&&fe(()=>{let e=!1;var t=new Request(g.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),T=le&&fe(()=>w.a.isReadableStream(new Response("").body)),x={stream:T&&(e=>e.body)},he=(R&&(ie=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(r=>{x[r]||(x[r]=w.a.isFunction(ie[r])?e=>e[r]():(e,t)=>{throw new v.a(`Response type '${r}' is not supported`,v.a.ERR_NOT_SUPPORT,t)})})),R&&(async n=>{let{url:t,method:e,data:i,signal:r,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:l,withCredentials:f="same-origin",fetchOptions:d}=se(n);c=c?(c+"").toLowerCase():"text";let h,p,[m,y]=r||o||a?ue([r,o],a):[],g=()=>{h||setTimeout(()=>{m&&m.unsubscribe()}),h=!0},b;try{if(u&&de&&"get"!==e&&"head"!==e&&0!==(b=await(async(e,t)=>{e=w.a.toFiniteNumber(e.getContentLength());return null==e?(async e=>null==e?0:w.a.isBlob(e)?e.size:w.a.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:w.a.isArrayBufferView(e)||w.a.isArrayBuffer(e)?e.byteLength:(w.a.isURLSearchParams(e)&&(e+=""),w.a.isString(e)?(await S(e)).byteLength:void 0))(t):e})(l,i))){let e,r=new Request(t,{method:"POST",body:i,duplex:"half"});if(w.a.isFormData(i)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){let[e,t]=Z(b,O(ee(u)));i=ce(r.body,65536,e,t,S)}}w.a.isString(f)||(f=f?"include":"omit"),p=new Request(t,{...d,signal:m,method:e.toUpperCase(),headers:l.normalize().toJSON(),body:i,duplex:"half",credentials:f});let o=await fetch(p),a=T&&("stream"===c||"response"===c);if(T&&(s||a)){let t={},e=(["status","statusText","headers"].forEach(e=>{t[e]=o[e]}),w.a.toFiniteNumber(o.headers.get("content-length"))),[r,n]=s&&Z(e,O(ee(s),!0))||[];o=new Response(ce(o.body,65536,r,()=>{n&&n(),a&&g()},S),t)}c=c||"text";let r=await x[w.a.findKey(x,c)||"text"](o,n);return a||g(),y&&y(),await new Promise((e,t)=>{Y(e,t,{data:r,headers:E.from(o.headers),status:o.status,statusText:o.statusText,config:n,request:p})})}catch(t){if(g(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new v.a("Network Error",v.a.ERR_NETWORK,n,p),{cause:t.cause||t});throw v.a.from(t,t&&t.code,n,p)}})),pe={http:m.a,xhr:r,fetch:he},me=(w.a.forEach(pe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}),e=>"- "+e),ye=e=>w.a.isFunction(e)||null===e||!1===e;var ge=r=>{var n=(r=w.a.isArray(r)?r:[r]).length;let o,a;var i={};for(let t=0;t<n;t++){let e;if(o=r[t],a=o,!ye(o)&&void 0===(a=pe[(e=String(o)).toLowerCase()]))throw new v.a(`Unknown adapter '${e}'`);if(a)break;i[e||"#"+t]=a}if(a)return a;{let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));var t=n?1<e.length?"since :\n"+e.map(me).join("\n"):" "+me(e[0]):"as no adapter specified";throw new v.a("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}};function A(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new b(null,e)}function be(t){return A(t),t.headers=E.from(t.headers),t.data=p.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ge(t.adapter||c.adapter)(t).then(function(e){return A(t),e.data=p.call(t,t.transformResponse,e),e.headers=E.from(e.headers),e},function(e){return X(e)||(A(t),e&&e.response&&(e.response.data=p.call(t,t.transformResponse,e.response),e.response.headers=E.from(e.response.headers))),Promise.reject(e)})}let j={},we=(["object","boolean","number","function","string","symbol"].forEach((t,r)=>{j[t]=function(e){return typeof e===t||"a"+(r<1?"n ":" ")+t}}),{});j.transitional=function(n,o,r){function a(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(e,t,r)=>{if(!1===n)throw new v.a(a(t," has been removed"+(o?" in "+o:"")),v.a.ERR_DEPRECATED);return o&&!we[t]&&(we[t]=!0,console.warn(a(t," has been deprecated since v"+o+" and will be removed in the near future"))),!n||n(e,t,r)}};var L={assertOptions:function(r,e,t){if("object"!=typeof r)throw new v.a("options must be an object",v.a.ERR_BAD_OPTION_VALUE);var n=Object.keys(r);let o=n.length;for(;0<o--;){var a=n[o],i=e[a];if(i){let e=r[a],t=void 0===e||i(e,a,r);if(!0!==t)throw new v.a("option "+a+" must be "+t,v.a.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new v.a("Unknown option "+a,v.a.ERR_BAD_OPTION)}},validators:j};let N=L.validators;class P{constructor(e){this.defaults=e,this.interceptors={request:new z,response:new z}}async request(t,r){try{return await this._request(t,r)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(n,t){"string"==typeof n?(t=t||{}).url=n:t=n||{};let{transitional:e,paramsSerializer:r,headers:o}=t=y(this.defaults,t);void 0!==e&&L.assertOptions(e,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),null!=r&&(w.a.isFunction(r)?t.paramsSerializer={serialize:r}:L.assertOptions(r,{encode:N.function,serialize:N.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=o&&w.a.merge(o.common,o[t.method]);o&&w.a.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=E.concat(a,o);let i=[],s=!0,u=(this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}),[]),c;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let l,f=0;if(s){l=i.length;let r=t;for(f=0;f<l;){let e=i[f++],t=i[f++];try{r=e(r)}catch(n){t.call(this,n);break}}try{c=be.call(this,r)}catch(n){return Promise.reject(n)}for(f=0,l=u.length;f<l;)c=c.then(u[f++],u[f++])}else{let e=[be.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);f<l;)c=c.then(e[f++],e[f++])}return c}getUri(e){return M(ne((e=y(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}w.a.forEach(["delete","get","head","options"],function(r){P.prototype[r]=function(e,t){return this.request(y(t||{},{method:r,url:e,data:(t||{}).data}))}}),w.a.forEach(["post","put","patch"],function(o){function e(n){return function(e,t,r){return this.request(y(r||{},{method:o,headers:n?{"Content-Type":"multipart/form-data"}:{},url:e,data:t}))}}P.prototype[o]=e(),P.prototype[o+"Form"]=e(!0)});var C=P;let ve=class Se{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let n,o=(this.promise=new Promise(function(e){n=e}),this);this.promise.then(t=>{if(o._listeners){let e=o._listeners.length;for(;0<e--;)o._listeners[e](t);o._listeners=null}}),this.promise.then=e=>{let t;return(e=new Promise(e=>{o.subscribe(e),t=e}).then(e)).cancel=function(){o.unsubscribe(t)},e},e(function(e,t,r){o.reason||(o.reason=new b(e,t,r),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){this._listeners&&-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)}static source(){let t;return{token:new Se(function(e){t=e}),cancel:t}}},_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_).forEach(([e,t])=>{_[t]=e});var a=_,m=function t(r){var e=new C(r),n=Object(D.a)(C.prototype.request,e);return w.a.extend(n,C.prototype,e,{allOwnKeys:!0}),w.a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(e){return t(y(r,e))},n}(c),Ee=(m.Axios=C,m.CanceledError=b,m.CancelToken=ve,m.isCancel=X,m.VERSION="1.7.4",m.toFormData=u.a,m.AxiosError=v.a,m.Cancel=m.CanceledError,m.all=function(e){return Promise.all(e)},m.spread=function(t){return function(e){return t.apply(null,e)}},m.isAxiosError=function(e){return w.a.isObject(e)&&!0===e.isAxiosError},m.mergeConfig=y,m.AxiosHeaders=E,m.formToJSON=e=>K(w.a.isHTMLForm(e)?new FormData(e):e),m.getAdapter=ge,m.HttpStatusCode=a,m.default=m),r=t(225);function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(){U=function(){return i};var u,i={},e=Object.prototype,c=e.hasOwnProperty,l=Object.defineProperty||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",o=t.toStringTag||"@@toStringTag";function a(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(u){a=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o,a,i,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),n=new T(n||[]);return l(t,"_invoke",{value:(o=e,a=r,i=n,s=d,function(e,t){if(s===h)throw Error("Generator is already running");if(s===p){if("throw"===e)throw t;return{value:u,done:!0}}for(i.method=e,i.arg=t;;){var r=i.delegate;if(r){r=function e(t,r){var n=r.method,o=t.iterator[n];if(o===u)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=u,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;n=f(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=u),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}(r,i);if(r){if(r===m)continue;return r}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=p,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=h;r=f(o,a,i);if("normal"===r.type){if(s=i.done?p:"suspendedYield",r.arg===m)continue;return{value:r.arg,done:i.done}}"throw"===r.type&&(s=p,i.method="throw",i.arg=r.arg)}})}),t}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}i.wrap=s;var d="suspendedStart",h="executing",p="completed",m={};function y(){}function g(){}function b(){}var t={},w=(a(t,n,function(){return this}),Object.getPrototypeOf),w=w&&w(w(x([]))),v=(w&&w!==e&&c.call(w,n)&&(t=w),b.prototype=y.prototype=Object.create(t));function E(e){["next","throw","return"].forEach(function(t){a(e,t,function(e){return this._invoke(t,e)})})}function O(i,s){var t;l(this,"_invoke",{value:function(r,n){function e(){return new s(function(e,t){!function t(e,r,n,o){var a,e=f(i[e],i,r);if("throw"!==e.type)return(r=(a=e.arg).value)&&"object"==F(r)&&c.call(r,"__await")?s.resolve(r.__await).then(function(e){t("next",e,n,o)},function(e){t("throw",e,n,o)}):s.resolve(r).then(function(e){a.value=e,n(a)},function(e){return t("throw",e,n,o)});o(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function x(t){if(t||""===t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(c.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=u,e.done=!0,e}).next=e}throw new TypeError(F(t)+" is not iterable")}return l(v,"constructor",{value:g.prototype=b,configurable:!0}),l(b,"constructor",{value:g,configurable:!0}),g.displayName=a(b,o,"GeneratorFunction"),i.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,a(e,o,"GeneratorFunction")),e.prototype=Object.create(v),e},i.awrap=function(e){return{__await:e}},E(O.prototype),a(O.prototype,r,function(){return this}),i.AsyncIterator=O,i.async=function(e,t,r,n,o){void 0===o&&(o=Promise);var a=new O(s(e,t,r,n),o);return i.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},E(v),a(v,o,"Generator"),a(v,n,function(){return this}),a(v,"toString",function(){return"[object Generator]"}),i.keys=function(e){var t,r=Object(e),n=[];for(t in r)n.push(t);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},i.values=x,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&c.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=u)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return a.type="throw",a.arg=r,n.next=e,t&&(n.method="next",n.arg=u),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],a=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var i=c.call(o,"catchLoc"),s=c.call(o,"finallyLoc");if(i&&s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&c.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var a=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(r=o.completion).type&&(n=r.arg,S(o)),n}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=u),m}},i}function Oe(e,t,r,n,o,a,i){try{var s=e[a](i),u=s.value}catch(e){return r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Re(e){var t=e.requestConfig,r=e.setProps,n=(Object(B.useEffect)(function(){t&&(r({status:"pending"}),n(t)),r({requestConfig:null})},[t]),(()=>{var s;return s=U().mark(function e(t){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Ee(t).then(function(e){r({responseResult:{status:e.status,statusText:e.statusText,data:e.data,requestURL:e.request.responseURL,timestamp:(new Date).getTime()},status:"idle"})}).catch(function(e){var t;r({responseResult:{status:null==(t=e.response)?void 0:t.status,statusText:null==(t=e.response)?void 0:t.statusText,data:null==(t=e.response)?void 0:t.data,requestURL:e.request.responseURL,timestamp:(new Date).getTime(),code:e.code,message:e.message},status:"idle"})});case 1:case"end":return e.stop()}},e)}),function(e){return function(){var e=this,i=arguments;return new Promise(function(t,r){var n=s.apply(e,i);function o(e){Oe(n,t,r,o,a,"next",e)}function a(e){Oe(n,t,r,o,a,"throw",e)}o(void 0)})}.apply(this,arguments)}})());return React.createElement(React.Fragment,null)}(e.default=Re).defaultProps=r.b,Re.propTypes=r.c},551:function(e,H,J){!function(e,t,r){var n,o=J(653);let a=Object.prototype.toString,u=Object.getPrototypeOf,i=(n=Object.create(null),e=>{e=a.call(e);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())}),s=t=>(t=t.toLowerCase(),e=>i(e)===t),c=t=>e=>typeof e===t,l=Array.isArray,f=c("undefined"),d=s("ArrayBuffer"),h=c("string"),p=c("function"),m=c("number"),y=e=>null!==e&&"object"==typeof e,g=e=>{var t;return"object"===i(e)&&!(null!==(t=u(e))&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=s("Date"),w=s("File"),v=s("Blob"),E=s("FileList"),k=s("URLSearchParams"),[B,D,q,I]=["ReadableStream","Request","Response","Headers"].map(s);function O(n,o,{allOwnKeys:a=!1}={}){if(null!=n){let r,e;if("object"!=typeof n&&(n=[n]),l(n))for(r=0,e=n.length;r<e;r++)o.call(null,n[r],r,n);else{let e=a?Object.getOwnPropertyNames(n):Object.keys(n),t=e.length;var i;for(r=0;r<t;r++)i=e[r],o.call(null,n[i],i,n)}}}function R(e,t){t=t.toLowerCase();var r=Object.keys(e);let n,o=r.length;for(;0<o--;)if(t===(n=r[o]).toLowerCase())return n;return null}let S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,T=e=>!f(e)&&e!==S;var x,A;x="undefined"!=typeof Uint8Array&&u(Uint8Array);let M=s("HTMLFormElement"),j=(A=[Object.prototype.hasOwnProperty][0],(e,t)=>A.call(e,t)),z=s("RegExp"),L=(n,o)=>{let e=Object.getOwnPropertyDescriptors(n),a={};O(e,(e,t)=>{var r;!1!==(r=o(e,t,n))&&(a[t]=r||e)}),Object.defineProperties(n,a)},N="abcdefghijklmnopqrstuvwxyz",P={DIGIT:"0123456789",ALPHA:N,ALPHA_DIGIT:N+N.toUpperCase()+"0123456789"};var C,_,F,e=s("AsyncFunction"),U=(U="function"==typeof t,C=p(S.postMessage),U?t:C?(_="axios@"+Math.random(),F=[],S.addEventListener("message",({source:e,data:t})=>{e===S&&t===_&&F.length&&F.shift()()},!1),e=>{F.push(e),S.postMessage(_,"*")}):e=>setTimeout(e)),t="undefined"!=typeof queueMicrotask?queueMicrotask.bind(S):void 0!==r&&r.nextTick||U;H.a={isArray:l,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{var t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=i(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:h,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:g,isReadableStream:B,isRequest:D,isResponse:q,isHeaders:I,isUndefined:f,isDate:b,isFile:w,isBlob:v,isRegExp:z,isFunction:p,isStream:e=>y(e)&&p(e.pipe),isURLSearchParams:k,isTypedArray:e=>x&&e instanceof x,isFileList:E,forEach:O,merge:function r(){let n=(T(this)&&this||{}).caseless,o={},a=(e,t)=>{t=n&&R(o,t)||t;g(o[t])&&g(e)?o[t]=r(o[t],e):g(e)?o[t]=r({},e):l(e)?o[t]=e.slice():o[t]=e};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&O(arguments[e],a);return o},extend:(r,e,n,{allOwnKeys:t}={})=>(O(e,(e,t)=>{n&&p(e)?r[t]=Object(o.a)(e,n):r[t]=e},{allOwnKeys:t}),r),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>e=65279===e.charCodeAt(0)?e.slice(1):e,inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,a,i;var s={};if(t=t||{},null!=e)do{for(o=Object.getOwnPropertyNames(e),a=o.length;0<a--;)i=o[a],n&&!n(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0)}while((e=!1!==r&&u(e))&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:i,kindOfTest:s,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;e=e.indexOf(t,r);return-1!==e&&e===r},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;for(var r=new Array(t);0<t--;)r[t]=e[t];return r},forEachEntry:(t,r)=>{let e=(t&&t[Symbol.iterator]).call(t);for(var n;(n=e.next())&&!n.done;){let e=n.value;r.call(t,e[0],e[1])}},matchAll:(e,t)=>{for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:M,hasOwnProperty:j,hasOwnProp:j,reduceDescriptors:L,freezeMethods:n=>{L(n,(e,t)=>{if(p(n)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var r=n[t];p(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")}))})},toObjectSet:(e,t)=>{let r={},n=e=>{e.forEach(e=>{r[e]=!0})};return l(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:R,global:S,isContextDefined:T,ALPHABET:P,generateString:(e=16,t=P.ALPHA_DIGIT)=>{let r="";for(var n=t.length;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=new Array(10),o=(e,n)=>{if(y(e)){if(0<=t.indexOf(e))return;if(!("toJSON"in e)){t[n]=e;let r=l(e)?[]:{};return O(e,(e,t)=>{e=o(e,n+1);f(e)||(r[t]=e)}),t[n]=void 0,r}}return e};return o(e,0)},isAsyncFn:e,isThenable:e=>e&&(y(e)||p(e))&&p(e.then)&&p(e.catch),setImmediate:U,asap:t}}.call(this,J(32),J(563).setImmediate,J(318))},556:function(e,t,r){var s=r(551);function u(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}s.a.inherits(u,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let c=u.prototype,n={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{n[e]={value:e}}),Object.defineProperties(u,n),Object.defineProperty(c,"isAxiosError",{value:!0}),u.from=(e,t,r,n,o,a)=>{var i=Object.create(c);return s.a.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),u.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i},t.a=u},576:function(e,t,r){!function(d){var h=r(551),p=r(556),m=r(654);function y(e){return h.a.isPlainObject(e)||h.a.isArray(e)}function g(e){return h.a.endsWith(e,"[]")?e.slice(0,-2):e}function b(e,t,r){return e?e.concat(t).map(function(e,t){return e=g(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let w=h.a.toFlatObject(h.a,{},null,function(e){return/^is[A-Z]/.test(e)});t.a=function(e,a,t){if(!h.a.isObject(e))throw new TypeError("target must be an object");a=a||new(m.a||FormData);let i=(t=h.a.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!h.a.isUndefined(t[e])})).metaTokens,o=t.visitor||n,s=t.dots,u=t.indexes,r=(t.Blob||"undefined"!=typeof Blob&&Blob)&&h.a.isSpecCompliantForm(a);if(!h.a.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(h.a.isDate(e))return e.toISOString();if(!r&&h.a.isBlob(e))throw new p.a("Blob is not supported. Use a Buffer instead.");return h.a.isArrayBuffer(e)||h.a.isTypedArray(e)?r&&"function"==typeof Blob?new Blob([e]):d.from(e):e}function n(e,r,t){let n=e;if(e&&!t&&"object"==typeof e)if(h.a.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else if(h.a.isArray(e)&&(o=e,h.a.isArray(o))&&!o.some(y)||(h.a.isFileList(e)||h.a.endsWith(r,"[]"))&&(n=h.a.toArray(e)))return r=g(r),n.forEach(function(e,t){h.a.isUndefined(e)||null===e||a.append(!0===u?b([r],t,s):null===u?r:r+"[]",c(e))}),!1;var o;return!!y(e)||(a.append(b(t,r,s),c(e)),!1)}let l=[],f=Object.assign(w,{defaultVisitor:n,convertValue:c,isVisitable:y});if(h.a.isObject(e))return function r(e,n){if(!h.a.isUndefined(e)){if(-1!==l.indexOf(e))throw Error("Circular reference detected in "+n.join("."));l.push(e),h.a.forEach(e,function(e,t){!0===(!(h.a.isUndefined(e)||null===e)&&o.call(a,e,h.a.isString(t)?t.trim():t,n,f))&&r(e,n?n.concat(t):[t])}),l.pop()}}(e),a;throw new TypeError("data must be an object")}}.call(this,r(557).Buffer)},653:function(e,t,r){function n(e,t){return function(){return e.apply(t,arguments)}}r.d(t,"a",function(){return n})},654:function(e,t,r){t.a=null}}]);
|
|
1
|
+
/*! For license information please see async-feffery_http_requests.js.LICENSE.txt */
|
|
2
|
+
(window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[17],{526:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"hasBrowserEnv",(function(){return b})),n.d(r,"hasStandardBrowserWebWorkerEnv",(function(){return E})),n.d(r,"hasStandardBrowserEnv",(function(){return v})),n.d(r,"navigator",(function(){return w})),n.d(r,"origin",(function(){return O}));var o=n(1),a=n(551),i=n(653),s=n(576);function c(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function u(e,t){this._pairs=[],e&&Object(s.a)(e,this,t)}const l=u.prototype;l.append=function(e,t){this._pairs.push([e,t])},l.toString=function(e){const t=e?function(t){return e.call(this,t,c)}:c;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var f=u;function d(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function h(e,t,n){if(!t)return e;const r=n&&n.encode||d,o=n&&n.serialize;let i;if(i=o?o(t,n):a.a.isURLSearchParams(t)?t.toString():new f(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var p=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},m=n(556),y={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:f,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const b="undefined"!=typeof window&&"undefined"!=typeof document,w="object"==typeof navigator&&navigator||void 0,v=b&&(!w||["ReactNative","NativeScript","NS"].indexOf(w.product)<0),E="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,O=b&&window.location.href||"http://localhost";var R={...r,...g};var S=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),c=o>=e.length;if(i=!i&&a.a.isArray(r)?r.length:i,c)return a.a.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&a.a.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&a.a.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[i])),!s}if(a.a.isFormData(e)&&a.a.isFunction(e.entries)){const n={};return a.a.forEachEntry(e,(e,r)=>{t(function(e){return a.a.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null};const T={transitional:y,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=a.a.isObject(e);o&&a.a.isHTMLForm(e)&&(e=new FormData(e));if(a.a.isFormData(e))return r?JSON.stringify(S(e)):e;if(a.a.isArrayBuffer(e)||a.a.isBuffer(e)||a.a.isStream(e)||a.a.isFile(e)||a.a.isBlob(e)||a.a.isReadableStream(e))return e;if(a.a.isArrayBufferView(e))return e.buffer;if(a.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Object(s.a)(e,new R.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return R.isNode&&a.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=a.a.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(s.a)(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(a.a.isString(e))try{return(t||JSON.parse)(e),a.a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||T.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(a.a.isResponse(e)||a.a.isReadableStream(e))return e;if(e&&a.a.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw m.a.from(e,m.a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:R.classes.FormData,Blob:R.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.a.forEach(["delete","get","head","post","put","patch"],e=>{T.headers[e]={}});var x=T;const A=a.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const j=Symbol("internals");function L(e){return e&&String(e).trim().toLowerCase()}function N(e){return!1===e||null==e?e:a.a.isArray(e)?e.map(N):String(e)}function P(e,t,n,r,o){return a.a.isFunction(r)?r.call(this,t,n):(o&&(t=n),a.a.isString(t)?a.a.isString(r)?-1!==t.indexOf(r):a.a.isRegExp(r)?r.test(t):void 0:void 0)}class _{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=L(t);if(!o)throw new Error("header name must be a non-empty string");const i=a.a.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=N(e))}const i=(e,t)=>a.a.forEach(e,(e,n)=>o(e,n,t));if(a.a.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(a.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&A[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(a.a.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=L(e)){const n=a.a.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(a.a.isFunction(t))return t.call(this,e,n);if(a.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=L(e)){const n=a.a.findKey(this,e);return!(!n||void 0===this[n]||t&&!P(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=L(e)){const o=a.a.findKey(n,e);!o||t&&!P(0,n[o],o,t)||(delete n[o],r=!0)}}return a.a.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!P(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return a.a.forEach(this,(r,o)=>{const i=a.a.findKey(n,o);if(i)return t[i]=N(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();s!==o&&delete t[o],t[s]=N(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return a.a.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&a.a.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[j]=this[j]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=L(e);t[r]||(!function(e,t){const n=a.a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return a.a.isArray(e)?e.forEach(r):r(e),this}}_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.a.reduceDescriptors(_.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),a.a.freezeMethods(_);var C=_;function F(e,t){const n=this||x,r=t||n,o=C.from(r.headers);let i=r.data;return a.a.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function U(e){return!(!e||!e.__CANCEL__)}function k(e,t,n){m.a.call(this,null==e?"canceled":e,m.a.ERR_CANCELED,t,n),this.name="CanceledError"}a.a.inherits(k,m.a,{__CANCEL__:!0});var B=k,D=n(654);function q(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new m.a("Request failed with status code "+n.status,[m.a.ERR_BAD_REQUEST,m.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var I=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[i];o||(o=c),n[a]=s,r[a]=c;let l=i,f=0;for(;l!==a;)f+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}};var M=function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]};const z=(e,t,n=3)=>{let r=0;const o=I(50,250);return M(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,c=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},H=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},J=e=>(...t)=>a.a.asap(()=>e(...t));var W=R.hasStandardBrowserEnv?function(){const e=R.navigator&&/(msie|trident)/i.test(R.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=a.a.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},G=R.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];a.a.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),a.a.isString(r)&&s.push("path="+r),a.a.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function K(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const V=e=>e instanceof C?{...e}:e;function $(e,t){t=t||{};const n={};function r(e,t,n){return a.a.isPlainObject(e)&&a.a.isPlainObject(t)?a.a.merge.call({caseless:n},e,t):a.a.isPlainObject(t)?a.a.merge({},t):a.a.isArray(t)?t.slice():t}function o(e,t,n){return a.a.isUndefined(t)?a.a.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!a.a.isUndefined(t))return r(void 0,t)}function s(e,t){return a.a.isUndefined(t)?a.a.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function c(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(e,t)=>o(V(e),V(t),!0)};return a.a.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=u[r]||o,s=i(e[r],t[r],r);a.a.isUndefined(s)&&i!==c||(n[r]=s)})),n}var X=e=>{const t=$({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:c,auth:u}=t;if(t.headers=c=C.from(c),t.url=h(K(t.baseURL,t.url),e.params,e.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),a.a.isFormData(r))if(R.hasStandardBrowserEnv||R.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(!1!==(n=c.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];c.setContentType([e||"multipart/form-data",...t].join("; "))}if(R.hasStandardBrowserEnv&&(o&&a.a.isFunction(o)&&(o=o(t)),o||!1!==o&&W(t.url))){const e=i&&s&&G.read(s);e&&c.set(i,e)}return t};var Q="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=X(e);let o=r.data;const i=C.from(r.headers).normalize();let s,c,u,l,f,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=r;function g(){l&&l(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let b=new XMLHttpRequest;function w(){if(!b)return;const r=C.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());q((function(e){t(e),g()}),(function(e){n(e),g()}),{data:d&&"text"!==d&&"json"!==d?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout,"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(w)},b.onabort=function(){b&&(n(new m.a("Request aborted",m.a.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new m.a("Network Error",m.a.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||y;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new m.a(t,o.clarifyTimeoutError?m.a.ETIMEDOUT:m.a.ECONNABORTED,e,b)),b=null},void 0===o&&i.setContentType(null),"setRequestHeader"in b&&a.a.forEach(i.toJSON(),(function(e,t){b.setRequestHeader(t,e)})),a.a.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),d&&"json"!==d&&(b.responseType=r.responseType),p&&([u,f]=z(p,!0),b.addEventListener("progress",u)),h&&b.upload&&([c,l]=z(h),b.upload.addEventListener("progress",c),b.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(s=t=>{b&&(n(!t||t.type?new B(null,e,b):t),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===R.protocols.indexOf(v)?n(new m.a("Unsupported protocol "+v+":",m.a.ERR_BAD_REQUEST,e)):b.send(o||null)}))};var Y=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof m.a?t:new B(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{o(new m.a(`timeout ${t} of ms exceeded`,m.a.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=i,[s,()=>{a&&clearTimeout(a),a=null}]};const Z=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},ee=(e,t,n,r,o)=>{const a=async function*(e,t,n){for await(const r of e)yield*Z(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let i,s=0,c=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return c(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw c(e),e}},cancel:e=>(c(e),a.return())},{highWaterMark:2})},te="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ne=te&&"function"==typeof ReadableStream,re=te&&("function"==typeof TextEncoder?(oe=new TextEncoder,e=>oe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var oe;const ae=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ie=ne&&ae(()=>{let e=!1;const t=new Request(R.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),se=ne&&ae(()=>a.a.isReadableStream(new Response("").body)),ce={stream:se&&(e=>e.body)};var ue;te&&(ue=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ce[e]&&(ce[e]=a.a.isFunction(ue[e])?t=>t[e]():(t,n)=>{throw new m.a(`Response type '${e}' is not supported`,m.a.ERR_NOT_SUPPORT,n)})}));const le=async(e,t)=>{const n=a.a.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:a.a.isBlob(e)?e.size:a.a.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:a.a.isArrayBufferView(e)||a.a.isArrayBuffer(e)?e.byteLength:(a.a.isURLSearchParams(e)&&(e+=""),a.a.isString(e)?(await re(e)).byteLength:void 0))(t):n};var fe=te&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:c,onUploadProgress:u,responseType:l,headers:f,withCredentials:d="same-origin",fetchOptions:h}=X(e);l=l?(l+"").toLowerCase():"text";let p,y,[g,b]=o||i||s?Y([o,i],s):[];const w=()=>{!p&&setTimeout(()=>{g&&g.unsubscribe()}),p=!0};let v;try{if(u&&ie&&"get"!==n&&"head"!==n&&0!==(v=await le(f,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(a.a.isFormData(r)&&(e=n.headers.get("content-type"))&&f.setContentType(e),n.body){const[e,t]=H(v,z(J(u)));r=ee(n.body,65536,e,t,re)}}a.a.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;y=new Request(t,{...h,signal:g,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(y);const s=se&&("stream"===l||"response"===l);if(se&&(c||s)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=a.a.toFiniteNumber(i.headers.get("content-length")),[n,r]=c&&H(t,z(J(c),!0))||[];i=new Response(ee(i.body,65536,n,()=>{r&&r(),s&&w()},re),e)}l=l||"text";let p=await ce[a.a.findKey(ce,l)||"text"](i,e);return!s&&w(),b&&b(),await new Promise((t,n)=>{q(t,n,{data:p,headers:C.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:y})})}catch(t){if(w(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new m.a("Network Error",m.a.ERR_NETWORK,e,y),{cause:t.cause||t});throw m.a.from(t,t&&t.code,e,y)}});const de={http:D.a,xhr:Q,fetch:fe};a.a.forEach(de,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const he=e=>"- "+e,pe=e=>a.a.isFunction(e)||null===e||!1===e;var me=e=>{e=a.a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!pe(n)&&(r=de[(t=String(n)).toLowerCase()],void 0===r))throw new m.a(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+a]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let n=t?e.length>1?"since :\n"+e.map(he).join("\n"):" "+he(e[0]):"as no adapter specified";throw new m.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ye(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new B(null,e)}function ge(e){ye(e),e.headers=C.from(e.headers),e.data=F.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return me(e.adapter||x.adapter)(e).then((function(t){return ye(e),t.data=F.call(e,e.transformResponse,t),t.headers=C.from(t.headers),t}),(function(t){return U(t)||(ye(e),t&&t.response&&(t.response.data=F.call(e,e.transformResponse,t.response),t.response.headers=C.from(t.response.headers))),Promise.reject(t)}))}const be={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{be[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const we={};be.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.5] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new m.a(r(o," has been removed"+(t?" in "+t:"")),m.a.ERR_DEPRECATED);return t&&!we[o]&&(we[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};var ve={assertOptions:function(e,t,n){if("object"!=typeof e)throw new m.a("options must be an object",m.a.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new m.a("option "+a+" must be "+n,m.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new m.a("Unknown option "+a,m.a.ERR_BAD_OPTION)}},validators:be};const Ee=ve.validators;class Oe{constructor(e){this.defaults=e,this.interceptors={request:new p,response:new p}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=$(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ve.assertOptions(n,{silentJSONParsing:Ee.transitional(Ee.boolean),forcedJSONParsing:Ee.transitional(Ee.boolean),clarifyTimeoutError:Ee.transitional(Ee.boolean)},!1),null!=r&&(a.a.isFunction(r)?t.paramsSerializer={serialize:r}:ve.assertOptions(r,{encode:Ee.function,serialize:Ee.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&a.a.merge(o.common,o[t.method]);o&&a.a.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=C.concat(i,o);const s=[];let c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const u=[];let l;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let f,d=0;if(!c){const e=[ge.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,u),f=e.length,l=Promise.resolve(t);d<f;)l=l.then(e[d++],e[d++]);return l}f=s.length;let h=t;for(d=0;d<f;){const e=s[d++],t=s[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{l=ge.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,f=u.length;d<f;)l=l.then(u[d++],u[d++]);return l}getUri(e){return h(K((e=$(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}a.a.forEach(["delete","get","head","options"],(function(e){Oe.prototype[e]=function(t,n){return this.request($(n||{},{method:e,url:t,data:(n||{}).data}))}})),a.a.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request($(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Oe.prototype[e]=t(),Oe.prototype[e+"Form"]=t(!0)}));var Re=Oe;class Se{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new B(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Se((function(t){e=t})),cancel:e}}}var Te=Se;const xe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xe).forEach(([e,t])=>{xe[t]=e});var Ae=xe;const je=function e(t){const n=new Re(t),r=Object(i.a)(Re.prototype.request,n);return a.a.extend(r,Re.prototype,n,{allOwnKeys:!0}),a.a.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e($(t,n))},r}(x);je.Axios=Re,je.CanceledError=B,je.CancelToken=Te,je.isCancel=U,je.VERSION="1.7.5",je.toFormData=s.a,je.AxiosError=m.a,je.Cancel=je.CanceledError,je.all=function(e){return Promise.all(e)},je.spread=function(e){return function(t){return e.apply(null,t)}},je.isAxiosError=function(e){return a.a.isObject(e)&&!0===e.isAxiosError},je.mergeConfig=$,je.AxiosHeaders=C,je.formToJSON=e=>S(a.a.isHTMLForm(e)?new FormData(e):e),je.getAdapter=me,je.HttpStatusCode=Ae,je.default=je;var Le=je,Ne=n(225);function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(){_e=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),s=new L(r||[]);return o(i,"_invoke",{value:T(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var d="suspendedStart",h="executing",p="completed",m={};function y(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var v=Object.getPrototypeOf,E=v&&v(v(N([])));E&&E!==n&&r.call(E,i)&&(w=E);var O=b.prototype=y.prototype=Object.create(w);function R(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,a,i,s){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Pe(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(l).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(c.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function T(t,n,r){var o=d;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var c=x(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function x(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Pe(t)+" is not iterable")}return g.prototype=b,o(O,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},R(S.prototype),u(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new S(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},R(O),u(O,c,"Generator"),u(O,i,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function Ce(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}var Fe=function(e){var t=e.requestConfig,n=(e.status,e.setProps);e.loading_state;Object(o.useEffect)((function(){t&&(n({status:"pending"}),r(t)),n({requestConfig:null})}),[t]);var r=function(){var e,t=(e=_e().mark((function e(t){return _e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Le(t).then((function(e){n({responseResult:{status:e.status,statusText:e.statusText,data:e.data,requestURL:e.request.responseURL,timestamp:(new Date).getTime()},status:"idle"})})).catch((function(e){var t,r,o;n({responseResult:{status:null===(t=e.response)||void 0===t?void 0:t.status,statusText:null===(r=e.response)||void 0===r?void 0:r.statusText,data:null===(o=e.response)||void 0===o?void 0:o.data,requestURL:e.request.responseURL,timestamp:(new Date).getTime(),code:e.code,message:e.message},status:"idle"})}));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Ce(a,r,o,i,s,"next",e)}function s(e){Ce(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();return React.createElement(React.Fragment,null)};t.default=Fe;Fe.defaultProps=Ne.b,Fe.propTypes=Ne.c},551:function(e,t,n){"use strict";(function(e,r,o){var a=n(653);const{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,c=(u=Object.create(null),e=>{const t=i.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const l=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:d}=Array,h=f("undefined");const p=l("ArrayBuffer");const m=f("string"),y=f("function"),g=f("number"),b=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==c(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},v=l("Date"),E=l("File"),O=l("Blob"),R=l("FileList"),S=l("URLSearchParams"),[T,x,A,j]=["ReadableStream","Request","Response","Headers"].map(l);function L(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),d(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function N(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,_=e=>!h(e)&&e!==P;const C=(F="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>F&&e instanceof F);var F;const U=l("HTMLFormElement"),k=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),B=l("RegExp"),D=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};L(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)},q="abcdefghijklmnopqrstuvwxyz",I={DIGIT:"0123456789",ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+"0123456789"};const M=l("AsyncFunction"),z=(H="function"==typeof r,J=y(P.postMessage),H?r:J?(W="axios@"+Math.random(),G=[],P.addEventListener("message",({source:e,data:t})=>{e===P&&t===W&&G.length&&G.shift()()},!1),e=>{G.push(e),P.postMessage(W,"*")}):e=>setTimeout(e));var H,J,W,G;const K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(P):void 0!==o&&o.nextTick||z;t.a={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=c(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:m,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isReadableStream:T,isRequest:x,isResponse:A,isHeaders:j,isUndefined:h,isDate:v,isFile:E,isBlob:O,isRegExp:B,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:S,isTypedArray:C,isFileList:R,forEach:L,merge:function e(){const{caseless:t}=_(this)&&this||{},n={},r=(r,o)=>{const a=t&&N(n,o)||o;w(n[a])&&w(r)?n[a]=e(n[a],r):w(r)?n[a]=e({},r):d(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&L(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(L(t,(t,r)=>{n&&y(t)?e[r]=Object(a.a)(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||c[i]||(t[i]=e[i],c[i]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:U,hasOwnProperty:k,hasOwnProp:k,reduceDescriptors:D,freezeMethods:e=>{D(e,(t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:N,global:P,isContextDefined:_,ALPHABET:I,generateString:(e=16,t=I.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=d(e)?[]:{};return L(e,(e,t)=>{const a=n(e,r+1);!h(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:M,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:z,asap:K}}).call(this,n(32),n(563).setImmediate,n(318))},556:function(e,t,n){"use strict";var r=n(551);function o(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}r.a.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.status}}});const a=o.prototype,i={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{i[e]={value:e}}),Object.defineProperties(o,i),Object.defineProperty(a,"isAxiosError",{value:!0}),o.from=(e,t,n,i,s,c)=>{const u=Object.create(a);return r.a.toFlatObject(e,u,(function(e){return e!==Error.prototype}),e=>"isAxiosError"!==e),o.call(u,e.message,t,n,i,s),u.cause=e,u.name=e.name,c&&Object.assign(u,c),u},t.a=o},576:function(e,t,n){"use strict";(function(e){var r=n(551),o=n(556),a=n(654);function i(e){return r.a.isPlainObject(e)||r.a.isArray(e)}function s(e){return r.a.endsWith(e,"[]")?e.slice(0,-2):e}function c(e,t,n){return e?e.concat(t).map((function(e,t){return e=s(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const u=r.a.toFlatObject(r.a,{},null,(function(e){return/^is[A-Z]/.test(e)}));t.a=function(t,n,l){if(!r.a.isObject(t))throw new TypeError("target must be an object");n=n||new(a.a||FormData);const f=(l=r.a.toFlatObject(l,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!r.a.isUndefined(t[e])}))).metaTokens,d=l.visitor||g,h=l.dots,p=l.indexes,m=(l.Blob||"undefined"!=typeof Blob&&Blob)&&r.a.isSpecCompliantForm(n);if(!r.a.isFunction(d))throw new TypeError("visitor must be a function");function y(t){if(null===t)return"";if(r.a.isDate(t))return t.toISOString();if(!m&&r.a.isBlob(t))throw new o.a("Blob is not supported. Use a Buffer instead.");return r.a.isArrayBuffer(t)||r.a.isTypedArray(t)?m&&"function"==typeof Blob?new Blob([t]):e.from(t):t}function g(e,t,o){let a=e;if(e&&!o&&"object"==typeof e)if(r.a.endsWith(t,"{}"))t=f?t:t.slice(0,-2),e=JSON.stringify(e);else if(r.a.isArray(e)&&function(e){return r.a.isArray(e)&&!e.some(i)}(e)||(r.a.isFileList(e)||r.a.endsWith(t,"[]"))&&(a=r.a.toArray(e)))return t=s(t),a.forEach((function(e,o){!r.a.isUndefined(e)&&null!==e&&n.append(!0===p?c([t],o,h):null===p?t:t+"[]",y(e))})),!1;return!!i(e)||(n.append(c(o,t,h),y(e)),!1)}const b=[],w=Object.assign(u,{defaultVisitor:g,convertValue:y,isVisitable:i});if(!r.a.isObject(t))throw new TypeError("data must be an object");return function e(t,o){if(!r.a.isUndefined(t)){if(-1!==b.indexOf(t))throw Error("Circular reference detected in "+o.join("."));b.push(t),r.a.forEach(t,(function(t,a){!0===(!(r.a.isUndefined(t)||null===t)&&d.call(n,t,r.a.isString(a)?a.trim():a,o,w))&&e(t,o?o.concat(a):[a])})),b.pop()}}(t),n}}).call(this,n(557).Buffer)},653:function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,"a",(function(){return r}))},654:function(e,t,n){"use strict";t.a=null}}]);
|
|
3
|
+
//# sourceMappingURL=async-feffery_http_requests.js.map
|
|
4
|
+
//# sourceMappingURL=async-feffery_http_requests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"async-feffery_http_requests.js","sourceRoot":""}
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
(window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[18],{548:function(t,e,i){i.r(e);var ot=i(1),at=i.n(ot),n=i(878),b=i.n(n),w=function(){return(w=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function x(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i}function o(t){var e=t.id,i=t.className,n=t.style,o=t.key,a=t.src,r=t.alt,s=t.crossOrigin,h=t.viewMode,c=t.dragMode,p=t.initialAspectRatio,l=t.aspectRatio,d=t.data,u=t.preview,m=t.responsive,g=t.restore,f=t.checkCrossOrigin,v=t.checkOrientation,b=t.modal,X=t.guides,Y=t.center,N=t.highlight,S=t.background,L=t.autoCrop,P=t.autoCropArea,I=t.movable,U=t.rotatable,Z=t.scalable,q=t.zoomable,Q=t.zoomOnTouch,F=t.zoomOnWheel,$=t.wheelZoomRatio,G=t.cropBoxMovable,V=t.cropBoxResizable,_=t.toggleDragModeOnDblclick,J=t.minContainerWidth,K=t.minContainerHeight,tt=t.minCanvasWidth,et=t.minCanvasHeight,it=t.minCropBoxWidth,nt=t.minCropBoxHeight,w=t.reset,x=t.clear,y=t.replace,M=t.enable,C=t.disable,D=t.destroy,O=t.move,k=t.moveTo,T=t.zoom,B=t.zoomTo,z=t.rotate,A=t.rotateTo,E=t.scale,W=t.scaleX,j=t.scaleY,R=t.setProps,t=t.loading_state,H=Object(ot.useRef)(null);return Object(ot.useEffect)(function(){var t;w&&(null!=(t=H.current)&&t.cropper.reset(),R({reset:!1}))},[w]),Object(ot.useEffect)(function(){var t;x&&(null!=(t=H.current)&&t.cropper.clear(),R({clear:!1}))},[x]),Object(ot.useEffect)(function(){var t;y.isReplace&&y.url&&(null!=(t=H.current)&&t.cropper.replace(y.url,y.hasSameSize),R({replace:{isReplace:!1,url:void 0,hasSameSize:!1}}))},[y]),Object(ot.useEffect)(function(){var t;M&&(null!=(t=H.current)&&t.cropper.enable(),R({enable:!1}))},[M]),Object(ot.useEffect)(function(){var t;C&&(null!=(t=H.current)&&t.cropper.disable(),R({disable:!1}))},[C]),Object(ot.useEffect)(function(){var t;D&&(null!=(t=H.current)&&t.cropper.destroy(),R({destroy:!1}))},[D]),Object(ot.useEffect)(function(){var t;O.isMove&&O.offsetX&&(null!=(t=H.current)&&t.cropper.move(O.offsetX,O.offsetY),R({move:{isMove:!1,offsetX:void 0,offsetY:void 0}}))},[O]),Object(ot.useEffect)(function(){var t;k.isMoveTo&&k.x&&(null!=(t=H.current)&&t.cropper.moveTo(k.x,k.y),R({moveTo:{isMoveTo:!1,x:void 0,y:void 0}}))},[k]),Object(ot.useEffect)(function(){var t;T.isZoom&&T.ratio&&(null!=(t=H.current)&&t.cropper.zoom(T.ratio),R({zoom:{isZoom:!1,ratio:void 0}}))},[T]),Object(ot.useEffect)(function(){var t;B.isZoomTo&&B.ratio&&(null!=(t=H.current)&&t.cropper.zoomTo(B.ratio,B.pivot),R({zoomTo:{isZoomTo:!1,ratio:void 0,pivot:void 0}}))},[B]),Object(ot.useEffect)(function(){var t;z.isRotate&&z.degree&&(null!=(t=H.current)&&t.cropper.rotate(z.degree),R({rotate:{isRotate:!1,degree:void 0}}))},[z]),Object(ot.useEffect)(function(){var t;A.isRotateTo&&A.degree&&(null!=(t=H.current)&&t.cropper.rotateTo(A.degree),R({rotateTo:{isRotateTo:!1,degree:void 0}}))},[A]),Object(ot.useEffect)(function(){var t;E.isScale&&E.scaleX&&(null!=(t=H.current)&&t.cropper.scale(E.scaleX,E.scaleY),R({scale:{isScale:!1,scaleX:void 0,scaleY:void 0}}))},[E]),Object(ot.useEffect)(function(){var t;W.isScaleX&&W.scaleX&&(null!=(t=H.current)&&t.cropper.scaleX(W.scaleX),R({scaleX:{isScaleX:!1,scaleX:void 0}}))},[W]),Object(ot.useEffect)(function(){var t;j.isScaleY&&j.scaleY&&(null!=(t=H.current)&&t.cropper.scaleY(j.scaleY),R({scaleY:{isScaleY:!1,scaleY:void 0}}))},[j]),at.a.createElement(rt,{ref:H,id:e,className:Object(st.isString)(i)?i:i?Object(ht.a)(i):void 0,style:n,key:o,src:a,alt:r,crossOrigin:s,viewMode:h,dragMode:c,initialAspectRatio:p,aspectRatio:l,data:d,preview:u,responsive:m,restore:g,checkCrossOrigin:f,checkOrientation:v,modal:b,guides:X,center:Y,highlight:N,background:S,autoCrop:L,autoCropArea:P,movable:I,rotatable:U,scalable:Z,zoomable:q,zoomOnTouch:Q,zoomOnWheel:F,wheelZoomRatio:$,cropBoxMovable:G,cropBoxResizable:V,toggleDragModeOnDblclick:_,minContainerWidth:J,minContainerHeight:K,minCanvasWidth:tt,minCanvasHeight:et,minCropBoxWidth:it,minCropBoxHeight:nt,crop:function(){var t=null==(t=H.current)?void 0:t.cropper;R({croppedImageData:t.getCroppedCanvas().toDataURL()}),R({outputData:t.getData()}),R({containerData:t.getContainerData()}),R({imageData:t.getImageData()}),R({canvasData:t.getCanvasData()}),R({cropBoxData:t.getCropBoxData()})},loading_state:t})}var y=["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"],M={opacity:0,maxWidth:"100%"},rt=at.a.forwardRef(function(t,e){var t=x(t,[]),i=t.dragMode,n=void 0===i?"crop":i,o=t.src,i=t.style,a=t.className,r=t.crossOrigin,s=t.scaleX,h=t.scaleY,c=t.enable,p=t.zoomTo,l=t.rotateTo,d=t.alt,d=void 0===d?"picture":d,u=t.ready,m=t.onInitialized,g=x(t,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),f={scaleY:h,scaleX:s,enable:c,zoomTo:p,rotateTo:l},v=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=Object(ot.useRef)(null);return at.a.useEffect(function(){t.forEach(function(t){t&&("function"==typeof t?t(i.current):t.current=i.current)})},[t]),i}(e,Object(ot.useRef)(null));Object(ot.useEffect)(function(){var t;null!=(t=v.current)&&t.cropper&&"number"==typeof p&&v.current.cropper.zoomTo(p)},[t.zoomTo]),Object(ot.useEffect)(function(){var t;null!=(t=v.current)&&t.cropper&&void 0!==o&&v.current.cropper.reset().clear().replace(o)},[o]),Object(ot.useEffect)(function(){var t;return null!==v.current&&(t=new b.a(v.current,w(w({dragMode:n},g),{ready:function(t){var e,i,n,o,a,r;null!==t.currentTarget&&(e=t.currentTarget.cropper,n=(i=void 0===(i=f)?{}:i).enable,o=void 0===(o=i.scaleX)?1:o,a=void 0===(a=i.scaleY)?1:a,r=void 0===(r=i.zoomTo)?0:r,i=i.rotateTo,void 0===n||n?e.enable():e.disable(),e.scaleX(o),e.scaleY(a),void 0!==i&&e.rotateTo(i),0<r)&&e.zoomTo(r),u&&u(t)}})),m)&&m(t),function(){var t;null!=(t=null==(t=v.current)?void 0:t.cropper)&&t.destroy()}},[v]);h=w(w({},g),{crossOrigin:r,src:o,alt:d});s=y.reduce(function(t,e){return t[e],x(t,["symbol"==typeof e?e:e+""])},h);return at.a.createElement("div",{style:i,className:a},at.a.createElement("img",w({},s,{style:M,ref:v})))}),st=(i(879),i(25)),ht=i(63),n=i(222);(e.default=o).defaultProps=n.b,o.propTypes=n.c},878:function(t,X,Y){function N(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function S(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?N(Object(o),!0).forEach(function(t){var e,i;e=n,i=o[t=t],(t=L(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):N(Object(o)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))})}return n}function L(t){t=(t=>{if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0===e)return String(t);if("object"!=typeof(e=e.call(t,"string")))return e;throw new TypeError("@@toPrimitive must return a primitive value.")})(t);return"symbol"==typeof t?t:t+""}function P(t){return(P="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 i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,L(n.key),n)}}function U(t){return(t=>{if(Array.isArray(t))return i(t)})(t)||(()=>{if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)})()||(t=>{var e;if(t)return"string"==typeof t?i(t,void 0):"Map"===(e="Object"===(e=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(t,void 0):void 0})(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function d(t){return"number"==typeof t&&!st(t)}function Z(t){return 0<t&&t<1/0}function o(t){return void 0===t}function a(t){return"object"===P(t)&&null!==t}function u(t){if(!a(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&ht.call(i,"isPrototypeOf")}catch(t){return!1}}function c(t){return"function"==typeof t}function q(t){return Array.from?Array.from(t):ct.call(t)}function O(i,n){return i&&c(n)&&(Array.isArray(i)||d(i.length)?q(i).forEach(function(t,e){n.call(i,t,e,i)}):a(i)&&Object.keys(i).forEach(function(t){n.call(i,i[t],t,i)})),i}function B(t,e){e=1<arguments.length&&void 0!==e?e:1e11;return pt.test(t)?Math.round(t*e)/e:t}function m(t,e){var i=t.style;O(e,function(t,e){lt.test(e)&&d(t)&&(t="".concat(t,"px")),i[e]=t})}function p(t,e){var i;e&&(d(t.length)?O(t,function(t){p(t,e)}):t.classList?t.classList.add(e):(i=t.className.trim())?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e)}function k(t,e){e&&(d(t.length)?O(t,function(t){k(t,e)}):t.classList?t.classList.remove(e):0<=t.className.indexOf(e)&&(t.className=t.className.replace(e,"")))}function r(t,e,i){e&&(d(t.length)?O(t,function(t){r(t,e,i)}):(i?p:k)(t,e))}function n(t){return t.replace(dt,"$1-$2").toLowerCase()}function g(t,e){return a(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(n(e)))}function l(t,e,i){a(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(n(e)),i)}function s(i,t,n,e){var o=3<arguments.length&&void 0!==e?e:{},a=n;t.trim().split(gt).forEach(function(t){var e;ft||(e=i.listeners)&&e[t]&&e[t][n]&&(a=e[t][n],delete e[t][n],0===Object.keys(e[t]).length&&delete e[t],0===Object.keys(e).length)&&delete i.listeners,i.removeEventListener(t,a,o)})}function f(a,t,r,e){var s=3<arguments.length&&void 0!==e?e:{},h=r;t.trim().split(gt).forEach(function(n){var t,o;s.once&&!ft&&(t=a.listeners,h=function(){delete o[n][r],a.removeEventListener(n,h,s);for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];r.apply(a,e)},(o=void 0===t?{}:t)[n]||(o[n]={}),o[n][r]&&a.removeEventListener(n,o[n][r],s),o[n][r]=h,a.listeners=o),a.addEventListener(n,h,s)})}function v(t,e,i){var n;return c(Event)&&c(CustomEvent)?n=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(n)}function Q(t){t=t.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function F(t){t=t.match(vt);return null!==t&&(t[1]!==j.protocol||t[2]!==j.hostname||t[3]!==j.port)}function $(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function b(t){var e=t.rotate,i=t.scaleX,n=t.scaleY,o=t.translateX,t=t.translateY,a=[],o=(d(o)&&0!==o&&a.push("translateX(".concat(o,"px)")),d(t)&&0!==t&&a.push("translateY(".concat(t,"px)")),d(e)&&0!==e&&a.push("rotate(".concat(e,"deg)")),d(i)&&1!==i&&a.push("scaleX(".concat(i,")")),d(n)&&1!==n&&a.push("scaleY(".concat(n,")")),a.length?a.join(" "):"none");return{WebkitTransform:o,msTransform:o,transform:o}}function h(t,e){var i=t.pageX,t=t.pageY,n={endX:i,endY:t};return e?n:S({startX:i,startY:t},n)}function z(t,e){var i,n=t.aspectRatio,o=t.height,t=t.width,e=1<arguments.length&&void 0!==e?e:"contain",a=Z(t),r=Z(o);return a&&r?(i=o*n,"contain"===e&&t<i||"cover"===e&&i<t?o=t/n:t=o*n):a?o=t/n:r&&(t=o*n),{width:t,height:o}}function G(t){var e,i,n,o,a,r,s,h=new DataView(t);try{if(255===h.getUint8(0)&&216===h.getUint8(1))for(var c=h.byteLength,p=2;p+1<c;){if(255===h.getUint8(p)&&225===h.getUint8(p+1)){n=p;break}p+=1}if(n&&(a=n+10,"Exif"!==((t,e,i)=>{var n="";i+=e;for(var o=e;o<i;o+=1)n+=bt(t.getUint8(o));return n})(h,n+4,4)||!(i=18761===(r=h.getUint16(a)))&&19789!==r||42!==h.getUint16(a+2,i)||8<=(s=h.getUint32(a+4,i))&&(o=a+s)),o)for(var l,d=h.getUint16(o,i),u=0;u<d;u+=1)if(l=o+12*u+2,274===h.getUint16(l,i)){l+=8,e=h.getUint16(l,i),h.setUint16(l,1,i);break}}catch(t){e=1}return e}function w(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=this,n=w;if(!(i instanceof n))throw new TypeError("Cannot call a class as a function");if(!t||!at.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=W({},rt,u(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()}var x,e,y,M,V,T,_,J,C,D,A,E,K,tt,et,it,nt,ot,at,rt,st,ht,ct,W,pt,lt,dt,ut,mt,gt,ft,j,vt,bt,wt,R,xt,yt,Mt,Ct,H;t.exports=(t="undefined"!=typeof window&&void 0!==window.document,x=t?window:{},e=!(!t||!x.document.documentElement)&&"ontouchstart"in x.document.documentElement,y=!!t&&"PointerEvent"in x,M="".concat("cropper","-crop"),V="".concat("cropper","-disabled"),T="".concat("cropper","-hidden"),_="".concat("cropper","-hide"),J="".concat("cropper","-invisible"),C="".concat("cropper","-modal"),D="".concat("cropper","-move"),A="".concat("cropper","Action"),E="".concat("cropper","Preview"),K=y?"pointerdown":e?"touchstart":"mousedown",tt=y?"pointermove":e?"touchmove":"mousemove",et=y?"pointerup pointercancel":e?"touchend touchcancel":"mouseup",it=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,nt=/^data:/,ot=/^data:image\/jpeg;base64,/,at=/^img|canvas$/i,rt={viewMode:0,dragMode:"crop",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},st=Number.isNaN||x.isNaN,ht=Object.prototype.hasOwnProperty,ct=Array.prototype.slice,W=Object.assign||function(i){for(var t=arguments.length,e=new Array(1<t?t-1:0),n=1;n<t;n++)e[n-1]=arguments[n];return a(i)&&0<e.length&&e.forEach(function(e){a(e)&&Object.keys(e).forEach(function(t){i[t]=e[t]})}),i},pt=/\.\d*(?:0|9){12}\d*$/,lt=/^width|height|left|top|marginLeft|marginTop$/,dt=/([a-z\d])([A-Z])/g,mt=!(gt=/\s\s*/),t&&(ut=!1,y=function(){},e=Object.defineProperty({},"once",{get:function(){return mt=!0,ut},set:function(t){ut=t}}),x.addEventListener("test",y,e),x.removeEventListener("test",y,e)),ft=mt,j=x.location,vt=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i,bt=String.fromCharCode,wt=/^data:.*,/,t={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,n=this.cropper,o=Number(e.minContainerWidth),e=Number(e.minContainerHeight),o=(p(n,T),k(t,T),{width:Math.max(i.offsetWidth,0<=o?o:200),height:Math.max(i.offsetHeight,0<=e?e:100)});m(n,{width:(this.containerData=o).width,height:o.height}),p(t,T),k(n,T)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,n=Math.abs(e.rotate)%180==90,o=n?e.naturalHeight:e.naturalWidth,n=n?e.naturalWidth:e.naturalHeight,e=o/n,a=t.width,r=t.height,e=(t.height*e>t.width?3===i?a=t.height*e:r=t.width/e:3===i?r=t.width/e:a=t.height*e,{aspectRatio:e,naturalWidth:o,naturalHeight:n,width:a,height:r});this.canvasData=e,this.limited=1===i||2===i,this.limitCanvas(!0,!0),e.width=Math.min(Math.max(e.width,e.minWidth),e.maxWidth),e.height=Math.min(Math.max(e.height,e.minHeight),e.maxHeight),e.left=(t.width-e.width)/2,e.top=(t.height-e.height)/2,e.oldLeft=e.left,e.oldTop=e.top,this.initialCanvasData=W({},e)},limitCanvas:function(t,e){var i=this.options,n=this.containerData,o=this.canvasData,a=this.cropBoxData,r=i.viewMode,s=o.aspectRatio,h=this.cropped&&a;t&&(t=Number(i.minCanvasWidth)||0,i=Number(i.minCanvasHeight)||0,1<r?(t=Math.max(t,n.width),i=Math.max(i,n.height),3===r&&(t<i*s?t=i*s:i=t/s)):0<r&&(t?t=Math.max(t,h?a.width:0):i?i=Math.max(i,h?a.height:0):h&&(t=a.width,(i=a.height)*s>t?t=i*s:i=t/s)),t=(s=z({aspectRatio:s,width:t,height:i})).width,i=s.height,o.minWidth=t,o.minHeight=i,o.maxWidth=1/0,o.maxHeight=1/0),e&&((h?0:1)<r?(s=n.width-o.width,t=n.height-o.height,o.minLeft=Math.min(0,s),o.minTop=Math.min(0,t),o.maxLeft=Math.max(0,s),o.maxTop=Math.max(0,t),h&&this.limited&&(o.minLeft=Math.min(a.left,a.left+(a.width-o.width)),o.minTop=Math.min(a.top,a.top+(a.height-o.height)),o.maxLeft=a.left,o.maxTop=a.top,2===r)&&(o.width>=n.width&&(o.minLeft=Math.min(0,s),o.maxLeft=Math.max(0,s)),o.height>=n.height)&&(o.minTop=Math.min(0,t),o.maxTop=Math.max(0,t))):(o.minLeft=-o.width,o.minTop=-o.height,o.maxLeft=n.width,o.maxTop=n.height))},renderCanvas:function(t,e){var i,n,o,a,r=this.canvasData,s=this.imageData;e&&(e={width:s.naturalWidth*Math.abs(s.scaleX||1),height:s.naturalHeight*Math.abs(s.scaleY||1),degree:s.rotate||0},s=e.width,a=e.height,e=e.degree,i=90==(e=Math.abs(e)%180)?{width:a,height:s}:(n=e%90*Math.PI/180,i=Math.sin(n),o=s*(n=Math.cos(n))+a*i,s=s*i+a*n,90<e?{width:s,height:o}:{width:o,height:s}),n=r.width*((a=i.width)/r.naturalWidth),o=r.height*((e=i.height)/r.naturalHeight),r.left-=(n-r.width)/2,r.top-=(o-r.height)/2,r.width=n,r.height=o,r.aspectRatio=a/e,r.naturalWidth=a,r.naturalHeight=e,this.limitCanvas(!0,!1)),(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.maxHeight<r.height||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,m(this.canvas,W({width:r.width,height:r.height},b({translateX:r.left,translateY:r.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,n=i.naturalWidth*(e.width/e.naturalWidth),o=i.naturalHeight*(e.height/e.naturalHeight);W(i,{width:n,height:o,left:(e.width-n)/2,top:(e.height-o)/2}),m(this.image,W({width:i.width,height:i.height},b(W({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,t=Number(t.autoCropArea)||.8,n={width:e.width,height:e.height};i&&(e.height*i>e.width?n.height=n.width/i:n.width=n.height*i),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*t),n.height=Math.max(n.minHeight,n.height*t),n.left=e.left+(e.width-n.width)/2,n.top=e.top+(e.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=W({},n)},limitCropBox:function(t,e){var i,n,o=this.options,a=this.containerData,r=this.canvasData,s=this.cropBoxData,h=this.limited,c=o.aspectRatio;t&&(t=Number(o.minCropBoxWidth)||0,o=Number(o.minCropBoxHeight)||0,i=h?Math.min(a.width,r.width,r.width+r.left,a.width-r.left):a.width,n=h?Math.min(a.height,r.height,r.height+r.top,a.height-r.top):a.height,t=Math.min(t,a.width),o=Math.min(o,a.height),c&&(t&&o?t<o*c?o=t/c:t=o*c:t?o=t/c:o&&(t=o*c),i<n*c?n=i/c:i=n*c),s.minWidth=Math.min(t,i),s.minHeight=Math.min(o,n),s.maxWidth=i,s.maxHeight=n),e&&(h?(s.minLeft=Math.max(0,r.left),s.minTop=Math.max(0,r.top),s.maxLeft=Math.min(a.width,r.left+r.width)-s.width,s.maxTop=Math.min(a.height,r.top+r.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=a.width-s.width,s.maxTop=a.height-s.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.maxHeight<i.height||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&l(this.face,A,i.width>=e.width&&i.height>=e.height?"move":"all"),m(this.cropBox,W({width:i.width,height:i.height},b({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),v(this.element,"crop",this.getData())}},y={initPreview:function(){var t=this.element,i=this.crossOrigin,e=this.options.preview,n=i?this.crossOriginUrl:this.url,o=t.alt||"The image to preview",a=document.createElement("img");i&&(a.crossOrigin=i),a.src=n,a.alt=o,this.viewBox.appendChild(a),this.viewBoxImage=a,e&&("string"==typeof(a=e)?a=t.ownerDocument.querySelectorAll(e):e.querySelector&&(a=[e]),O(this.previews=a,function(t){var e=document.createElement("img");l(t,E,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),i&&(e.crossOrigin=i),e.src=n,e.alt=o,e.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(e)}))},resetPreview:function(){O(this.previews,function(e){var i=g(e,E),i=(m(e,{width:i.width,height:i.height}),e.innerHTML=i.html,e),e=E;if(a(i[e]))try{delete i[e]}catch(t){i[e]=void 0}else if(i.dataset)try{delete i.dataset[e]}catch(t){i.dataset[e]=void 0}else i.removeAttribute("data-".concat(n(e)))})},preview:function(){var r=this.imageData,t=this.canvasData,e=this.cropBoxData,s=e.width,h=e.height,c=r.width,p=r.height,l=e.left-t.left-r.left,d=e.top-t.top-r.top;this.cropped&&!this.disabled&&(m(this.viewBoxImage,W({width:c,height:p},b(W({translateX:-l,translateY:-d},r)))),O(this.previews,function(t){var e=g(t,E),i=e.width,e=e.height,n=i,o=e,a=1;s&&(o=h*(a=i/s)),h&&e<o&&(n=s*(a=e/h),o=e),m(t,{width:n,height:o}),m(t.getElementsByTagName("img")[0],W({width:c*a,height:p*a},b(W({translateX:-l*a,translateY:-d*a},r))))}))}},e={bind:function(){var t=this.element,e=this.options,i=this.cropper;c(e.cropstart)&&f(t,"cropstart",e.cropstart),c(e.cropmove)&&f(t,"cropmove",e.cropmove),c(e.cropend)&&f(t,"cropend",e.cropend),c(e.crop)&&f(t,"crop",e.crop),c(e.zoom)&&f(t,"zoom",e.zoom),f(i,K,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&f(i,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&f(i,"dblclick",this.onDblclick=this.dblclick.bind(this)),f(t.ownerDocument,tt,this.onCropMove=this.cropMove.bind(this)),f(t.ownerDocument,et,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&f(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;c(e.cropstart)&&s(t,"cropstart",e.cropstart),c(e.cropmove)&&s(t,"cropmove",e.cropmove),c(e.cropend)&&s(t,"cropend",e.cropend),c(e.crop)&&s(t,"crop",e.crop),c(e.zoom)&&s(t,"zoom",e.zoom),s(i,K,this.onCropStart),e.zoomable&&e.zoomOnWheel&&s(i,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&s(i,"dblclick",this.onDblclick),s(t.ownerDocument,tt,this.onCropMove),s(t.ownerDocument,et,this.onCropEnd),e.responsive&&s(window,"resize",this.onResize)}},xt={resize:function(){var i,n,t,e,o,a,r;this.disabled||(t=this.options,a=this.container,e=this.containerData,o=a.offsetWidth/e.width,a=a.offsetHeight/e.height,1!=(r=Math.abs(o-1)>Math.abs(a-1)?o:a)&&(t.restore&&(i=this.getCanvasData(),n=this.getCropBoxData()),this.render(),t.restore)&&(this.setCanvasData(O(i,function(t,e){i[e]=t*r})),this.setCropBoxData(O(n,function(t,e){n[e]=t*r}))))},dblclick:function(){var t,e;this.disabled||"none"===this.options.dragMode||this.setDragMode((t=this.dragBox,e=M,(t.classList?t.classList.contains(e):-1<t.className.indexOf(e))?"move":"crop"))},wheel:function(t){var e=this,i=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=0<t.deltaY?1:-1:t.wheelDelta?n=-t.wheelDelta/120:t.detail&&(n=0<t.detail?1:-1),this.zoom(-n*i,t))},cropStart:function(t){var e,i=t.buttons,n=t.button;this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(d(i)&&1!==i||d(n)&&0!==n||t.ctrlKey)||(i=this.options,e=this.pointers,t.changedTouches?O(t.changedTouches,function(t){e[t.identifier]=h(t)}):e[t.pointerId||0]=h(t),n=1<Object.keys(e).length&&i.zoomable&&i.zoomOnTouch?"zoom":g(t.target,A),it.test(n)&&!1!==v(this.element,"cropstart",{originalEvent:t,action:n})&&(t.preventDefault(),this.action=n,this.cropping=!1,"crop"===n)&&(this.cropping=!0,p(this.dragBox,C)))},cropMove:function(t){var e,i=this.action;!this.disabled&&i&&(e=this.pointers,t.preventDefault(),!1!==v(this.element,"cropmove",{originalEvent:t,action:i}))&&(t.changedTouches?O(t.changedTouches,function(t){W(e[t.identifier]||{},h(t,!0))}):W(e[t.pointerId||0]||{},h(t,!0)),this.change(t))},cropEnd:function(t){var e,i;this.disabled||(e=this.action,i=this.pointers,t.changedTouches?O(t.changedTouches,function(t){delete i[t.identifier]}):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,r(this.dragBox,C,this.cropped&&this.options.modal)),v(this.element,"cropend",{originalEvent:t,action:e})))}},yt={change:function(t){function e(t){switch(t){case"e":f+D.x>x&&(D.x=x-f);break;case"w":d+D.x<b&&(D.x=b-d);break;case"n":u+D.y<w&&(D.y=w-u);break;case"s":v+D.y>y&&(D.y=y-v)}}var i,n,a,o=this.options,r=this.canvasData,s=this.containerData,h=this.cropBoxData,c=this.pointers,p=this.action,l=o.aspectRatio,d=h.left,u=h.top,m=h.width,g=h.height,f=d+m,v=u+g,b=0,w=0,x=s.width,y=s.height,M=!0,C=(!l&&t.shiftKey&&(l=m&&g?m/g:1),this.limited&&(b=h.minLeft,w=h.minTop,x=b+Math.min(s.width,r.width,r.left+r.width),y=w+Math.min(s.height,r.height,r.top+r.height)),c[Object.keys(c)[0]]),D={x:C.endX-C.startX,y:C.endY-C.startY};switch(p){case"all":d+=D.x,u+=D.y;break;case"e":0<=D.x&&(x<=f||l&&(u<=w||y<=v))?M=!1:(e("e"),(m+=D.x)<0&&(p="w",d-=m=-m),l&&(u+=(h.height-(g=m/l))/2));break;case"n":D.y<=0&&(u<=w||l&&(d<=b||x<=f))?M=!1:(e("n"),g-=D.y,u+=D.y,g<0&&(p="s",u-=g=-g),l&&(d+=(h.width-(m=g*l))/2));break;case"w":D.x<=0&&(d<=b||l&&(u<=w||y<=v))?M=!1:(e("w"),m-=D.x,d+=D.x,m<0&&(p="e",d-=m=-m),l&&(u+=(h.height-(g=m/l))/2));break;case"s":0<=D.y&&(y<=v||l&&(d<=b||x<=f))?M=!1:(e("s"),(g+=D.y)<0&&(p="n",u-=g=-g),l&&(d+=(h.width-(m=g*l))/2));break;case"ne":if(l){if(D.y<=0&&(u<=w||x<=f)){M=!1;break}e("n"),g-=D.y,u+=D.y,m=g*l}else e("n"),e("e"),!(0<=D.x)||f<x?m+=D.x:D.y<=0&&u<=w&&(M=!1),D.y<=0&&!(w<u)||(g-=D.y,u+=D.y);m<0&&g<0?(p="sw",u-=g=-g,d-=m=-m):m<0?(p="nw",d-=m=-m):g<0&&(p="se",u-=g=-g);break;case"nw":if(l){if(D.y<=0&&(u<=w||d<=b)){M=!1;break}e("n"),g-=D.y,u+=D.y,d+=h.width-(m=g*l)}else e("n"),e("w"),!(D.x<=0)||b<d?(m-=D.x,d+=D.x):D.y<=0&&u<=w&&(M=!1),D.y<=0&&!(w<u)||(g-=D.y,u+=D.y);m<0&&g<0?(p="se",u-=g=-g,d-=m=-m):m<0?(p="ne",d-=m=-m):g<0&&(p="sw",u-=g=-g);break;case"sw":if(l){if(D.x<=0&&(d<=b||y<=v)){M=!1;break}e("w"),m-=D.x,d+=D.x,g=m/l}else e("s"),e("w"),!(D.x<=0)||b<d?(m-=D.x,d+=D.x):0<=D.y&&y<=v&&(M=!1),0<=D.y&&!(v<y)||(g+=D.y);m<0&&g<0?(p="ne",u-=g=-g,d-=m=-m):m<0?(p="se",d-=m=-m):g<0&&(p="nw",u-=g=-g);break;case"se":if(l){if(0<=D.x&&(x<=f||y<=v)){M=!1;break}e("e"),g=(m+=D.x)/l}else e("s"),e("e"),!(0<=D.x)||f<x?m+=D.x:0<=D.y&&y<=v&&(M=!1),0<=D.y&&!(v<y)||(g+=D.y);m<0&&g<0?(p="nw",u-=g=-g,d-=m=-m):m<0?(p="sw",d-=m=-m):g<0&&(p="ne",u-=g=-g);break;case"move":this.move(D.x,D.y),M=!1;break;case"zoom":this.zoom((n=S({},i=c),a=0,O(i,function(o,t){delete n[t],O(n,function(t){var e=Math.abs(o.startX-t.startX),i=Math.abs(o.startY-t.startY),n=Math.abs(o.endX-t.endX),t=Math.abs(o.endY-t.endY),e=Math.sqrt(e*e+i*i),i=(Math.sqrt(n*n+t*t)-e)/e;Math.abs(i)>Math.abs(a)&&(a=i)})}),a),t),M=!1;break;case"crop":D.x&&D.y?(i=Q(this.cropper),d=C.startX-i.left,u=C.startY-i.top,m=h.minWidth,g=h.minHeight,0<D.x?p=0<D.y?"se":"ne":D.x<0&&(d-=m,p=0<D.y?"sw":"nw"),D.y<0&&(u-=g),this.cropped||(k(this.cropBox,T),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))):M=!1}M&&(h.width=m,h.height=g,h.left=d,h.top=u,this.action=p,this.renderCropBox()),O(c,function(t){t.startX=t.endX,t.startY=t.endY})}},Mt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&p(this.dragBox,C),k(this.cropBox,T),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=W({},this.initialImageData),this.canvasData=W({},this.initialCanvasData),this.cropBoxData=W({},this.initialCropBoxData),this.renderCanvas(),this.cropped)&&this.renderCropBox(),this},clear:function(){return this.cropped&&!this.disabled&&(W(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),k(this.dragBox,C),p(this.cropBox,T)),this},replace:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,O(this.previews,function(t){t.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,k(this.cropper,V)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,p(this.cropper,V)),this},destroy:function(){var t=this.element;return t.cropper&&(t.cropper=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate()),this},move:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,n=i.left,i=i.top;return this.moveTo(o(t)?t:n+Number(t),o(e)?e:i+Number(e))},moveTo:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,n=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(d(t)&&(i.left=t,n=!0),d(e)&&(i.top=e,n=!0),n)&&this.renderCanvas(!0),this},zoom:function(t,e){var i=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var n,o,a,r=this.options,s=this.canvasData,h=s.width,c=s.height,p=s.naturalWidth,l=s.naturalHeight;if(0<=(t=Number(t))&&this.ready&&!this.disabled&&r.zoomable){r=p*t,l=l*t;if(!1===v(this.element,"zoom",{ratio:t,oldRatio:h/p,originalEvent:i}))return this;i?(t=this.pointers,p=Q(this.cropper),t=t&&Object.keys(t).length?(a=o=n=0,O(t,function(t){var e=t.startX;n+=e,o+=t.startY,a+=1}),{pageX:n/=a,pageY:o/=a}):{pageX:i.pageX,pageY:i.pageY},s.left-=(r-h)*((t.pageX-p.left-s.left)/h),s.top-=(l-c)*((t.pageY-p.top-s.top)/c)):u(e)&&d(e.x)&&d(e.y)?(s.left-=(r-h)*((e.x-s.left)/h),s.top-=(l-c)*((e.y-s.top)/c)):(s.left-=(r-h)/2,s.top-=(l-c)/2),s.width=r,s.height=l,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return d(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,d(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(d(e)?e:1,t)},scale:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,n=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(d(t)&&(i.scaleX=t,n=!0),d(e)&&(i.scaleY=e,n=!0),n)&&this.renderCanvas(!0,!0),this},getData:function(){var i,n,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=this.options,o=this.imageData,a=this.canvasData,r=this.cropBoxData;return this.ready&&this.cropped?(i={x:r.left-a.left,y:r.top-a.top,width:r.width,height:r.height},n=o.width/o.naturalWidth,O(i,function(t,e){i[e]=t/n}),t&&(a=Math.round(i.y+i.height),r=Math.round(i.x+i.width),i.x=Math.round(i.x),i.y=Math.round(i.y),i.width=r-i.x,i.height=a-i.y)):i={x:0,y:0,width:0,height:0},e.rotatable&&(i.rotate=o.rotate||0),e.scalable&&(i.scaleX=o.scaleX||1,i.scaleY=o.scaleY||1),i},setData:function(t){var e,i=this.options,n=this.imageData,o=this.canvasData,a={};return this.ready&&!this.disabled&&u(t)&&(e=!1,i.rotatable&&d(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,e=!0),i.scalable&&(d(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,e=!0),d(t.scaleY))&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,e=!0),e&&this.renderCanvas(!0,!0),i=n.width/n.naturalWidth,d(t.x)&&(a.left=t.x*i+o.left),d(t.y)&&(a.top=t.y*i+o.top),d(t.width)&&(a.width=t.width*i),d(t.height)&&(a.height=t.height*i),this.setCropBoxData(a)),this},getContainerData:function(){return this.ready?W({},this.containerData):{}},getImageData:function(){return this.sized?W({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,i={};return this.ready&&O(["left","top","width","height","naturalWidth","naturalHeight"],function(t){i[t]=e[t]}),i},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&u(t)&&(d(t.left)&&(e.left=t.left),d(t.top)&&(e.top=t.top),d(t.width)?(e.width=t.width,e.height=t.width/i):d(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return(t=this.ready&&this.cropped?{left:e.left,top:e.top,width:e.width,height:e.height}:t)||{}},setCropBoxData:function(t){var e,i,n=this.cropBoxData,o=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&u(t)&&(d(t.left)&&(n.left=t.left),d(t.top)&&(n.top=t.top),d(t.width)&&t.width!==n.width&&(e=!0,n.width=t.width),d(t.height)&&t.height!==n.height&&(i=!0,n.height=t.height),o&&(e?n.height=n.width/o:i&&(n.width=n.height*o)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,i=(b=this.image,g=this.imageData,r=e,n=t,O=g.aspectRatio,o=g.naturalWidth,s=g.naturalHeight,u=void 0===(u=g.rotate)?0:u,m=void 0===(m=g.scaleX)?1:m,g=void 0===(g=g.scaleY)?1:g,a=r.aspectRatio,l=r.naturalWidth,r=r.naturalHeight,p=void 0===(p=n.fillColor)?"transparent":p,f=void 0===(f=n.imageSmoothingEnabled)||f,v=void 0===(v=n.imageSmoothingQuality)?"low":v,h=void 0===(h=n.maxWidth)?1/0:h,c=void 0===(c=n.maxHeight)?1/0:c,i=void 0===(i=n.minWidth)?0:i,n=void 0===(n=n.minHeight)?0:n,T=document.createElement("canvas"),k=T.getContext("2d"),d=z({aspectRatio:a,width:h,height:c}),a=z({aspectRatio:a,width:i,height:n},"cover"),l=Math.min(d.width,Math.max(a.width,l)),d=Math.min(d.height,Math.max(a.height,r)),a=z({aspectRatio:O,width:h,height:c}),r=z({aspectRatio:O,width:i,height:n},"cover"),h=Math.min(a.width,Math.max(r.width,o)),c=Math.min(a.height,Math.max(r.height,s)),O=[-h/2,-c/2,h,c],T.width=B(l),T.height=B(d),k.fillStyle=p,k.fillRect(0,0,l,d),k.save(),k.translate(l/2,d/2),k.rotate(u*Math.PI/180),k.scale(m,g),k.imageSmoothingEnabled=f,k.imageSmoothingQuality=v,k.drawImage.apply(k,[b].concat(U(O.map(function(t){return Math.floor(B(t))})))),k.restore(),T);if(!this.cropped)return i;var n=this.getData(t.rounded),o=n.x,a=n.y,r=n.width,s=n.height,h=i.width/Math.floor(e.naturalWidth),c=(1!=h&&(o*=h,a*=h,r*=h,s*=h),r/s),p=z({aspectRatio:c,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),l=z({aspectRatio:c,width:t.minWidth||0,height:t.minHeight||0},"cover"),d=z({aspectRatio:c,width:t.width||(1!=h?i.width:r),height:t.height||(1!=h?i.height:s)}),u=d.width,m=d.height,u=Math.min(p.width,Math.max(l.width,u)),m=Math.min(p.height,Math.max(l.height,m)),g=document.createElement("canvas"),f=g.getContext("2d"),v=(g.width=B(u),g.height=B(m),f.fillStyle=t.fillColor||"transparent",f.fillRect(0,0,u,m),t.imageSmoothingEnabled),b=t.imageSmoothingQuality;f.imageSmoothingEnabled=void 0===v||v,b&&(f.imageSmoothingQuality=b);var w,x,y,M,C,D,c,O=i.width,k=i.height,T=o,n=a,e=(T<=-r||O<T?C=y=w=T=0:T<=0?(y=-T,T=0,C=w=Math.min(O,r+T)):T<=O&&(y=0,C=w=Math.min(r,O-T)),w<=0||n<=-s||k<n?D=M=x=n=0:n<=0?(M=-n,n=0,D=x=Math.min(k,s+n)):n<=k&&(M=0,D=x=Math.min(s,k-n)),[T,n,w,x]);return 0<C&&0<D&&e.push(y*(c=u/r),M*c,C*c,D*c),f.drawImage.apply(f,[i].concat(U(e.map(function(t){return Math.floor(B(t))})))),g},setAspectRatio:function(t){var e=this.options;return this.disabled||o(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped)&&this.renderCropBox()),this},setDragMode:function(t){var e,i,n=this.options,o=this.dragBox,a=this.face;return this.ready&&!this.disabled&&(i=n.movable&&"move"===t,n.dragMode=t=(e="crop"===t)||i?t:"none",l(o,A,t),r(o,M,e),r(o,D,i),n.cropBoxMovable||(l(a,A,t),r(a,M,e),r(a,D,i))),this}},Ct=x.Cropper,H=[{key:"noConflict",value:function(){return window.Cropper=Ct,w}},{key:"setDefaults",value:function(t){W(rt,u(t)&&t)}}],I((R=w).prototype,[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e.cropper){if(e.cropper=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",!(this.originalUrl=t))return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e,i,n,o,a,r,s=this;t&&(this.url=t,this.imageData={},e=this.element,(i=this.options).rotatable||i.scalable||(i.checkOrientation=!1),i.checkOrientation&&window.ArrayBuffer?nt.test(t)?ot.test(t)?this.read((r=t.replace(wt,""),n=atob(r),r=new ArrayBuffer(n.length),O(o=new Uint8Array(r),function(t,e){o[e]=n.charCodeAt(e)}),r)):this.clone():(a=new XMLHttpRequest,r=this.clone.bind(this),this.reloading=!0,(this.xhr=a).onabort=r,a.onerror=r,a.ontimeout=r,a.onprogress=function(){"image/jpeg"!==a.getResponseHeader("content-type")&&a.abort()},a.onload=function(){s.read(a.response)},a.onloadend=function(){s.reloading=!1,s.xhr=null},i.checkCrossOrigin&&F(t)&&e.crossOrigin&&(t=$(t)),a.open("GET",t,!0),a.responseType="arraybuffer",a.withCredentials="use-credentials"===e.crossOrigin,a.send()):this.clone())}},{key:"read",value:function(i){var t,e=this.options,n=this.imageData,o=G(i),a=0,r=1,s=1;1<o&&(this.url=(()=>{for(var t=[],e=new Uint8Array(i);0<e.length;)t.push(bt.apply(null,q(e.subarray(0,8192)))),e=e.subarray(8192);return"data:".concat("image/jpeg",";base64,").concat(btoa(t.join("")))})(),a=(t=(()=>{var t=0,e=1,i=1;switch(o){case 2:e=-1;break;case 3:t=-180;break;case 4:i=-1;break;case 5:t=90,i=-1;break;case 6:t=90;break;case 7:t=90,e=-1;break;case 8:t=-90}return{rotate:t,scaleX:e,scaleY:i}})()).rotate,r=t.scaleX,s=t.scaleY),e.rotatable&&(n.rotate=a),e.scalable&&(n.scaleX=r,n.scaleY=s),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,n=e,o=(this.options.checkCrossOrigin&&F(e)&&(i=i||"anonymous",n=$(e)),this.crossOrigin=i,this.crossOriginUrl=n,document.createElement("img"));i&&(o.crossOrigin=i),o.src=n||e,o.alt=t.alt||"The image to crop",(this.image=o).onload=this.start.bind(this),o.onerror=this.stop.bind(this),p(o,_),t.parentNode.insertBefore(o,t.nextSibling)}},{key:"start",value:function(){function t(t,e){W(n.imageData,{naturalWidth:t,naturalHeight:e,aspectRatio:t/e}),n.initialImageData=W({},n.imageData),n.sizing=!1,n.sized=!0,n.build()}var e,i,n=this,o=this.image,a=(o.onload=null,this.sizing=!(o.onerror=null),x.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(x.navigator.userAgent));!o.naturalWidth||a?(e=document.createElement("img"),i=document.body||document.documentElement,(this.sizingImage=e).onload=function(){t(e.width,e.height),a||i.removeChild(e)},e.src=o.src,a||(e.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;",i.appendChild(e))):t(o.naturalWidth,o.naturalHeight)}},{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(){var t,e,i,n,o,a,r,s,h;this.sized&&!this.ready&&(t=this.element,e=this.options,i=this.image,n=t.parentNode,(o=document.createElement("div")).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>',a=(o=o.querySelector(".".concat("cropper","-container"))).querySelector(".".concat("cropper","-canvas")),r=o.querySelector(".".concat("cropper","-drag-box")),h=(s=o.querySelector(".".concat("cropper","-crop-box"))).querySelector(".".concat("cropper","-face")),this.container=n,this.cropper=o,this.canvas=a,this.dragBox=r,this.cropBox=s,this.viewBox=o.querySelector(".".concat("cropper","-view-box")),this.face=h,a.appendChild(i),p(t,T),n.insertBefore(o,t.nextSibling),k(i,_),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,p(s,T),e.guides||p(s.getElementsByClassName("".concat("cropper","-dashed")),T),e.center||p(s.getElementsByClassName("".concat("cropper","-center")),T),e.background&&p(o,"".concat("cropper","-bg")),e.highlight||p(h,J),e.cropBoxMovable&&(p(h,D),l(h,A,"all")),e.cropBoxResizable||(p(s.getElementsByClassName("".concat("cropper","-line")),T),p(s.getElementsByClassName("".concat("cropper","-point")),T)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),c(e.ready)&&f(t,"ready",e.ready,{once:!0}),v(t,"ready"))}},{key:"unbuild",value:function(){var t;this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),(t=this.cropper.parentNode)&&t.removeChild(this.cropper),k(this.element,T))}},{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()}}]),I(R,H),Object.defineProperty(R,"prototype",{writable:!1}),W((H=R).prototype,t,y,e,xt,yt,Mt),H)},879:function(t,e,i){var n=i(880);"string"==typeof n&&(n=[[t.i,n,""]]);i(91)(n,{insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0}),n.locals&&(t.exports=n.locals)},880:function(t,e,i){(e=i(90)(!1)).push([t.i,"/*!\n * Cropper.js v1.6.2\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2024-04-21T07:43:02.731Z\n */\n.cropper-container {\n direction: ltr;\n font-size: 0;\n line-height: 0;\n position: relative;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.cropper-container img {\n backface-visibility: hidden;\n display: block;\n height: 100%;\n image-orientation: 0deg;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n}\n.cropper-wrap-box,\n.cropper-canvas,\n.cropper-drag-box,\n.cropper-crop-box,\n.cropper-modal {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n.cropper-wrap-box,\n.cropper-canvas {\n overflow: hidden;\n}\n.cropper-drag-box {\n background-color: #fff;\n opacity: 0;\n}\n.cropper-modal {\n background-color: #000;\n opacity: 0.5;\n}\n.cropper-view-box {\n display: block;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n overflow: hidden;\n width: 100%;\n}\n.cropper-dashed {\n border: 0 dashed #eee;\n display: block;\n opacity: 0.5;\n position: absolute;\n}\n.cropper-dashed.dashed-h {\n border-bottom-width: 1px;\n border-top-width: 1px;\n height: calc(100% / 3);\n left: 0;\n top: calc(100% / 3);\n width: 100%;\n}\n.cropper-dashed.dashed-v {\n border-left-width: 1px;\n border-right-width: 1px;\n height: 100%;\n left: calc(100% / 3);\n top: 0;\n width: calc(100% / 3);\n}\n.cropper-center {\n display: block;\n height: 0;\n left: 50%;\n opacity: 0.75;\n position: absolute;\n top: 50%;\n width: 0;\n}\n.cropper-center::before,\n.cropper-center::after {\n background-color: #eee;\n content: ' ';\n display: block;\n position: absolute;\n}\n.cropper-center::before {\n height: 1px;\n left: -3px;\n top: 0;\n width: 7px;\n}\n.cropper-center::after {\n height: 7px;\n left: 0;\n top: -3px;\n width: 1px;\n}\n.cropper-face,\n.cropper-line,\n.cropper-point {\n display: block;\n height: 100%;\n opacity: 0.1;\n position: absolute;\n width: 100%;\n}\n.cropper-face {\n background-color: #fff;\n left: 0;\n top: 0;\n}\n.cropper-line {\n background-color: #39f;\n}\n.cropper-line.line-e {\n cursor: ew-resize;\n right: -3px;\n top: 0;\n width: 5px;\n}\n.cropper-line.line-n {\n cursor: ns-resize;\n height: 5px;\n left: 0;\n top: -3px;\n}\n.cropper-line.line-w {\n cursor: ew-resize;\n left: -3px;\n top: 0;\n width: 5px;\n}\n.cropper-line.line-s {\n bottom: -3px;\n cursor: ns-resize;\n height: 5px;\n left: 0;\n}\n.cropper-point {\n background-color: #39f;\n height: 5px;\n opacity: 0.75;\n width: 5px;\n}\n.cropper-point.point-e {\n cursor: ew-resize;\n margin-top: -3px;\n right: -3px;\n top: 50%;\n}\n.cropper-point.point-n {\n cursor: ns-resize;\n left: 50%;\n margin-left: -3px;\n top: -3px;\n}\n.cropper-point.point-w {\n cursor: ew-resize;\n left: -3px;\n margin-top: -3px;\n top: 50%;\n}\n.cropper-point.point-s {\n bottom: -3px;\n cursor: s-resize;\n left: 50%;\n margin-left: -3px;\n}\n.cropper-point.point-ne {\n cursor: nesw-resize;\n right: -3px;\n top: -3px;\n}\n.cropper-point.point-nw {\n cursor: nwse-resize;\n left: -3px;\n top: -3px;\n}\n.cropper-point.point-sw {\n bottom: -3px;\n cursor: nesw-resize;\n left: -3px;\n}\n.cropper-point.point-se {\n bottom: -3px;\n cursor: nwse-resize;\n height: 20px;\n opacity: 1;\n right: -3px;\n width: 20px;\n}\n@media (min-width: 768px) {\n .cropper-point.point-se {\n height: 15px;\n width: 15px;\n }\n}\n@media (min-width: 992px) {\n .cropper-point.point-se {\n height: 10px;\n width: 10px;\n }\n}\n@media (min-width: 1200px) {\n .cropper-point.point-se {\n height: 5px;\n opacity: 0.75;\n width: 5px;\n }\n}\n.cropper-point.point-se::before {\n background-color: #39f;\n bottom: -50%;\n content: ' ';\n display: block;\n height: 200%;\n opacity: 0;\n position: absolute;\n right: -50%;\n width: 200%;\n}\n.cropper-invisible {\n opacity: 0;\n}\n.cropper-bg {\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');\n}\n.cropper-hide {\n display: block;\n height: 0;\n position: absolute;\n width: 0;\n}\n.cropper-hidden {\n display: none !important;\n}\n.cropper-move {\n cursor: move;\n}\n.cropper-crop {\n cursor: crosshair;\n}\n.cropper-disabled .cropper-drag-box,\n.cropper-disabled .cropper-face,\n.cropper-disabled .cropper-line,\n.cropper-disabled .cropper-point {\n cursor: not-allowed;\n}\n",""]),t.exports=e}}]);
|
|
1
|
+
/*! For license information please see async-feffery_image_cropper.js.LICENSE.txt */
|
|
2
|
+
(window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[18],{548:function(t,e,i){"use strict";i.r(e);var n=i(1),a=i.n(n),o=i(878),r=i.n(o),s=function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};function h(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(i[n[a]]=t[n[a]])}return i}var c=["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"],p={opacity:0,maxWidth:"100%"},l=a.a.forwardRef((function(t,e){var i=h(t,[]),o=i.dragMode,l=void 0===o?"crop":o,d=i.src,u=i.style,m=i.className,g=i.crossOrigin,f=i.scaleX,v=i.scaleY,b=i.enable,w=i.zoomTo,x=i.rotateTo,y=i.alt,M=void 0===y?"picture":y,C=i.ready,D=i.onInitialized,O=h(i,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),k={scaleY:v,scaleX:f,enable:b,zoomTo:w,rotateTo:x},T=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=Object(n.useRef)(null);return a.a.useEffect((function(){t.forEach((function(t){t&&("function"==typeof t?t(i.current):t.current=i.current)}))}),[t]),i}(e,Object(n.useRef)(null));Object(n.useEffect)((function(){var t;(null===(t=T.current)||void 0===t?void 0:t.cropper)&&"number"==typeof w&&T.current.cropper.zoomTo(w)}),[i.zoomTo]),Object(n.useEffect)((function(){var t;(null===(t=T.current)||void 0===t?void 0:t.cropper)&&void 0!==d&&T.current.cropper.reset().clear().replace(d)}),[d]),Object(n.useEffect)((function(){if(null!==T.current){var t=new r.a(T.current,s(s({dragMode:l},O),{ready:function(t){null!==t.currentTarget&&function(t,e){void 0===e&&(e={});var i=e.enable,n=void 0===i||i,a=e.scaleX,o=void 0===a?1:a,r=e.scaleY,s=void 0===r?1:r,h=e.zoomTo,c=void 0===h?0:h,p=e.rotateTo;n?t.enable():t.disable(),t.scaleX(o),t.scaleY(s),void 0!==p&&t.rotateTo(p),c>0&&t.zoomTo(c)}(t.currentTarget.cropper,k),C&&C(t)}}));D&&D(t)}return function(){var t,e;null===(e=null===(t=T.current)||void 0===t?void 0:t.cropper)||void 0===e||e.destroy()}}),[T]);var B,z=(B=s(s({},O),{crossOrigin:g,src:d,alt:M}),c.reduce((function(t,e){var i=t,n=e;return i[n],h(i,["symbol"==typeof n?n:n+""])}),B));return a.a.createElement("div",{style:u,className:m},a.a.createElement("img",s({},z,{style:p,ref:T})))})),d=(i(879),i(25)),u=i(63),m=i(222),g=function(t){var e=t.id,i=t.className,o=t.style,r=t.key,s=(t.croppedImageData,t.src),h=t.alt,c=t.crossOrigin,p=t.viewMode,m=t.dragMode,g=t.initialAspectRatio,f=t.aspectRatio,v=t.data,b=t.preview,w=t.responsive,x=t.restore,y=t.checkCrossOrigin,M=t.checkOrientation,C=t.modal,D=t.guides,O=t.center,k=t.highlight,T=t.background,B=t.autoCrop,z=t.autoCropArea,A=t.movable,E=t.rotatable,W=t.scalable,j=t.zoomable,R=t.zoomOnTouch,H=t.zoomOnWheel,X=t.wheelZoomRatio,Y=t.cropBoxMovable,N=t.cropBoxResizable,S=t.toggleDragModeOnDblclick,L=t.minContainerWidth,P=t.minContainerHeight,I=t.minCanvasWidth,U=t.minCanvasHeight,Z=t.minCropBoxWidth,q=t.minCropBoxHeight,Q=t.reset,F=t.clear,$=t.replace,G=t.enable,V=t.disable,_=t.destroy,J=t.move,K=t.moveTo,tt=t.zoom,et=t.zoomTo,it=t.rotate,nt=t.rotateTo,at=t.scale,ot=t.scaleX,rt=t.scaleY,st=(t.outputData,t.containerData,t.imageData,t.canvasData,t.cropBoxData,t.setProps),ht=t.loading_state,ct=Object(n.useRef)(null);return Object(n.useEffect)((function(){var t;Q&&(null===(t=ct.current)||void 0===t||t.cropper.reset(),st({reset:!1}))}),[Q]),Object(n.useEffect)((function(){var t;F&&(null===(t=ct.current)||void 0===t||t.cropper.clear(),st({clear:!1}))}),[F]),Object(n.useEffect)((function(){var t;$.isReplace&&$.url&&(null===(t=ct.current)||void 0===t||t.cropper.replace($.url,$.hasSameSize),st({replace:{isReplace:!1,url:void 0,hasSameSize:!1}}))}),[$]),Object(n.useEffect)((function(){var t;G&&(null===(t=ct.current)||void 0===t||t.cropper.enable(),st({enable:!1}))}),[G]),Object(n.useEffect)((function(){var t;V&&(null===(t=ct.current)||void 0===t||t.cropper.disable(),st({disable:!1}))}),[V]),Object(n.useEffect)((function(){var t;_&&(null===(t=ct.current)||void 0===t||t.cropper.destroy(),st({destroy:!1}))}),[_]),Object(n.useEffect)((function(){var t;J.isMove&&J.offsetX&&(null===(t=ct.current)||void 0===t||t.cropper.move(J.offsetX,J.offsetY),st({move:{isMove:!1,offsetX:void 0,offsetY:void 0}}))}),[J]),Object(n.useEffect)((function(){var t;K.isMoveTo&&K.x&&(null===(t=ct.current)||void 0===t||t.cropper.moveTo(K.x,K.y),st({moveTo:{isMoveTo:!1,x:void 0,y:void 0}}))}),[K]),Object(n.useEffect)((function(){var t;tt.isZoom&&tt.ratio&&(null===(t=ct.current)||void 0===t||t.cropper.zoom(tt.ratio),st({zoom:{isZoom:!1,ratio:void 0}}))}),[tt]),Object(n.useEffect)((function(){var t;et.isZoomTo&&et.ratio&&(null===(t=ct.current)||void 0===t||t.cropper.zoomTo(et.ratio,et.pivot),st({zoomTo:{isZoomTo:!1,ratio:void 0,pivot:void 0}}))}),[et]),Object(n.useEffect)((function(){var t;it.isRotate&&it.degree&&(null===(t=ct.current)||void 0===t||t.cropper.rotate(it.degree),st({rotate:{isRotate:!1,degree:void 0}}))}),[it]),Object(n.useEffect)((function(){var t;nt.isRotateTo&&nt.degree&&(null===(t=ct.current)||void 0===t||t.cropper.rotateTo(nt.degree),st({rotateTo:{isRotateTo:!1,degree:void 0}}))}),[nt]),Object(n.useEffect)((function(){var t;at.isScale&&at.scaleX&&(null===(t=ct.current)||void 0===t||t.cropper.scale(at.scaleX,at.scaleY),st({scale:{isScale:!1,scaleX:void 0,scaleY:void 0}}))}),[at]),Object(n.useEffect)((function(){var t;ot.isScaleX&&ot.scaleX&&(null===(t=ct.current)||void 0===t||t.cropper.scaleX(ot.scaleX),st({scaleX:{isScaleX:!1,scaleX:void 0}}))}),[ot]),Object(n.useEffect)((function(){var t;rt.isScaleY&&rt.scaleY&&(null===(t=ct.current)||void 0===t||t.cropper.scaleY(rt.scaleY),st({scaleY:{isScaleY:!1,scaleY:void 0}}))}),[rt]),a.a.createElement(l,{ref:ct,id:e,className:Object(d.isString)(i)?i:i?Object(u.a)(i):void 0,style:o,key:r,src:s,alt:h,crossOrigin:c,viewMode:p,dragMode:m,initialAspectRatio:g,aspectRatio:f,data:v,preview:b,responsive:w,restore:x,checkCrossOrigin:y,checkOrientation:M,modal:C,guides:D,center:O,highlight:k,background:T,autoCrop:B,autoCropArea:z,movable:A,rotatable:E,scalable:W,zoomable:j,zoomOnTouch:R,zoomOnWheel:H,wheelZoomRatio:X,cropBoxMovable:Y,cropBoxResizable:N,toggleDragModeOnDblclick:S,minContainerWidth:L,minContainerHeight:P,minCanvasWidth:I,minCanvasHeight:U,minCropBoxWidth:Z,minCropBoxHeight:q,crop:function(){var t,e=null===(t=ct.current)||void 0===t?void 0:t.cropper;st({croppedImageData:e.getCroppedCanvas().toDataURL()}),st({outputData:e.getData()}),st({containerData:e.getContainerData()}),st({imageData:e.getImageData()}),st({canvasData:e.getCanvasData()}),st({cropBoxData:e.getCropBoxData()})},loading_state:ht})};e.default=g;g.defaultProps=m.b,g.propTypes=m.c},878:function(t,e,i){t.exports=function(){"use strict";function t(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function e(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?t(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new 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 a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,i(a.key),a)}}function r(t,e,n){return(e=i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return function(t){if(Array.isArray(t))return h(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 h(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?h(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var c="undefined"!=typeof window&&void 0!==window.document,p=c?window:{},l=!(!c||!p.document.documentElement)&&"ontouchstart"in p.document.documentElement,d=!!c&&"PointerEvent"in p,u="".concat("cropper","-crop"),m="".concat("cropper","-disabled"),g="".concat("cropper","-hidden"),f="".concat("cropper","-hide"),v="".concat("cropper","-invisible"),b="".concat("cropper","-modal"),w="".concat("cropper","-move"),x="".concat("cropper","Action"),y="".concat("cropper","Preview"),M=l?"touchstart":"mousedown",C=l?"touchmove":"mousemove",D=l?"touchend touchcancel":"mouseup",O=d?"pointerdown":M,k=d?"pointermove":C,T=d?"pointerup pointercancel":D,B=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,z=/^data:/,A=/^data:image\/jpeg;base64,/,E=/^img|canvas$/i,W={viewMode:0,dragMode:"crop",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},j=Number.isNaN||p.isNaN;function R(t){return"number"==typeof t&&!j(t)}var H=function(t){return t>0&&t<1/0};function X(t){return void 0===t}function Y(t){return"object"===n(t)&&null!==t}var N=Object.prototype.hasOwnProperty;function S(t){if(!Y(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&N.call(i,"isPrototypeOf")}catch(t){return!1}}function L(t){return"function"==typeof t}var P=Array.prototype.slice;function I(t){return Array.from?Array.from(t):P.call(t)}function U(t,e){return t&&L(e)&&(Array.isArray(t)||R(t.length)?I(t).forEach((function(i,n){e.call(t,i,n,t)})):Y(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}))),t}var Z=Object.assign||function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return Y(t)&&i.length>0&&i.forEach((function(e){Y(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},q=/\.\d*(?:0|9){12}\d*$/;function Q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return q.test(t)?Math.round(t*e)/e:t}var F=/^width|height|left|top|marginLeft|marginTop$/;function $(t,e){var i=t.style;U(e,(function(t,e){F.test(e)&&R(t)&&(t="".concat(t,"px")),i[e]=t}))}function G(t,e){if(e)if(R(t.length))U(t,(function(t){G(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function V(t,e){e&&(R(t.length)?U(t,(function(t){V(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function _(t,e,i){e&&(R(t.length)?U(t,(function(t){_(t,e,i)})):i?G(t,e):V(t,e))}var J=/([a-z\d])([A-Z])/g;function K(t){return t.replace(J,"$1-$2").toLowerCase()}function tt(t,e){return Y(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(K(e)))}function et(t,e,i){Y(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(K(e)),i)}var it=/\s\s*/,nt=function(){var t=!1;if(c){var e=!1,i=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});p.addEventListener("test",i,n),p.removeEventListener("test",i,n)}return t}();function at(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i;e.trim().split(it).forEach((function(e){if(!nt){var o=t.listeners;o&&o[e]&&o[e][i]&&(a=o[e][i],delete o[e][i],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,a,n)}))}function ot(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i;e.trim().split(it).forEach((function(e){if(n.once&&!nt){var o=t.listeners,r=void 0===o?{}:o;a=function(){delete r[e][i],t.removeEventListener(e,a,n);for(var o=arguments.length,s=new Array(o),h=0;h<o;h++)s[h]=arguments[h];i.apply(t,s)},r[e]||(r[e]={}),r[e][i]&&t.removeEventListener(e,r[e][i],n),r[e][i]=a,t.listeners=r}t.addEventListener(e,a,n)}))}function rt(t,e,i){var n;return L(Event)&&L(CustomEvent)?n=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(n)}function st(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var ht=p.location,ct=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function pt(t){var e=t.match(ct);return null!==e&&(e[1]!==ht.protocol||e[2]!==ht.hostname||e[3]!==ht.port)}function lt(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function dt(t){var e=t.rotate,i=t.scaleX,n=t.scaleY,a=t.translateX,o=t.translateY,r=[];R(a)&&0!==a&&r.push("translateX(".concat(a,"px)")),R(o)&&0!==o&&r.push("translateY(".concat(o,"px)")),R(e)&&0!==e&&r.push("rotate(".concat(e,"deg)")),R(i)&&1!==i&&r.push("scaleX(".concat(i,")")),R(n)&&1!==n&&r.push("scaleY(".concat(n,")"));var s=r.length?r.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function ut(t,i){var n=t.pageX,a=t.pageY,o={endX:n,endY:a};return i?o:e({startX:n,startY:a},o)}function mt(t){var e=t.aspectRatio,i=t.height,n=t.width,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=H(n),r=H(i);if(o&&r){var s=i*e;"contain"===a&&s>n||"cover"===a&&s<n?i=n/e:n=i*e}else o?i=n/e:r&&(n=i*e);return{width:n,height:i}}function gt(t,e,i,n){var a=e.aspectRatio,o=e.naturalWidth,r=e.naturalHeight,h=e.rotate,c=void 0===h?0:h,p=e.scaleX,l=void 0===p?1:p,d=e.scaleY,u=void 0===d?1:d,m=i.aspectRatio,g=i.naturalWidth,f=i.naturalHeight,v=n.fillColor,b=void 0===v?"transparent":v,w=n.imageSmoothingEnabled,x=void 0===w||w,y=n.imageSmoothingQuality,M=void 0===y?"low":y,C=n.maxWidth,D=void 0===C?1/0:C,O=n.maxHeight,k=void 0===O?1/0:O,T=n.minWidth,B=void 0===T?0:T,z=n.minHeight,A=void 0===z?0:z,E=document.createElement("canvas"),W=E.getContext("2d"),j=mt({aspectRatio:m,width:D,height:k}),R=mt({aspectRatio:m,width:B,height:A},"cover"),H=Math.min(j.width,Math.max(R.width,g)),X=Math.min(j.height,Math.max(R.height,f)),Y=mt({aspectRatio:a,width:D,height:k}),N=mt({aspectRatio:a,width:B,height:A},"cover"),S=Math.min(Y.width,Math.max(N.width,o)),L=Math.min(Y.height,Math.max(N.height,r)),P=[-S/2,-L/2,S,L];return E.width=Q(H),E.height=Q(X),W.fillStyle=b,W.fillRect(0,0,H,X),W.save(),W.translate(H/2,X/2),W.rotate(c*Math.PI/180),W.scale(l,u),W.imageSmoothingEnabled=x,W.imageSmoothingQuality=M,W.drawImage.apply(W,[t].concat(s(P.map((function(t){return Math.floor(Q(t))}))))),W.restore(),E}var ft=String.fromCharCode,vt=/^data:.*,/;function bt(t){var e,i=new DataView(t);try{var n,a,o;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var r=i.byteLength,s=2;s+1<r;){if(255===i.getUint8(s)&&225===i.getUint8(s+1)){a=s;break}s+=1}if(a){var h=a+10;if("Exif"===function(t,e,i){var n="";i+=e;for(var a=e;a<i;a+=1)n+=ft(t.getUint8(a));return n}(i,a+4,4)){var c=i.getUint16(h);if(((n=18761===c)||19789===c)&&42===i.getUint16(h+2,n)){var p=i.getUint32(h+4,n);p>=8&&(o=h+p)}}}if(o){var l,d,u=i.getUint16(o,n);for(d=0;d<u;d+=1)if(l=o+12*d+2,274===i.getUint16(l,n)){l+=8,e=i.getUint16(l,n),i.setUint16(l,1,n);break}}}catch(t){e=1}return e}var wt={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,n=this.cropper,a=Number(e.minContainerWidth),o=Number(e.minContainerHeight);G(n,g),V(t,g);var r={width:Math.max(i.offsetWidth,a>=0?a:200),height:Math.max(i.offsetHeight,o>=0?o:100)};this.containerData=r,$(n,{width:r.width,height:r.height}),G(t,g),V(n,g)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,n=Math.abs(e.rotate)%180==90,a=n?e.naturalHeight:e.naturalWidth,o=n?e.naturalWidth:e.naturalHeight,r=a/o,s=t.width,h=t.height;t.height*r>t.width?3===i?s=t.height*r:h=t.width/r:3===i?h=t.width/r:s=t.height*r;var c={aspectRatio:r,naturalWidth:a,naturalHeight:o,width:s,height:h};this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.left=(t.width-c.width)/2,c.top=(t.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCanvasData=Z({},c)},limitCanvas:function(t,e){var i=this.options,n=this.containerData,a=this.canvasData,o=this.cropBoxData,r=i.viewMode,s=a.aspectRatio,h=this.cropped&&o;if(t){var c=Number(i.minCanvasWidth)||0,p=Number(i.minCanvasHeight)||0;r>1?(c=Math.max(c,n.width),p=Math.max(p,n.height),3===r&&(p*s>c?c=p*s:p=c/s)):r>0&&(c?c=Math.max(c,h?o.width:0):p?p=Math.max(p,h?o.height:0):h&&(c=o.width,(p=o.height)*s>c?c=p*s:p=c/s));var l=mt({aspectRatio:s,width:c,height:p});c=l.width,p=l.height,a.minWidth=c,a.minHeight=p,a.maxWidth=1/0,a.maxHeight=1/0}if(e)if(r>(h?0:1)){var d=n.width-a.width,u=n.height-a.height;a.minLeft=Math.min(0,d),a.minTop=Math.min(0,u),a.maxLeft=Math.max(0,d),a.maxTop=Math.max(0,u),h&&this.limited&&(a.minLeft=Math.min(o.left,o.left+(o.width-a.width)),a.minTop=Math.min(o.top,o.top+(o.height-a.height)),a.maxLeft=o.left,a.maxTop=o.top,2===r&&(a.width>=n.width&&(a.minLeft=Math.min(0,d),a.maxLeft=Math.max(0,d)),a.height>=n.height&&(a.minTop=Math.min(0,u),a.maxTop=Math.max(0,u))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=n.width,a.maxTop=n.height},renderCanvas:function(t,e){var i=this.canvasData,n=this.imageData;if(e){var a=function(t){var e=t.width,i=t.height,n=t.degree;if(90==(n=Math.abs(n)%180))return{width:i,height:e};var a=n%90*Math.PI/180,o=Math.sin(a),r=Math.cos(a),s=e*r+i*o,h=e*o+i*r;return n>90?{width:h,height:s}:{width:s,height:h}}({width:n.naturalWidth*Math.abs(n.scaleX||1),height:n.naturalHeight*Math.abs(n.scaleY||1),degree:n.rotate||0}),o=a.width,r=a.height,s=i.width*(o/i.naturalWidth),h=i.height*(r/i.naturalHeight);i.left-=(s-i.width)/2,i.top-=(h-i.height)/2,i.width=s,i.height=h,i.aspectRatio=o/r,i.naturalWidth=o,i.naturalHeight=r,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,$(this.canvas,Z({width:i.width,height:i.height},dt({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,n=i.naturalWidth*(e.width/e.naturalWidth),a=i.naturalHeight*(e.height/e.naturalHeight);Z(i,{width:n,height:a,left:(e.width-n)/2,top:(e.height-a)/2}),$(this.image,Z({width:i.width,height:i.height},dt(Z({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,n=Number(t.autoCropArea)||.8,a={width:e.width,height:e.height};i&&(e.height*i>e.width?a.height=a.width/i:a.width=a.height*i),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*n),a.height=Math.max(a.minHeight,a.height*n),a.left=e.left+(e.width-a.width)/2,a.top=e.top+(e.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Z({},a)},limitCropBox:function(t,e){var i=this.options,n=this.containerData,a=this.canvasData,o=this.cropBoxData,r=this.limited,s=i.aspectRatio;if(t){var h=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,p=r?Math.min(n.width,a.width,a.width+a.left,n.width-a.left):n.width,l=r?Math.min(n.height,a.height,a.height+a.top,n.height-a.top):n.height;h=Math.min(h,n.width),c=Math.min(c,n.height),s&&(h&&c?c*s>h?c=h/s:h=c*s:h?c=h/s:c&&(h=c*s),l*s>p?l=p/s:p=l*s),o.minWidth=Math.min(h,p),o.minHeight=Math.min(c,l),o.maxWidth=p,o.maxHeight=l}e&&(r?(o.minLeft=Math.max(0,a.left),o.minTop=Math.max(0,a.top),o.maxLeft=Math.min(n.width,a.left+a.width)-o.width,o.maxTop=Math.min(n.height,a.top+a.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,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&et(this.face,x,i.width>=e.width&&i.height>=e.height?"move":"all"),$(this.cropBox,Z({width:i.width,height:i.height},dt({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),rt(this.element,"crop",this.getData())}},xt={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,n=e?this.crossOriginUrl:this.url,a=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=n,o.alt=a,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var r=i;"string"==typeof i?r=t.ownerDocument.querySelectorAll(i):i.querySelector&&(r=[i]),this.previews=r,U(r,(function(t){var i=document.createElement("img");et(t,y,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=n,i.alt=a,i.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(i)}))}},resetPreview:function(){U(this.previews,(function(t){var e=tt(t,y);$(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(Y(t[e]))try{delete t[e]}catch(i){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(i){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(K(e)))}(t,y)}))},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,n=i.width,a=i.height,o=t.width,r=t.height,s=i.left-e.left-t.left,h=i.top-e.top-t.top;this.cropped&&!this.disabled&&($(this.viewBoxImage,Z({width:o,height:r},dt(Z({translateX:-s,translateY:-h},t)))),U(this.previews,(function(e){var i=tt(e,y),c=i.width,p=i.height,l=c,d=p,u=1;n&&(d=a*(u=c/n)),a&&d>p&&(l=n*(u=p/a),d=p),$(e,{width:l,height:d}),$(e.getElementsByTagName("img")[0],Z({width:o*u,height:r*u},dt(Z({translateX:-s*u,translateY:-h*u},t))))})))}},yt={bind:function(){var t=this.element,e=this.options,i=this.cropper;L(e.cropstart)&&ot(t,"cropstart",e.cropstart),L(e.cropmove)&&ot(t,"cropmove",e.cropmove),L(e.cropend)&&ot(t,"cropend",e.cropend),L(e.crop)&&ot(t,"crop",e.crop),L(e.zoom)&&ot(t,"zoom",e.zoom),ot(i,O,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&ot(i,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&ot(i,"dblclick",this.onDblclick=this.dblclick.bind(this)),ot(t.ownerDocument,k,this.onCropMove=this.cropMove.bind(this)),ot(t.ownerDocument,T,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&ot(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;L(e.cropstart)&&at(t,"cropstart",e.cropstart),L(e.cropmove)&&at(t,"cropmove",e.cropmove),L(e.cropend)&&at(t,"cropend",e.cropend),L(e.crop)&&at(t,"crop",e.crop),L(e.zoom)&&at(t,"zoom",e.zoom),at(i,O,this.onCropStart),e.zoomable&&e.zoomOnWheel&&at(i,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&at(i,"dblclick",this.onDblclick),at(t.ownerDocument,k,this.onCropMove),at(t.ownerDocument,T,this.onCropEnd),e.responsive&&at(window,"resize",this.onResize)}},Mt={resize:function(){if(!this.disabled){var t,e,i=this.options,n=this.container,a=this.containerData,o=n.offsetWidth/a.width,r=n.offsetHeight/a.height,s=Math.abs(o-1)>Math.abs(r-1)?o:r;1!==s&&(i.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),i.restore&&(this.setCanvasData(U(t,(function(e,i){t[i]=e*s}))),this.setCropBoxData(U(e,(function(t,i){e[i]=t*s})))))}},dblclick:function(){var t,e;this.disabled||"none"===this.options.dragMode||this.setDragMode((t=this.dragBox,e=u,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?"move":"crop"))},wheel:function(t){var e=this,i=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*i,t)))},cropStart:function(t){var e=t.buttons,i=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(R(e)&&1!==e||R(i)&&0!==i||t.ctrlKey))){var n,a=this.options,o=this.pointers;t.changedTouches?U(t.changedTouches,(function(t){o[t.identifier]=ut(t)})):o[t.pointerId||0]=ut(t),n=Object.keys(o).length>1&&a.zoomable&&a.zoomOnTouch?"zoom":tt(t.target,x),B.test(n)&&!1!==rt(this.element,"cropstart",{originalEvent:t,action:n})&&(t.preventDefault(),this.action=n,this.cropping=!1,"crop"===n&&(this.cropping=!0,G(this.dragBox,b)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var i=this.pointers;t.preventDefault(),!1!==rt(this.element,"cropmove",{originalEvent:t,action:e})&&(t.changedTouches?U(t.changedTouches,(function(t){Z(i[t.identifier]||{},ut(t,!0))})):Z(i[t.pointerId||0]||{},ut(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?U(t.changedTouches,(function(t){delete i[t.identifier]})):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,_(this.dragBox,b,this.cropped&&this.options.modal)),rt(this.element,"cropend",{originalEvent:t,action:e}))}}},Ct={change:function(t){var i,n=this.options,a=this.canvasData,o=this.containerData,r=this.cropBoxData,s=this.pointers,h=this.action,c=n.aspectRatio,p=r.left,l=r.top,d=r.width,u=r.height,m=p+d,f=l+u,v=0,b=0,w=o.width,x=o.height,y=!0;!c&&t.shiftKey&&(c=d&&u?d/u:1),this.limited&&(v=r.minLeft,b=r.minTop,w=v+Math.min(o.width,a.width,a.left+a.width),x=b+Math.min(o.height,a.height,a.top+a.height));var M=s[Object.keys(s)[0]],C={x:M.endX-M.startX,y:M.endY-M.startY},D=function(t){switch(t){case"e":m+C.x>w&&(C.x=w-m);break;case"w":p+C.x<v&&(C.x=v-p);break;case"n":l+C.y<b&&(C.y=b-l);break;case"s":f+C.y>x&&(C.y=x-f)}};switch(h){case"all":p+=C.x,l+=C.y;break;case"e":if(C.x>=0&&(m>=w||c&&(l<=b||f>=x))){y=!1;break}D("e"),(d+=C.x)<0&&(h="w",p-=d=-d),c&&(u=d/c,l+=(r.height-u)/2);break;case"n":if(C.y<=0&&(l<=b||c&&(p<=v||m>=w))){y=!1;break}D("n"),u-=C.y,l+=C.y,u<0&&(h="s",l-=u=-u),c&&(d=u*c,p+=(r.width-d)/2);break;case"w":if(C.x<=0&&(p<=v||c&&(l<=b||f>=x))){y=!1;break}D("w"),d-=C.x,p+=C.x,d<0&&(h="e",p-=d=-d),c&&(u=d/c,l+=(r.height-u)/2);break;case"s":if(C.y>=0&&(f>=x||c&&(p<=v||m>=w))){y=!1;break}D("s"),(u+=C.y)<0&&(h="n",l-=u=-u),c&&(d=u*c,p+=(r.width-d)/2);break;case"ne":if(c){if(C.y<=0&&(l<=b||m>=w)){y=!1;break}D("n"),u-=C.y,l+=C.y,d=u*c}else D("n"),D("e"),C.x>=0?m<w?d+=C.x:C.y<=0&&l<=b&&(y=!1):d+=C.x,C.y<=0?l>b&&(u-=C.y,l+=C.y):(u-=C.y,l+=C.y);d<0&&u<0?(h="sw",l-=u=-u,p-=d=-d):d<0?(h="nw",p-=d=-d):u<0&&(h="se",l-=u=-u);break;case"nw":if(c){if(C.y<=0&&(l<=b||p<=v)){y=!1;break}D("n"),u-=C.y,l+=C.y,d=u*c,p+=r.width-d}else D("n"),D("w"),C.x<=0?p>v?(d-=C.x,p+=C.x):C.y<=0&&l<=b&&(y=!1):(d-=C.x,p+=C.x),C.y<=0?l>b&&(u-=C.y,l+=C.y):(u-=C.y,l+=C.y);d<0&&u<0?(h="se",l-=u=-u,p-=d=-d):d<0?(h="ne",p-=d=-d):u<0&&(h="sw",l-=u=-u);break;case"sw":if(c){if(C.x<=0&&(p<=v||f>=x)){y=!1;break}D("w"),d-=C.x,p+=C.x,u=d/c}else D("s"),D("w"),C.x<=0?p>v?(d-=C.x,p+=C.x):C.y>=0&&f>=x&&(y=!1):(d-=C.x,p+=C.x),C.y>=0?f<x&&(u+=C.y):u+=C.y;d<0&&u<0?(h="ne",l-=u=-u,p-=d=-d):d<0?(h="se",p-=d=-d):u<0&&(h="nw",l-=u=-u);break;case"se":if(c){if(C.x>=0&&(m>=w||f>=x)){y=!1;break}D("e"),u=(d+=C.x)/c}else D("s"),D("e"),C.x>=0?m<w?d+=C.x:C.y>=0&&f>=x&&(y=!1):d+=C.x,C.y>=0?f<x&&(u+=C.y):u+=C.y;d<0&&u<0?(h="nw",l-=u=-u,p-=d=-d):d<0?(h="sw",p-=d=-d):u<0&&(h="ne",l-=u=-u);break;case"move":this.move(C.x,C.y),y=!1;break;case"zoom":this.zoom(function(t){var i=e({},t),n=0;return U(t,(function(t,e){delete i[e],U(i,(function(e){var i=Math.abs(t.startX-e.startX),a=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),r=Math.abs(t.endY-e.endY),s=Math.sqrt(i*i+a*a),h=(Math.sqrt(o*o+r*r)-s)/s;Math.abs(h)>Math.abs(n)&&(n=h)}))})),n}(s),t),y=!1;break;case"crop":if(!C.x||!C.y){y=!1;break}i=st(this.cropper),p=M.startX-i.left,l=M.startY-i.top,d=r.minWidth,u=r.minHeight,C.x>0?h=C.y>0?"se":"ne":C.x<0&&(p-=d,h=C.y>0?"sw":"nw"),C.y<0&&(l-=u),this.cropped||(V(this.cropBox,g),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}y&&(r.width=d,r.height=u,r.left=p,r.top=l,this.action=h,this.renderCropBox()),U(s,(function(t){t.startX=t.endX,t.startY=t.endY}))}},Dt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&G(this.dragBox,b),V(this.cropBox,g),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Z({},this.initialImageData),this.canvasData=Z({},this.initialCanvasData),this.cropBoxData=Z({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Z(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),V(this.dragBox,b),G(this.cropBox,g)),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,U(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,V(this.cropper,m)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,G(this.cropper,m)),this},destroy:function(){var t=this.element;return t.cropper?(t.cropper=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,n=i.left,a=i.top;return this.moveTo(X(t)?t:n+Number(t),X(e)?e:a+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,n=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(R(t)&&(i.left=t,n=!0),R(e)&&(i.top=e,n=!0),n&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var n=this.options,a=this.canvasData,o=a.width,r=a.height,s=a.naturalWidth,h=a.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&n.zoomable){var c=s*t,p=h*t;if(!1===rt(this.element,"zoom",{ratio:t,oldRatio:o/s,originalEvent:i}))return this;if(i){var l=this.pointers,d=st(this.cropper),u=l&&Object.keys(l).length?function(t){var e=0,i=0,n=0;return U(t,(function(t){var a=t.startX,o=t.startY;e+=a,i+=o,n+=1})),{pageX:e/=n,pageY:i/=n}}(l):{pageX:i.pageX,pageY:i.pageY};a.left-=(c-o)*((u.pageX-d.left-a.left)/o),a.top-=(p-r)*((u.pageY-d.top-a.top)/r)}else S(e)&&R(e.x)&&R(e.y)?(a.left-=(c-o)*((e.x-a.left)/o),a.top-=(p-r)*((e.y-a.top)/r)):(a.left-=(c-o)/2,a.top-=(p-r)/2);a.width=c,a.height=p,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return R(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,R(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(R(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,n=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(R(t)&&(i.scaleX=t,n=!0),R(e)&&(i.scaleY=e,n=!0),n&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,n=this.imageData,a=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-a.left,y:o.top-a.top,width:o.width,height:o.height};var r=n.width/n.naturalWidth;if(U(t,(function(e,i){t[i]=e/r})),e){var s=Math.round(t.y+t.height),h=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=h-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return i.rotatable&&(t.rotate=n.rotate||0),i.scalable&&(t.scaleX=n.scaleX||1,t.scaleY=n.scaleY||1),t},setData:function(t){var e=this.options,i=this.imageData,n=this.canvasData,a={};if(this.ready&&!this.disabled&&S(t)){var o=!1;e.rotatable&&R(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,o=!0),e.scalable&&(R(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,o=!0),R(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var r=i.width/i.naturalWidth;R(t.x)&&(a.left=t.x*r+n.left),R(t.y)&&(a.top=t.y*r+n.top),R(t.width)&&(a.width=t.width*r),R(t.height)&&(a.height=t.height*r),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Z({},this.containerData):{}},getImageData:function(){return this.sized?Z({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&U(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){e[i]=t[i]})),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&S(t)&&(R(t.left)&&(e.left=t.left),R(t.top)&&(e.top=t.top),R(t.width)?(e.width=t.width,e.height=t.width/i):R(t.height)&&(e.height=t.height,e.width=t.height*i),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,i,n=this.cropBoxData,a=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&S(t)&&(R(t.left)&&(n.left=t.left),R(t.top)&&(n.top=t.top),R(t.width)&&t.width!==n.width&&(e=!0,n.width=t.width),R(t.height)&&t.height!==n.height&&(i=!0,n.height=t.height),a&&(e?n.height=n.width/a:i&&(n.width=n.height*a)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,i=gt(this.image,this.imageData,e,t);if(!this.cropped)return i;var n=this.getData(t.rounded),a=n.x,o=n.y,r=n.width,h=n.height,c=i.width/Math.floor(e.naturalWidth);1!==c&&(a*=c,o*=c,r*=c,h*=c);var p=r/h,l=mt({aspectRatio:p,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),d=mt({aspectRatio:p,width:t.minWidth||0,height:t.minHeight||0},"cover"),u=mt({aspectRatio:p,width:t.width||(1!==c?i.width:r),height:t.height||(1!==c?i.height:h)}),m=u.width,g=u.height;m=Math.min(l.width,Math.max(d.width,m)),g=Math.min(l.height,Math.max(d.height,g));var f=document.createElement("canvas"),v=f.getContext("2d");f.width=Q(m),f.height=Q(g),v.fillStyle=t.fillColor||"transparent",v.fillRect(0,0,m,g);var b=t.imageSmoothingEnabled,w=void 0===b||b,x=t.imageSmoothingQuality;v.imageSmoothingEnabled=w,x&&(v.imageSmoothingQuality=x);var y,M,C,D,O,k,T=i.width,B=i.height,z=a,A=o;z<=-r||z>T?(z=0,y=0,C=0,O=0):z<=0?(C=-z,z=0,O=y=Math.min(T,r+z)):z<=T&&(C=0,O=y=Math.min(r,T-z)),y<=0||A<=-h||A>B?(A=0,M=0,D=0,k=0):A<=0?(D=-A,A=0,k=M=Math.min(B,h+A)):A<=B&&(D=0,k=M=Math.min(h,B-A));var E=[z,A,y,M];if(O>0&&k>0){var W=m/r;E.push(C*W,D*W,O*W,k*W)}return v.drawImage.apply(v,[i].concat(s(E.map((function(t){return Math.floor(Q(t))}))))),f},setAspectRatio:function(t){var e=this.options;return this.disabled||X(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,i=this.dragBox,n=this.face;if(this.ready&&!this.disabled){var a="crop"===t,o=e.movable&&"move"===t;t=a||o?t:"none",e.dragMode=t,et(i,x,t),_(i,u,a),_(i,w,o),e.cropBoxMovable||(et(n,x,t),_(n,u,a),_(n,w,o))}return this}},Ot=p.Cropper,kt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a(this,t),!e||!E.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=Z({},W,S(i)&&i),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 e=t,n=[{key:"noConflict",value:function(){return window.Cropper=Ot,t}},{key:"setDefaults",value:function(t){Z(W,S(t)&&t)}}],(i=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e.cropper){if(e.cropper=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var i=this.element,n=this.options;if(n.rotatable||n.scalable||(n.checkOrientation=!1),n.checkOrientation&&window.ArrayBuffer)if(z.test(t))A.test(t)?this.read((a=t.replace(vt,""),o=atob(a),r=new ArrayBuffer(o.length),U(s=new Uint8Array(r),(function(t,e){s[e]=o.charCodeAt(e)})),r)):this.clone();else{var a,o,r,s,h=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=h,h.onabort=c,h.onerror=c,h.ontimeout=c,h.onprogress=function(){"image/jpeg"!==h.getResponseHeader("content-type")&&h.abort()},h.onload=function(){e.read(h.response)},h.onloadend=function(){e.reloading=!1,e.xhr=null},n.checkCrossOrigin&&pt(t)&&i.crossOrigin&&(t=lt(t)),h.open("GET",t,!0),h.responseType="arraybuffer",h.withCredentials="use-credentials"===i.crossOrigin,h.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,i=this.imageData,n=bt(t),a=0,o=1,r=1;if(n>1){this.url=function(t,e){for(var i=[],n=new Uint8Array(t);n.length>0;)i.push(ft.apply(null,I(n.subarray(0,8192)))),n=n.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}(t,"image/jpeg");var s=function(t){var e=0,i=1,n=1;switch(t){case 2:i=-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,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:n}}(n);a=s.rotate,o=s.scaleX,r=s.scaleY}e.rotatable&&(i.rotate=a),e.scalable&&(i.scaleX=o,i.scaleY=r),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,n=e;this.options.checkCrossOrigin&&pt(e)&&(i||(i="anonymous"),n=lt(e)),this.crossOrigin=i,this.crossOriginUrl=n;var a=document.createElement("img");i&&(a.crossOrigin=i),a.src=n||e,a.alt=t.alt||"The image to crop",this.image=a,a.onload=this.start.bind(this),a.onerror=this.stop.bind(this),G(a,f),t.parentNode.insertBefore(a,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var i=p.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(p.navigator.userAgent),n=function(e,i){Z(t.imageData,{naturalWidth:e,naturalHeight:i,aspectRatio:e/i}),t.initialImageData=Z({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||i){var a=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=a,a.onload=function(){n(a.width,a.height),i||o.removeChild(a)},a.src=e.src,i||(a.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(a))}else n(e.naturalWidth,e.naturalHeight)}},{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,i=this.image,n=t.parentNode,a=document.createElement("div");a.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=a.querySelector(".".concat("cropper","-container")),r=o.querySelector(".".concat("cropper","-canvas")),s=o.querySelector(".".concat("cropper","-drag-box")),h=o.querySelector(".".concat("cropper","-crop-box")),c=h.querySelector(".".concat("cropper","-face"));this.container=n,this.cropper=o,this.canvas=r,this.dragBox=s,this.cropBox=h,this.viewBox=o.querySelector(".".concat("cropper","-view-box")),this.face=c,r.appendChild(i),G(t,g),n.insertBefore(o,t.nextSibling),V(i,f),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,G(h,g),e.guides||G(h.getElementsByClassName("".concat("cropper","-dashed")),g),e.center||G(h.getElementsByClassName("".concat("cropper","-center")),g),e.background&&G(o,"".concat("cropper","-bg")),e.highlight||G(c,v),e.cropBoxMovable&&(G(c,w),et(c,x,"all")),e.cropBoxResizable||(G(h.getElementsByClassName("".concat("cropper","-line")),g),G(h.getElementsByClassName("".concat("cropper","-point")),g)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),L(e.ready)&&ot(t,"ready",e.ready,{once:!0}),rt(t,"ready")}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var t=this.cropper.parentNode;t&&t.removeChild(this.cropper),V(this.element,g)}}},{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()}}])&&o(e.prototype,i),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,i,n}();return Z(kt.prototype,wt,xt,yt,Mt,Ct,Dt),kt}()},879:function(t,e,i){var n=i(880);"string"==typeof n&&(n=[[t.i,n,""]]);var a={insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0};i(91)(n,a);n.locals&&(t.exports=n.locals)},880:function(t,e,i){(e=i(90)(!1)).push([t.i,"/*!\n * Cropper.js v1.6.2\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2024-04-21T07:43:02.731Z\n */\n.cropper-container {\n direction: ltr;\n font-size: 0;\n line-height: 0;\n position: relative;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.cropper-container img {\n backface-visibility: hidden;\n display: block;\n height: 100%;\n image-orientation: 0deg;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n}\n.cropper-wrap-box,\n.cropper-canvas,\n.cropper-drag-box,\n.cropper-crop-box,\n.cropper-modal {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n.cropper-wrap-box,\n.cropper-canvas {\n overflow: hidden;\n}\n.cropper-drag-box {\n background-color: #fff;\n opacity: 0;\n}\n.cropper-modal {\n background-color: #000;\n opacity: 0.5;\n}\n.cropper-view-box {\n display: block;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n overflow: hidden;\n width: 100%;\n}\n.cropper-dashed {\n border: 0 dashed #eee;\n display: block;\n opacity: 0.5;\n position: absolute;\n}\n.cropper-dashed.dashed-h {\n border-bottom-width: 1px;\n border-top-width: 1px;\n height: calc(100% / 3);\n left: 0;\n top: calc(100% / 3);\n width: 100%;\n}\n.cropper-dashed.dashed-v {\n border-left-width: 1px;\n border-right-width: 1px;\n height: 100%;\n left: calc(100% / 3);\n top: 0;\n width: calc(100% / 3);\n}\n.cropper-center {\n display: block;\n height: 0;\n left: 50%;\n opacity: 0.75;\n position: absolute;\n top: 50%;\n width: 0;\n}\n.cropper-center::before,\n.cropper-center::after {\n background-color: #eee;\n content: ' ';\n display: block;\n position: absolute;\n}\n.cropper-center::before {\n height: 1px;\n left: -3px;\n top: 0;\n width: 7px;\n}\n.cropper-center::after {\n height: 7px;\n left: 0;\n top: -3px;\n width: 1px;\n}\n.cropper-face,\n.cropper-line,\n.cropper-point {\n display: block;\n height: 100%;\n opacity: 0.1;\n position: absolute;\n width: 100%;\n}\n.cropper-face {\n background-color: #fff;\n left: 0;\n top: 0;\n}\n.cropper-line {\n background-color: #39f;\n}\n.cropper-line.line-e {\n cursor: ew-resize;\n right: -3px;\n top: 0;\n width: 5px;\n}\n.cropper-line.line-n {\n cursor: ns-resize;\n height: 5px;\n left: 0;\n top: -3px;\n}\n.cropper-line.line-w {\n cursor: ew-resize;\n left: -3px;\n top: 0;\n width: 5px;\n}\n.cropper-line.line-s {\n bottom: -3px;\n cursor: ns-resize;\n height: 5px;\n left: 0;\n}\n.cropper-point {\n background-color: #39f;\n height: 5px;\n opacity: 0.75;\n width: 5px;\n}\n.cropper-point.point-e {\n cursor: ew-resize;\n margin-top: -3px;\n right: -3px;\n top: 50%;\n}\n.cropper-point.point-n {\n cursor: ns-resize;\n left: 50%;\n margin-left: -3px;\n top: -3px;\n}\n.cropper-point.point-w {\n cursor: ew-resize;\n left: -3px;\n margin-top: -3px;\n top: 50%;\n}\n.cropper-point.point-s {\n bottom: -3px;\n cursor: s-resize;\n left: 50%;\n margin-left: -3px;\n}\n.cropper-point.point-ne {\n cursor: nesw-resize;\n right: -3px;\n top: -3px;\n}\n.cropper-point.point-nw {\n cursor: nwse-resize;\n left: -3px;\n top: -3px;\n}\n.cropper-point.point-sw {\n bottom: -3px;\n cursor: nesw-resize;\n left: -3px;\n}\n.cropper-point.point-se {\n bottom: -3px;\n cursor: nwse-resize;\n height: 20px;\n opacity: 1;\n right: -3px;\n width: 20px;\n}\n@media (min-width: 768px) {\n .cropper-point.point-se {\n height: 15px;\n width: 15px;\n }\n}\n@media (min-width: 992px) {\n .cropper-point.point-se {\n height: 10px;\n width: 10px;\n }\n}\n@media (min-width: 1200px) {\n .cropper-point.point-se {\n height: 5px;\n opacity: 0.75;\n width: 5px;\n }\n}\n.cropper-point.point-se::before {\n background-color: #39f;\n bottom: -50%;\n content: ' ';\n display: block;\n height: 200%;\n opacity: 0;\n position: absolute;\n right: -50%;\n width: 200%;\n}\n.cropper-invisible {\n opacity: 0;\n}\n.cropper-bg {\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');\n}\n.cropper-hide {\n display: block;\n height: 0;\n position: absolute;\n width: 0;\n}\n.cropper-hidden {\n display: none !important;\n}\n.cropper-move {\n cursor: move;\n}\n.cropper-crop {\n cursor: crosshair;\n}\n.cropper-disabled .cropper-drag-box,\n.cropper-disabled .cropper-face,\n.cropper-disabled .cropper-line,\n.cropper-disabled .cropper-point {\n cursor: not-allowed;\n}\n",""]),t.exports=e}}]);
|
|
3
|
+
//# sourceMappingURL=async-feffery_image_cropper.js.map
|
|
4
|
+
//# sourceMappingURL=async-feffery_image_cropper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"async-feffery_image_cropper.js","sourceRoot":""}
|