PageSourceSearch

https://hype.news/js/CroppieWrapper.470689f8.js

js hype.news collected 2026-09-24 06:33:42 UTC 73,090 bytes, 2 lines download raw bytes

1(self["webpackChunk_hypefactors_hypenews"]=self["webpackChunk_hypefactors_hypenews"]||[]).push([[5622],{3296(e,t,n){"use strict";n(45806)},3717(e,t,n){"use strict";var r=n(79504),i=2147483647,o=36,a=1,s=26,l=38,u=700,h=72,c=128,p="-",f=/[^\0-\u007E]/,d=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",g=o-a,v=RangeError,y=r(d.exec),w=Math.floor,b=String.fromCharCode,_=r("".charCodeAt),x=r([].join),C=r([].push),E=r("".replace),S=r("".split),R=r("".toLowerCase),k=function(e){var t=[],n=0,r=e.length;while(n<r){var i=_(e,n++);if(i>=55296&&i<=56319&&n<r){var o=_(e,n++);56320===(64512&o)?C(t,((1023&i)<<10)+(1023&o)+65536):(C(t,i),n--)}else C(t,i)}return t},A=function(e){return e+22+75*(e<26)},I=function(e,t,n){var r=0;e=n?w(e/u):e>>1,e+=w(e/t);while(e>g*s>>1)e=w(e/g),r+=o;return w(r+(g+1)*e/(e+l))},B=function(e){var t=[];e=k(e);var n,r,l=e.length,u=c,f=0,d=h;for(n=0;n<e.length;n++)r=e[n],r<128&&C(t,b(r));var g=t.length,y=g;g&&C(t,p);while(y<l){var _=i;for(n=0;n<e.length;n++)r=e[n],r>=u&&r<_&&(_=r);var E=y+1;if(_-u>w((i-f)/E))throw new v(m);for(f+=(_-u)*E,u=_,n=0;n<e.length;n++){if(r=e[n],r<u&&++f>i)throw new v(m);if(r===u){var S=f,R=o;while(1){var B=R<=d?a:R>=d+s?s:R-d;if(S<B)break;var P=S-B,O=o-B;C(t,b(A(B+P%O))),S=w(P/O),R+=o}C(t,b(A(S))),d=I(f,E,y===g),f=0,y++}}f++,u++}return x(t,"")};e.exports=function(e){var t,n,r=[],i=S(E(R(e),d,"."),".");for(t=0;t<i.length;t++)n=i[t],C(r,y(f,n)?"xn--"+B(n):n);return x(r,".")}},5506(e,t,n){"use strict";var r=n(46518),i=n(32357).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},14603(e,t,n){"use strict";var r=n(36840),i=n(79504),o=n(655),a=n(22812),s=URLSearchParams,l=s.prototype,u=i(l.append),h=i(l["delete"]),c=i(l.forEach),p=i([].push),f=new s("a=1&a=2&b=3");f["delete"]("a",1),f["delete"]("b",void 0),f+""!=="a=2"&&r(l,"delete",function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return h(this,e);var r=[];c(this,function(e,t){p(r,{key:t,value:e})}),a(t,1);var i,s=o(e),l=o(n),f=0,d=0,m=!1,g=r.length;while(f<g)i=r[f++],m||i.key===s?(m=!0,h(this,i.key)):d++;while(d<g)i=r[d++],i.key===s&&i.value===l||u(this,i.key,i.value)},{enumerable:!0,unsafe:!0})},26480(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>R});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"CroppieWrapper"},[t("el-popover",{attrs:{placement:"bottom",trigger:"manual","popper-class":"croppieEditPopover"},model:{value:e.isEditing,callback:function(t){e.isEditing=t},expression:"isEditing"}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isUploading,expression:"isUploading"}],staticClass:"CroppieWrapper__inner",class:{"has-image":e.hasImage,"no-image":!e.hasImage,"is-circle":e.isCircle},style:e.wrapperComputedStyles,attrs:{slot:"reference","data-testid":"dropZone"},on:{drop:function(t){return t.preventDefault(),e._onDrop.apply(null,arguments)},dragover:function(t){return t.preventDefault(),e._onDragover.apply(null,arguments)},dragleave:function(t){t.preventDefault(),e.isDraggedOver=!1}},slot:"reference"},[t("vue-croppie",{ref:"croppie",attrs:{"enforce-boundary":e.enforceBoundary,"enable-orientation":!1,"show-zoomer":!1,"enable-exif":!0,"enable-resize":!1,viewport:e.settings.viewport,boundary:e.settings.boundary,"min-zoom":.05,"result-type":"base64"},on:{update:e._croppieUpdated}}),e.isOverlayVisible?t("div",{staticClass:"CroppieWrapper__overlay"},[e.hasImage?e._e():t("label",{staticClass:"CroppieWrapper__noImage",class:{"CroppieWrapper__noImage--drag":e.isDraggedOver,"text-white":e.isNoImageColorDark,"text-ink":!e.isNoImageColorDark},style:e.noImageColor?{background:e.noImageColor}:null,attrs:{for:e.identifier}},[e._t("placeholder",function(){return[t("span",{staticClass:"text",style:{fontSize:e.bulmaSizeToRem(e.textSize)},attrs:{"data-testid":"placeholderText"}},[e._t("default",function(){return[e._v(" "+e._s(e.$t("components.croppie_wrapper.upload_thumbnail"))+" "),t("br"),e._v(" "+e._s(e.$t("components.croppie_wrapper.select_file_from_computer"))+" ")]}),t("span",{staticClass:"CroppieWrapper__plusIcon"},[t("i",{staticClass:"hf hf-plus"})])],2)]})],2),e.hasImage&&!e.isEditing?t("div",{staticClass:"CroppieWrapper__actions",style:{fontSize:e.bulmaSizeToRem(e.textSize-1)},attrs:{"data-testid":"actions"}},[e.isEditable?t("a",{staticClass:"CroppieWrapper__action CroppieWrapper__editMode m-b-s",attrs:{"data-testid":"startEdit"},on:{click:function(t){return t.preventDefault(),e._triggerEditMode(!0)}}}
1,[e._v(" "+e._s(e.$t("forms.edit"))+" ")]):e._e(),t("a",{staticClass:"CroppieWrapper__action CroppieWrapper__removeImage",attrs:{"data-testid":"removeImage"},on:{click:function(t){return t.preventDefault(),e._removeImage.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("forms.remove"))+" ")])]):e._e()]):e._e(),t("input",{ref:"file",staticClass:"CroppieWrapper__input",attrs:{id:e.identifier,name:"fileInput_".concat(e.identifier),type:"file","data-testid":"fileInput",accept:e.allowedFormats},on:{change:e._onFileChange}})],1),t("div",{staticClass:"flex justify-center gap-2"},[t("v-button",{staticClass:"is-plain is-dark is-small",attrs:{type:"button","data-testid":"cancelEdit"},on:{click:e.reset}},[e._v(" "+e._s(e.$t("forms.cancel"))+" ")]),t("v-button",{staticClass:"is-primary is-small",attrs:{type:"button","data-testid":"saveEdit"},on:{click:e.save}},[e._v(" "+e._s(e.$t("forms.save"))+" ")])],1)])],1)},i=[],o=n(47135),a=n(7180),s=n(9217),l=n(24634),u=(n(16280),n(76918),n(28706),n(51629),n(74423),n(62062),n(72712),n(34782),n(59089),n(60739),n(94170),n(18111),n(7588),n(61701),n(18237),n(33110),n(2892),n(5506),n(79432),n(26099),n(21699),n(47764),n(58335),n(23500),n(62953),n(3296),n(27208),n(48408),n(14603),n(47566),n(98721),n(74945)),h=n.n(u),c=n(2404),p=n.n(c),f=n(82601),d=n(19033),m=n(9446),g=n(76364),v=n(44903),y=n.n(v),w={name:"VueCroppie",render:function(e){return e("div",{class:this.customClass,ref:"croppieContainer",id:"croppieContainer"})},props:{boundary:Object,customClass:String,enableExif:Boolean,enableOrientation:{type:Boolean,default:!0},enableResize:{type:Boolean,default:!0},enableZoom:{type:Boolean,default:!0},enforceBoundary:{type:Boolean,default:!0},mouseWheelZoom:{type:[Boolean,String],default:!0},showZoomer:{type:Boolean,default:!0},croppieInitialized:{type:Function,default:function(){}},viewport:{type:Object,default:function(){return{width:200,height:200,type:"square"}}},minZoom:Number,maxZoom:Number},mounted:function(){this.initCroppie()},data:function(){return{croppie:null}},methods:{initCroppie:function(){var e=this,t=this.$refs.croppieContainer,n={enableExif:this.enableExif,enableOrientation:this.enableOrientation,enableZoom:this.enableZoom,enableResize:this.enableResize,enforceBoundary:this.enforceBoundary,mouseWheelZoom:this.mouseWheelZoom,viewport:this.viewport,showZoomer:this.showZoomer,minZoom:this.minZoom,maxZoom:this.maxZoom};this.boundary&&(n.boundary=this.boundary),t.addEventListener("update",function(t){e.$emit("update",t.detail)}),this.croppie=new(y())(t,n),this.croppieInitialized()},bind:function(e){return this.croppie.bind(e)},destroy:function(){this.croppie.destroy()},get:function(e){if(!e)return this.croppie.get();e(this.croppie.get())},rotate:function(e){this.croppie.rotate(e)},setZoom:function(e){this.croppie.setZoom(e)},result:function(e,t){var n=this;return e||(e={type:"base64"}),this.croppie.result(e).then(function(e){return t?t(e):n.$emit("result",e),e})},refresh:function(){this.croppie.destroy(),this.initCroppie()}}},b={install:function(e,t){e.component(w.name,w)}};window&&window.Vue&&Vue.use(b);var _=n(62923);const x={components:{VueCroppie:w},props:{value:{type:Object,required:!0,default:function(){return(0,g.LG)()}},identifier:{type:[String,Number],default:function(){return Date.now()+this._uid}},uploadUrl:{type:String,default:""},settings:{type:Object,required:!0},cropOptions:{type:Object,default:function(){return{}}},scaledSizes:{type:Object,default:null},fileSize:{type:Number,default:1e7},minWidth:{type:Number,default:320},minHeight:{type:Number,default:180},isCircle:{type:Boolean,default:!1},isEditable:{type:Boolean,default:!0},textSize:{type:[Number,String],default:5},noImageColor:{type:String,default:""},editOnChange:{type:Boolean,default:!0},entity:{type:String,required:!0},brandId:{type:String,default:""},enforceBoundary:{type:Boolean,default:!0},noImageSizes:{type:Object,default:function(){return{width:0,height:0}}}},data:function(){return{removed:!1,hasChanged:!1,newImage:null,isDraggedOver:!1,isEditing:!1,isUploading:!1,cropInformation:null,allowedFormats:"image/jpeg, image/png"}},computed:{hasImage:function(){return!this.removed&&(!!this.newImage||!!this.formData.original)},formData:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},getCropOptions:function(){return Object.assign({type:"blob",format:"png",quality:1},this.cropOptions)},isOverlayVisible:function(){return this.hasImage&&!this.isEditing||!this.hasImage},isNoImageColorDark:function(){return(0,_.s)(this.noImageColor)},wrapperComputedStyles:function(){var e=this.settings.boundary.height,t=this.settings.boundary.width;return this.hasImage||(e=this.noImageSizes.height||e,t=this.noImageSizes.width||t),{height:e+"px",width:t+"px"}}},watch:{value:{deep:!0,handler:(0,m.rU)("bind",!1)}},beforeDestroy:function(){this.cancelToken&&this.cancelToken.cancel()},mounted:function(){this.bind()},methods:{_onDrop:function(e){this.isDraggedOver=!1,this._onFileChange(e)},_onFileChange:function(e){var t=e.target.files||e.dataTransfer.files;t.length&&this._processFile(t[0])},_processFile:function(e){var t=this;return(0,l.A)((0,s.A)().m(function n(){var r,i;return(0,s.A)().w(function(n){while(1)switch(n.p=n.n){case 0:return n.p=0,n.n=1,t._validateImage(e);case 1:return t.newImage=e,r=window.URL.createObjectURL(e),t.removed=!1,n.n=2,t.bind({url:r});case 2:return t.$emit("file-changed",{url:r,file:e}),t.editOnChange&&t._triggerEditMode(!0),n.a(2,!0);
1case 3:return n.p=3,i=n.v,t.$notify.error({message:i.message,duration:1e4}),n.a(2,!1)}},n,null,[[0,3]])}))()},feedNewImageUrl:function(e){var t=this;return h()(e).then(function(e){return e.blob()}).then(function(e){return t._processFile(e)})},resetState:function(){this.removed=!1,this.newImage=null,this._triggerEditMode(!1),this.hasChanged=!1,this.isDraggedOver=!1,this.cropInformation=null,this.$refs.file.value=""},reset:function(){this.resetState(),this.bind(),this.$emit("cancel")},_removeImage:function(){this.newImage=null,this.removed=!0,this.formData=(0,g.LG)(),this.$emit("removed"),this.$refs.file.value=""},_croppieUpdated:function(e){var t=this.cropInformation,n=this._normalizeEvent(e);p()(t,n)||(this.cropInformation=n,this._changed(!0),this.$emit("croppie-update",e))},_changed:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.hasChanged=e,this.$emit("changed",e)},_getScaledOptions:function(e){var t=JSON.parse(JSON.stringify(this.getCropOptions));return t.size={width:this.$safeGet(t,"size.width",this.settings.boundary.width)*e,height:this.$safeGet(t,"size.height",this.settings.boundary.height)*e},t},uploadImage:function(e){var t=this;if(this.removed)return this.resetState(),Promise.resolve(!0);var n=this.newImage,r=this.hasChanged;return!n&&!r||this.isUploading?Promise.resolve(!1):(this._triggerEditMode(!1),this.isUploading=!0,this._cropImages().then(function(n){return t._sendForUpload(n,e)}).then(this._handleUploadResponse)["catch"](function(e){if(t.$api.isCancelToken(e))throw e;throw t.$handleError(e,{from:"CroppieWrapper:uploadImage"}),e})["finally"](function(){t.isUploading=!1}))},setIsUploadingStatus:function(e){this.isUploading=e},_cropImages:function(){var e=this,t=this.newImage,n=Promise.resolve(t),r=this.$refs.croppie,i=r.result(this.getCropOptions),o=[i,n];if(this.scaledSizes){var a=Object.keys(this.scaledSizes).map(function(t){var n=e.scaledSizes[t],i=e._getScaledOptions(n);return r.result(i)});o=o.concat(a)}return Promise.all(o)},_sendForUpload:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=this.$api.cancelToken();var n=this.uploadUrl||"/upload/images",r=this._generatePayload(e);return this.$api.post(n,r,(0,a.A)({cancelToken:this.cancelToken.token,params:{brand:this.brandId||this.activeBrandId},headers:{"Upload-Image-Type":this.entity}},t))},_handleUploadResponse:function(e){var t=this;return(0,l.A)((0,s.A)().m(function n(){var r,i,o;return(0,s.A)().w(function(n){while(1)switch(n.n){case 0:if(r=e.data.data,t.$refs.croppie){n.n=1;break}throw new Error("Croppie ref is not available during handling of Upload response");case 1:return i=r.original_url||t.formData.original,o={original:i,cropped:r.cropped_url,cropped_information:t._get()},r.scaled&&(o.scaled=Object.keys(r.scaled).reduce(function(e,n){return e[n]={scale:t.scaledSizes[n],path:r.scaled[n]},e},{})),t.formData=o,t.newImage=null,t._triggerEditMode(!1),n.a(2,!0)}},n)}))()},_generatePayload:function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1],i=e.slice(2),a={};if(r?a["original"]=r:a["_method"]="PATCH",a["cropped"]=n,i.length){var s=Object.keys(this.scaledSizes);i.forEach(function(e,t){a["scaled["+s[t]+"]"]=e})}return this._objectToFormData(a)},_objectToFormData:function(e){var t=new FormData;return Object.entries(e).map(function(e){var n=(0,o.A)(e,2),r=n[0],i=n[1];t.append(r,i)}),t},bind:function(e){var t=this;return(0,l.A)((0,s.A)().m(function n(){return(0,s.A)().w(function(n){while(1)switch(n.n){case 0:if(t.$refs.croppie){n.n=1;break}return n.a(2);case 1:if(e||(e={url:t.value.original||"",zoom:t.value.cropped_information?t.value.cropped_information.zoom:0,points:t.value.cropped_information?t.value.cropped_information.points:["0","0","0","0"]}),e.url=e.url||"",e.url){n.n=2;break}return n.a(2);case 2:return n.n=3,t._refresh();case 3:if(t.$refs.croppie){n.n=4;break}return n.a(2);case 4:return n.a(2,t.$refs.croppie.bind(e).then(function(e){return t._changed(!1),t.cropInformation=null,t._triggerEditMode(!1),e})["catch"](function(e){}))}},n)}))()},_get:function(){try{return this.$refs.croppie.get()}catch(e){return console.log(e,"get"),(0,g.LG)().cropped_information}},_refresh:function(){var e=this;return(0,l.A)((0,s.A)().m(function t(){return(0,s.A)().w(function(t){while(1)switch(t.n){case 0:if(e.$refs.croppie)try{e.$refs.croppie.refresh()}catch(n){console.log(n,"refresh")}return t.a(2,e.$nextTick())}},t)}))()},_validateImage:function(e){var t=this;return new Promise(function(n,r){if(!t.isSupportedFormat(e))return r(new Error(t.$t("errors.uploaded_file_not_supported",{formats:"JPG, PNG"})));if(t.fileSize&&e.size>t.fileSize){t.$emit("file-size-error",e.size);var i=t.fileSize/1e6;return r(new Error(t.$t("errors.file_exceeds_permitted_size",{size:i})))}var o=new Image;
1o.onload=function(){if(o.naturalHeight<t.minHeight||o.naturalWidth<t.minWidth)return r(new Error(t.$t("errors.image_too_small")));n()},o.src=window.URL.createObjectURL(e)})},_onDragover:function(e){var t=e.dataTransfer.items||e.dataTransfer.files||[];!this.hasImage&&this.isSupportedFormat(t[0])&&(this.isDraggedOver=!0)},save:function(){this._triggerEditMode(!1),this.$emit("save")},_normalizeEvent:function(e){return(0,a.A)((0,a.A)({},e),{},{zoom:(0,d.LI)(e.zoom,3)})},_triggerEditMode:function(e){var t=this;return(0,l.A)((0,s.A)().m(function n(){return(0,s.A)().w(function(n){while(1)switch(n.n){case 0:if(!e){n.n=1;break}return n.n=1,(0,f.A6)(250);case 1:t.isEditing=e,t.$emit("edit",e);case 2:return n.a(2)}},n)}))()},isSupportedFormat:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return t&&this.allowedFormats.includes(t)},bulmaSizeToRem:function(e){var t={1:"3rem",2:"2.5rem",3:"2rem",4:"1.5rem",5:"1.25rem",6:"1rem",7:"0.75rem"};return t[Number(e)]||"1rem"}}},C=x;var E=n(81656),S=(0,E.A)(C,r,i,!1,null,null,null);const R=S.exports},27208(e,t,n){"use strict";var r=n(46518),i=n(69565);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},27337(e,t,n){"use strict";var r=n(46518),i=n(79504),o=n(35610),a=RangeError,s=String.fromCharCode,l=String.fromCodePoint,u=i([].join),h=!!l&&1!==l.length;r({target:"String",stat:!0,arity:1,forced:h},{fromCodePoint:function(e){var t,n=[],r=arguments.length,i=0;while(r>i){if(t=+arguments[i++],o(t,1114111)!==t)throw new a(t+" is not a valid code point");n[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(n,"")}})},44903(e,t,n){var r,i;(function(o,a){r=a,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,function(){"function"!==typeof Promise&&function(t){function n(e,t){return function(){e.apply(t,arguments)}}function r(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],u(e,n(o,this),n(a,this))}function i(e){var t=this;return null===this._state?void this._deferreds.push(e):void c(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(o){return void e.reject(o)}e.resolve(r)}else(t._state?e.resolve:e.reject)(t._value)})}function o(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var t=e.then;if("function"===typeof t)return void u(n(t,e),n(o,this),n(a,this))}this._state=!0,this._value=e,s.call(this)}catch(i){a.call(this,i)}}function a(e){this._state=!1,this._value=e,s.call(this)}function s(){for(var e=0,t=this._deferreds.length;t>e;e++)i.call(this,this._deferreds[e]);this._deferreds=null}function l(e,t,n,r){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.resolve=n,this.reject=r}function u(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(o){if(r)return;r=!0,n(o)}}var h=setTimeout,c="function"===typeof setImmediate&&setImmediate||function(e){h(e,1)},p=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};r.prototype["catch"]=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=this;return new r(function(r,o){i.call(n,new l(e,t,r,o))})},r.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&p(arguments[0])?arguments[0]:arguments);return new r(function(t,n){function r(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,function(e){r(o,e)},n)}e[o]=a,0===--i&&t(e)}catch(u){n(u)}}if(0===e.length)return t([]);for(var i=e.length,o=0;o<e.length;o++)r(o,e[o])})},r.resolve=function(e){return e&&"object"===typeof e&&e.constructor===r?e:new r(function(t){t(e)})},r.reject=function(e){return new r(function(t,n){n(e)})},r.race=function(e){return new r(function(t,n){for(var r=0,i=e.length;i>r;r++)e[r].then(t,n)})},r._setImmediateFn=function(e){c=e},e.exports?e.exports=r:t.Promise||(t.Promise=r)}(this),"undefined"!==typeof window&&"function"!==typeof window.CustomEvent&&function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");
1return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),"undefined"===typeof HTMLCanvasElement||HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){for(var r=atob(this.toDataURL(t,n).split(",")[1]),i=r.length,o=new Uint8Array(i),a=0;a<i;a++)o[a]=r.charCodeAt(a);e(new Blob([o],{type:t||"image/png"}))}});var t,n,r,i=["Webkit","Moz","ms"],o="undefined"!==typeof document?document.createElement("div").style:{},a=[1,8,3,6],s=[2,7,4,5];function l(e){if(e in o)return e;var t=e[0].toUpperCase()+e.slice(1),n=i.length;while(n--)if(e=i[n]+t,e in o)return e}function u(e,t){var n=a.indexOf(e)>-1?a:s,r=n.indexOf(e),i=t/90%n.length;return n[(n.length+r+i%n.length)%n.length]}function h(e,t){for(var n in e=e||{},t)t[n]&&t[n].constructor&&t[n].constructor===Object?(e[n]=e[n]||{},h(e[n],t[n])):e[n]=t[n];return e}function c(e){return h({},e)}function p(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}}function f(e){if("createEvent"in document){var t=document.createEvent("HTMLEvents");t.initEvent("change",!1,!0),e.dispatchEvent(t)}else e.fireEvent("onchange")}function d(e,t,n){if("string"===typeof t){var r=t;t={},t[r]=n}for(var i in t)e.style[i]=t[i]}function m(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function g(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(t,"")}function v(e,t){for(var n in t)e.setAttribute(n,t[n])}function y(e){return parseInt(e,10)}function w(e,t){if(!e)throw"Source image missing";var n=new Image;return n.style.opacity="0",new Promise(function(r,i){function o(){n.style.opacity="1",setTimeout(function(){r(n)},1)}n.removeAttribute("crossOrigin"),e.match(/^https?:\/\/|^\/\//)&&n.setAttribute("crossOrigin","anonymous"),n.onload=function(){t?EXIF.getData(n,function(){o()}):o()},n.onerror=function(e){n.style.opacity=1,setTimeout(function(){i(e)},1)},n.src=e})}function b(e,t){var n=e.naturalWidth,r=e.naturalHeight,i=t||E(e);if(i&&i>=5){var o=n;n=r,r=o}return{width:n,height:r}}n=l("transform"),t=l("transformOrigin"),r=l("userSelect");var _={translate3d:{suffix:", 0px"},translate:{suffix:""}},x=function(e,t,n){this.x=parseFloat(e),this.y=parseFloat(t),this.scale=parseFloat(n)};x.parse=function(e){return e.style?x.parse(e.style[n]):e.indexOf("matrix")>-1||e.indexOf("none")>-1?x.fromMatrix(e):x.fromString(e)},x.fromMatrix=function(e){var t=e.substring(7).split(",");return t.length&&"none"!==e||(t=[1,0,0,1,0,0]),new x(y(t[4]),y(t[5]),parseFloat(t[0]))},x.fromString=function(e){var t=e.split(") "),n=t[0].substring(oe.globals.translate.length+1).split(","),r=t.length>1?t[1].substring(6):1,i=n.length>1?n[0]:0,o=n.length>1?n[1]:0;return new x(i,o,r)},x.prototype.toString=function(){var e=_[oe.globals.translate].suffix||"";return oe.globals.translate+"("+this.x+"px, "+this.y+"px"+e+") scale("+this.scale+")"};var C=function(e){if(!e||!e.style[t])return this.x=0,void(this.y=0);var n=e.style[t].split(" ");this.x=parseFloat(n[0]),this.y=parseFloat(n[1])};function E(e){return e.exifdata&&e.exifdata.Orientation?y(e.exifdata.Orientation):1}function S(e,t,n){var r=t.width,i=t.height,o=e.getContext("2d");switch(e.width=t.width,e.height=t.height,o.save(),n){case 2:o.translate(r,0),o.scale(-1,1);break;case 3:o.translate(r,i),o.rotate(180*Math.PI/180);break;case 4:o.translate(0,i),o.scale(1,-1);break;case 5:e.width=i,e.height=r,o.rotate(90*Math.PI/180),o.scale(1,-1);break;case 6:e.width=i,e.height=r,o.rotate(90*Math.PI/180),o.translate(0,-i);break;case 7:e.width=i,e.height=r,o.rotate(-90*Math.PI/180),o.translate(-r,i),o.scale(1,-1);break;case 8:e.width=i,e.height=r,o.translate(0,r),o.rotate(-90*Math.PI/180);break}o.drawImage(t,0,0,r,i),o.restore()}function R(){var e,t,n,r,i,o,a=this,s="croppie-container",l=a.options.viewport.type?"cr-vp-"+a.options.viewport.type:null;a.options.useCanvas=a.options.enableOrientation||k.call(a),a.data={},a.elements={},e=a.elements.boundary=document.createElement("div"),n=a.elements.viewport=document.createElement("div"),t=a.elements.img=
1document.createElement("img"),r=a.elements.overlay=document.createElement("div"),a.options.useCanvas?(a.elements.canvas=document.createElement("canvas"),a.elements.preview=a.elements.canvas):a.elements.preview=t,m(e,"cr-boundary"),e.setAttribute("aria-dropeffect","none"),i=a.options.boundary.width,o=a.options.boundary.height,d(e,{width:i+(isNaN(i)?"":"px"),height:o+(isNaN(o)?"":"px")}),m(n,"cr-viewport"),l&&m(n,l),d(n,{width:a.options.viewport.width+"px",height:a.options.viewport.height+"px"}),n.setAttribute("tabindex",0),m(a.elements.preview,"cr-image"),v(a.elements.preview,{alt:"preview","aria-grabbed":"false"}),m(r,"cr-overlay"),a.element.appendChild(e),e.appendChild(a.elements.preview),e.appendChild(n),e.appendChild(r),m(a.element,s),a.options.customClass&&m(a.element,a.options.customClass),L.call(this),a.options.enableZoom&&B.call(a),a.options.enableResize&&A.call(a)}function k(){return this.options.enableExif&&window.EXIF}function A(){var e,t,n,i,o,a,s,l=this,u=document.createElement("div"),h=!1,c=50;function p(a){if
1((void 0===a.button||0===a.button)&&(a.preventDefault(),!h)){var s=l.elements.overlay.getBoundingClientRect();if(h=!0,t=a.pageX,n=a.pageY,e=-1!==a.currentTarget.className.indexOf("vertical")?"v":"h",i=s.width,o=s.height,a.touches){var u=a.touches[0];t=u.pageX,n=u.pageY}window.addEventListener("mousemove",f),window.addEventListener("touchmove",f),window.addEventListener("mouseup",g),window.addEventListener("touchend",g),document.body.style[r]="none"}}function f(r){var a=r.pageX,s=r.pageY;if(r.preventDefault(),r.touches){var h=r.touches[0];a=h.pageX,s=h.pageY}var p=a-t,f=s-n,m=l.options.viewport.height+f,g=l.options.viewport.width+p;"v"===e&&m>=c&&m<=o?(d(u,{height:m+"px"}),l.options.boundary.height+=f,d(l.elements.boundary,{height:l.options.boundary.height+"px"}),l.options.viewport.height+=f,d(l.elements.viewport,{height:l.options.viewport.height+"px"})):"h"===e&&g>=c&&g<=i&&(d(u,{width:g+"px"}),l.options.boundary.width+=p,d(l.elements.boundary,{width:l.options.boundary.width+"px"}),l.options.viewport.width+=p,d(l.elements.viewport,{width:l.options.viewport.width+"px"})),z.call(l),F.call(l),U.call(l),j.call(l),n=s,t=a}function g(){h=!1,window.removeEventListener("mousemove",f),window.removeEventListener("touchmove",f),window.removeEventListener("mouseup",g),window.removeEventListener("touchend",g),document.body.style[r]=""}m(u,"cr-resizer"),d(u,{width:this.options.viewport.width+"px",height:this.options.viewport.height+"px"}),this.options.resizeControls.height&&(a=document.createElement("div"),m(a,"cr-resizer-vertical"),u.appendChild(a)),this.options.resizeControls.width&&(s=document.createElement("div"),m(s,"cr-resizer-horisontal"),u.appendChild(s)),a&&(a.addEventListener("mousedown",p),a.addEventListener("touchstart",p)),s&&(s.addEventListener("mousedown",p),s.addEventListener("touchstart",p)),this.elements.boundary.appendChild(u)}function I(e){if(this.options.enableZoom){var t=this.elements.zoomer,n=V(e,4);t.value=Math.max(parseFloat(t.min),Math.min(parseFloat(t.max),n)).toString()}}function B(){var e=this,t=e.elements.zoomerWrap=document.createElement("div"),n=e.elements.zoomer=document.createElement("input");function r(){P.call(e,{value:parseFloat(n.value),origin:new C(e.elements.preview),viewportRect:e.elements.viewport.getBoundingClientRect(),transform:x.parse(e.elements.preview)})}function i(t){var n,i;if("ctrl"===e.options.mouseWheelZoom&&!0!==t.ctrlKey)return 0;n=t.wheelDelta?t.wheelDelta/1200:t.deltaY?t.deltaY/1060:t.detail?t.detail/-60:0,i=e._currentZoom+n*e._currentZoom,t.preventDefault(),I.call(e,i),r.call(e)}m(t,"cr-slider-wrap"),m(n,"cr-slider"),n.type="range",n.step="0.0001",n.value="1",n.style.display=e.options.showZoomer?"":"none",n.setAttribute("aria-label","zoom"),e.element.appendChild(t),t.appendChild(n),e._currentZoom=1,e.elements.zoomer.addEventListener("input",r),e.elements.zoomer.addEventListener("change",r),e.options.mouseWheelZoom&&(e.elements.boundary.addEventListener("mousewheel",i),e.elements.boundary.addEventListener("DOMMouseScroll",i))}function P(e){var r=this,i=e?e.transform:x.parse(r.elements.preview),o=e?e.viewportRect:r.elements.viewport.getBoundingClientRect(),a=e?e.origin:new C(r.elements.preview);function s(){var e={};e[n]=i.toString(),e[t]=a.toString(),d(r.elements.preview,e)}if(r._currentZoom=e?e.value:r._currentZoom,i.scale=r._currentZoom,r.elements.zoomer.setAttribute("aria-valuenow",r._currentZoom),s(),r.options.enforceBoundary){var l=O.call(r,o),u=l.translate,h=l.origin;i.x>=u.maxX&&(a.x=h.minX,i.x=u.maxX),i.x<=u.minX&&(a.x=h.maxX,i.x=u.minX),i.y>=u.maxY&&(a.y=h.minY,i.y=u.maxY),i.y<=u.minY&&(a.y=h.maxY,i.y=u.minY)}s(),T.call(r),j.call(r)}function O(e){var t=this,n=t._currentZoom,r=e.width,i=e.height,o=t.elements.boundary.clientWidth/2,a=t.elements.boundary.clientHeight/2,s=t.elements.preview.getBoundingClientRect(),l=s.width,u=s.height,h=r/2,c=i/2,p=-1*(h/n-o),f=p-(l*(1/n)-r*(1/n)),d=-1*(c/n-a),m=d-(u*(1/n)-i*(1/n)),g=1/n*h,v=l*(1/n)-g,y=1/n*c,w=u*(1/n)-y;return{translate:{maxX:p,minX:f,maxY:d,minY:m},origin:{maxX:v,minX:g,maxY:w,minY:y}}}function U(e){var r=this,i=r._currentZoom,o=r.elements.preview.getBoundingClientRect(),a=r.elements.viewport.getBoundingClientRect(),s=x.parse(r.elements.preview.style[n]),l=new C(r.elements.preview),u=a.top-o.top+a.height/2,h=a.left-o.left+a.width/2,c={},p={};if(e){var f=l.x,m=l.y,g=s.x,v=s.y;c.y=f,c.x=m,s.y=g,s.x=v}else c.y=u/i,c.x=h/i,p.y=(c.y-l.y)*(1-i),p.x=(c.x-l.x)*(1-i),s.x-=p.x,s.y-=p.y;var y={};y[t]=c.x+"px "+c.y+"px",y[n]=s.toString(),d(r.elements.preview,y)}function L(){var e,t,i,o,a,s=this,l=!1;function u(e,t){var n=s.elements.preview.getBoundingClientRect(),r=a.y+t,i=a.x+e;s.options.enforceBoundary?(o.top>n.top+t&&o.bottom<n.bottom+t&&(a.y=r),o.left>
1n.left+e&&o.right<n.right+e&&(a.x=i)):(a.y=r,a.x=i)}function h(e){s.elements.preview.setAttribute("aria-grabbed",e),s.elements.boundary.setAttribute("aria-dropeffect",e?"move":"none")}function c(e){var t,n=37,i=38,l=39,u=40;if(!e.shiftKey||e.keyCode!==i&&e.keyCode!==u){if(s.options.enableKeyMovement&&e.keyCode>=37&&e.keyCode<=40){e.preventDefault();var h=c(e.keyCode);a=x.parse(s.elements.preview),document.body.style[r]="none",o=s.elements.viewport.getBoundingClientRect(),p(h)}}else t=e.keyCode===i?parseFloat(s.elements.zoomer.value)+parseFloat(s.elements.zoomer.step):parseFloat(s.elements.zoomer.value)-parseFloat(s.elements.zoomer.step),s.setZoom(t);function c(e){switch(e){case n:return[1,0];case i:return[0,1];case l:return[-1,0];case u:return[0,-1]}}}function p(e){var t=e[0],o=e[1],l={};u(t,o),l[n]=a.toString(),d(s.elements.preview,l),z.call(s),document.body.style[r]="",U.call(s),j.call(s),i=0}function m(n){if((void 0===n.button||0===n.button)&&(n.preventDefault(),!l)){if(l=!0,e=n.pageX,t=n.pageY,n.touches){var i=n.touches[0];e=i.pageX,t=i.pageY}h(l),a=x.parse(s.elements.preview),window.addEventListener("mousemove",g),window.addEventListener("touchmove",g),window.addEventListener("mouseup",v),window.addEventListener("touchend",v),document.body.style[r]="none",o=s.elements.viewport.getBoundingClientRect()}}function g(r){r.preventDefault();var o=r.pageX,l=r.pageY;if(r.touches){var h=r.touches[0];o=h.pageX,l=h.pageY}var c=o-e,p=l-t,m={};if("touchmove"===r.type&&r.touches.length>1){var g=r.touches[0],v=r.touches[1],y=Math.sqrt((g.pageX-v.pageX)*(g.pageX-v.pageX)+(g.pageY-v.pageY)*(g.pageY-v.pageY));i||(i=y/s._currentZoom);var w=y/i;return I.call(s,w),void f(s.elements.zoomer)}u(c,p),m[n]=a.toString(),d(s.elements.preview,m),z.call(s),t=l,e=o}function v(){l=!1,h(l),window.removeEventListener("mousemove",g),window.removeEventListener("touchmove",g),window.removeEventListener("mouseup",v),window.removeEventListener("touchend",v),document.body.style[r]="",U.call(s),j.call(s),i=0}s.elements.overlay.addEventListener("mousedown",m),s.elements.viewport.addEventListener("keydown",c),s.elements.overlay.addEventListener("touchstart",m)}function z(){if(this.elements){var e=this,t=e.elements.boundary.getBoundingClientRect(),n=e.elements.preview.getBoundingClientRect();d(e.elements.overlay,{width:n.width+"px",height:n.height+"px",top:n.top-t.top+"px",left:n.left-t.left+"px"})}}C.prototype.toString=function(){return this.x+"px "+this.y+"px"};var T=p(z,500);function j(){var e,t=this,n=t.get();D.call(t)&&(t.options.update.call(t,n),t.$&&"undefined"===typeof Prototype?t.$(t.element).trigger("update.croppie",n):(window.CustomEvent?e=new CustomEvent("update",{detail:n}):(e=document.createEvent("CustomEvent"),e.initCustomEvent("update",!0,!0,n)),t.element.dispatchEvent(e)))}function D(){return this.elements.preview.offsetHeight>0&&this.elements.preview.offsetWidth>0}function H(){var e,r=this,i=1,o={},a=r.elements.preview,s=new x(0,0,i),l=new C,u=D.call(r);u&&!r.data.bound&&(r.data.bound=!0,o[n]=s.toString(),o[t]=l.toString(),o["opacity"]=1,d(a,o),e=r.elements.preview.getBoundingClientRect(),r._originalImageWidth=e.width,r._originalImageHeight=e.height,r.data.orientation=k.call(r)?E(r.elements.img):r.data.orientation,r.options.enableZoom?F.call(r,!0):r._currentZoom=i,s.scale=r._currentZoom,o[n]=s.toString(),d(a,o),r.data.points.length?M.call(r,r.data.points):q.call(r),U.call(r),z.call(r))}function F(e){var t,n,r,i,o=this,a=Math.max(o.options.minZoom,0)||0,s=o.options.maxZoom||1.5,l=o.elements.zoomer,u=parseFloat(l.value),h=o.elements.boundary.getBoundingClientRect(),c=b(o.elements.img,o.data.orientation),p=o.elements.viewport.getBoundingClientRect();o.options.enforceBoundary&&(r=p.width/c.width,i=p.height/c.height,a=Math.max(r,i)),a>=s&&(s=a+1),l.min=V(a,4),l.max=V(s,4),!e&&(u<l.min||u>l.max)?I.call(o,u<l.min?l.min:l.max):e&&(n=Math.max(h.width/c.width,h.height/c.height),t=null!==o.data.boundZoom?o.data.boundZoom:n,I.call(o,t)),f(l)}function M(e){if(4!==e.length)throw"Croppie - Invalid number of points supplied: "+e;var r=this,i=e[2]-e[0],o=r.elements.viewport.getBoundingClientRect(),a=r.elements.boundary.getBoundingClientRect(),s={left:o.left-a.left,top:o.top-a.top},l=o.width/i,u=e[1],h=e[0],c=-1*e[1]+s.top,p=-1*e[0]+s.left,f={};f[t]=h+"px "+u+"px",f[n]=new x(p,c,l).toString(),d(r.elements.preview,f),I.call(r,l),r._currentZoom=l}function q(){var e=this,t=e.elements.preview.getBoundingClientRect(),r=e.elements.viewport.getBoundingClientRect(),i=e.elements.boundary.getBoundingClientRect(),o=r.left-i.left,a=r.top-i.top,s=o-(t.width-r.width)/2,l=a-(t.height-r.height)/2,u=new x(s,l,e._currentZoom);d(e.elements.preview,n,u.toString())}function Z(e){var t=this,n=t.elements.canvas,r=t.elements.img,i=n.getContext("2d");i.clearRect(0,0,n.width,n.height),n.width=r.width,n.height=r.height;var o=t.options.enableOrientation&&e||E(r);S(n,r,o)}function $(e){var t=this,n=e.points,r=y(n[0]),i=y(n[1]),o=y(n[2]),a=y(n[3]),s=o-r,l=a-i,u=e.circle,h=document.createElement("canvas"),c=h.getContext("2d"),p=e.outputWidth||s,f=e.outputHeight||l;h.width=p,h.height=f,e.backgroundColor&&(c.fillStyle=e.backgroundColor,c.fillRect(0,0,p,f));var d=r,m=i,g=s,v=l,w=0,b=0,_=p,x=f;return r<0&&(d=0,w=Math.abs(r)/s*p),g+d>t._originalImageWidth&&(g=t._originalImageWidth-d,_=g/s*p),i<0&&(m=0,b=Math.abs(i)/l*f),v+m>t._originalImageHeight&&(v=t._originalImageHeight-m,x=v/l*f),c.drawImage(this.elements.preview,d,m,g,v,w,b,_,x),u&&(c.fillStyle="#fff",c.globalCompositeOperation="destination-in",c.beginPath(),c.arc(h.width/2,h.height/2,h.width/2,0,2*Math.PI,!0),c.closePath(),c.fill()),h}function N(e){var t=e.points,n=document.createElement("div"),r=document.createElement("img"),i=t[2]-t[0],o=t[3]-t[1];return m(n,"croppie-result"),n.appendChild(r),d(r,{left:-1*t[0]+"px",top:-1*t[1]+"px"}),r.src=e.url,d(n,{width:i+"px",height:o+"px"}),n}function W(e){return $.call(this,e).toDataURL(e.format,e.quality)}function X(e){var t=this;return new Promise(function(n){$.call(t,e).toBlob(function(e){n(e)},e.format,e.quality)})}function Y(e){this.elements.img.parentNode&&(Array.prototype.forEach.call(this.elements.img.classList,function(t){e.classList.add(t)}),this.elements.img.parentNode.replaceChild(e,this.elements.img),this.elements.preview=e),this.elements.img=e}function G(e,t){var n,r=this,i=[],o=null,a=k.call(r);if("string"===typeof e)n=e,e={};else if(Array.isArray(e))i=e.slice();else{if("undefined"===typeof e&&r.data.url)return H.call(r),j.call(r),null;n=e.url,i=e.points||[],o="undefined"===typeof e.zoom?null:e.zoom}return r.data.bound=!1,r.data.url=n||r.data.url,r.data.boundZoom=o,w(n,a).then(function(n){if(Y.call(r,n),i.length)r.o
1ptions.relative&&(i=[i[0]*n.naturalWidth/100,i[1]*n.naturalHeight/100,i[2]*n.naturalWidth/100,i[3]*n.naturalHeight/100]);else{var o,a,s=b(n),l=r.elements.viewport.getBoundingClientRect(),u=l.width/l.height,h=s.width/s.height;h>u?(a=s.height,o=a*u):(o=s.width,a=s.height/u);var c=(s.width-o)/2,p=(s.height-a)/2,f=c+o,d=p+a;r.data.points=[c,p,f,d]}r.data.orientation=e.orientation||1,r.data.points=i.map(function(e){return parseFloat(e)}),r.options.useCanvas&&Z.call(r,r.data.orientation),H.call(r),j.call(r),t&&t()})}function V(e,t){return parseFloat(e).toFixed(t||0)}function J(){var e=this,t=e.elements.preview.getBoundingClientRect(),n=e.elements.viewport.getBoundingClientRect(),r=n.left-t.left,i=n.top-t.top,o=(n.width-e.elements.viewport.offsetWidth)/2,a=(n.height-e.elements.viewport.offsetHeight)/2,s=r+e.elements.viewport.offsetWidth+o,l=i+e.elements.viewport.offsetHeight+a,u=e._currentZoom;(u===1/0||isNaN(u))&&(u=1);var h=e.options.enforceBoundary?0:Number.NEGATIVE_INFINITY;return r=Math.max(h,r/u),i=Math.max(h,i/u),s=Math.max(h,s/u),l=Math.max(h,l/u),{points:[V(r),V(i),V(s),V(l)],zoom:u,orientation:e.data.orientation}}var Q={type:"canvas",format:"png",quality:1},K=["jpeg","webp","png"];function ee(e){var t,n=this,r=J.call(n),i=h(c(Q),c(e)),o="string"===typeof e?e:i.type||"base64",a=i.size||"viewport",s=i.format,l=i.quality,u=i.backgroundColor,p="boolean"===typeof i.circle?i.circle:"circle"===n.options.viewport.type,f=n.elements.viewport.getBoundingClientRect(),d=f.width/f.height;return"viewport"===a?(r.outputWidth=f.width,r.outputHeight=f.height):"object"===typeof a&&(a.width&&a.height?(r.outputWidth=a.width,r.outputHeight=a.height):a.width?(r.outputWidth=a.width,r.outputHeight=a.width/d):a.height&&(r.outputWidth=a.height*d,r.outputHeight=a.height)),K.indexOf(s)>-1&&(r.format="image/"+s,r.quality=l),r.circle=p,r.url=n.data.url,r.backgroundColor=u,t=new Promise(function(e){switch(o.toLowerCase()){case"rawcanvas":e($.call(n,r));break;case"canvas":case"base64":e(W.call(n,r));break;case"blob":X.call(n,r).then(e);break;default:e(N.call(n,r));break}}),t}function te(){H.call(this)}function ne(e){if(!this.options.useCanvas||!this.options.enableOrientation)throw"Croppie: Cannot rotate without enableOrientation && EXIF.js included";var t=this,n=t.elements.canvas;if(t.data.orientation=u(t.data.orientation,e),S(n,t.elements.img,t.data.orientation),U.call(t,!0),F.call(t),Math.abs(e)/90%2===1){var r=t._originalImageHeight,i=t._originalImageWidth;t._originalImageWidth=r,t._originalImageHeight=i}}function re(){var e=this;e.element.removeChild(e.elements.boundary),g(e.element,"croppie-container"),e.options.enableZoom&&e.element.removeChild(e.elements.zoomerWrap),delete e.elements}if("undefined"!==typeof window&&window.jQuery){var ie=window.jQuery;ie.fn.croppie=function(e){var t=typeof e;if("string"===t){var n=Array.prototype.slice.call(arguments,1),r=ie(this).data("croppie");return"get"===e?r.get():"result"===e?r.result.apply(r,n):"bind"===e?r.bind.apply(r,n):this.each(function(){var t=ie(this).data("croppie");if(t){var r=t[e];if(!ie.isFunction(r))throw"Croppie "+e+" method not found";r.apply(t,n),"destroy"===e&&ie(this).removeData("croppie")}})}return this.each(function(){var t=new oe(this,e);t.$=ie,ie(this).data("croppie",t)})}}function oe(e,t){if(e.className.indexOf("croppie-container")>-1)throw new Error("Croppie: Can't initialize croppie more than once");if(this.element=e,this.options=h(c(oe.defaults),t),"img"===this.element.tagName.toLowerCase()){var n=this.element;m(n,"cr-original-image"),v(n,{"aria-hidden":"true",alt:""});var r=document.createElement("div");this.element.parentNode.appendChild(r),r.appendChild(n),this.element=r,this.options.url=this.options.url||n.src}if(R.call(this),this.options.url){var i={url:this.options.url,points:this.options.points};delete this.options["url"],delete this.options["points"],G.call(this,i)}}return oe.defaults={viewport:{width:100,height:100,type:"square"},boundary:{},orientationControls:{enabled:!0,leftClass:"",rightClass:""},resizeControls:{width:!0,height:!0},customClass:"",showZoomer:!0,enableZoom:!0,enableResize:!1,mouseWheelZoom:!0,enableExif:!1,enforceBoundary:!0,enableOrientation:!1,enableKeyMovement:!0,update:function(){}},oe.globals={translate:"translate3d"},h(oe.prototype,{bind:function(e,t){return G.call(this,e,t)},get:function(){var e=J.call(this),t=e.points;return this.options.relative&&(t[0]/=this.elements.img.naturalWi
1dth/100,t[1]/=this.elements.img.naturalHeight/100,t[2]/=this.elements.img.naturalWidth/100,t[3]/=this.elements.img.naturalHeight/100),e},result:function(e){return ee.call(this,e)},refresh:function(){return te.call(this)},setZoom:function(e){I.call(this,e),f(this.elements.zoomer)},rotate:function(e){ne.call(this,e)},destroy:function(){return re.call(this)}}),oe})},45806(e,t,n){"use strict";n(47764);var r,i=n(46518),o=n(43724),a=n(67416),s=n(44576),l=n(76080),u=n(79504),h=n(36840),c=n(62106),p=n(90679),f=n(39297),d=n(44213),m=n(97916),g=n(67680),v=n(68183).codeAt,y=n(3717),w=n(655),b=n(10687),_=n(22812),x=n(98406),C=n(91181),E=C.set,S=C.getterFor("URL"),R=x.URLSearchParams,k=x.getState,A=s.URL,I=s.TypeError,B=s.parseInt,P=Math.floor,O=Math.pow,U=u("".charAt),L=u(/./.exec),z=u([].join),T=u(1.1.toString),j=u([].pop),D=u([].push),H=u("".replace),F=u([].shift),M=u("".split),q=u("".slice),Z=u("".toLowerCase),$=u([].unshift),N="Invalid authority",W="Invalid scheme",X="Invalid host",Y="Invalid port",G=/[a-z]/i,V=/[\d+-.a-z]/i,J=/\d/,Q=/^0x/i,K=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,se=function(e){var t,n,r,i,o,a,s,l=M(e,".");if(l.length&&""===l[l.length-1]&&l.length--,t=l.length,t>4)return e;for(n=[],r=0;r<t;r++){if(i=l[r],""===i)return e;if(o=10,i.length>1&&"0"===U(i,0)&&(o=L(Q,i)?16:8,i=q(i,8===o?1:2)),""===i)a=0;else{if(!L(10===o?ee:8===o?K:te,i))return e;a=B(i,o)}D(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=O(256,5-t))return null}else if(a>255)return null;for(s=j(n),r=0;r<n.length;r++)s+=n[r]*O(256,3-r);return s},le=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,h=null,c=0,p=function(){return U(e,c)};if(":"===p()){if(":"!==U(e,1))return;c+=2,u++,h=u}while(p()){if(8===u)return;if(":"!==p()){t=n=0;while(n<4&&L(te,p()))t=16*t+B(p(),16),c++,n++;if("."===p()){if(0===n)return;if(c-=n,u>6)return;r=0;while(p()){if(i=null,r>0){if(!("."===p()&&r<4))return;c++}if(!L(J,p()))return;while(L(J,p())){if(o=B(p(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;c++}l[u]=256*l[u]+i,r++,2!==r&&4!==r||u++}if(4!==r)return;break}if(":"===p()){if(c++,!p())return}else if(p())return;l[u++]=t}else{if(null!==h)return;c++,u++,h=u}}if(null!==h){a=u-h,u=7;while(0!==u&&a>0)s=l[u],l[u--]=l[h+a-1],l[h+--a]=s}else if(8!==u)return;return l},ue=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:t},he=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)$(t,e%256),e=P(e/256);return z(t,".")}if("object"==typeof e){for(t="",r=ue(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=T(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ce={},pe=d({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=d({},pe,{"#":1,"?":1,"{":1,"}":1}),de=d({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var n=v(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},ge={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var n;return 2===e.length&&L(G,U(e,0))&&(":"===(n=U(e,1))||!t&&"|"===n)},ye=function(e){var t;return e.length>1&&ve(q(e,0,2))&&(2===e.length||"/"===(t=U(e,2))||"\\"===t||"?"===t||"#"===t)},we=function(e){return"."===e||"%2e"===Z(e)},be=function(e){return e=Z(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},_e={},xe={},Ce={},Ee={},Se={},Re={},ke={},Ae={},Ie={},Be={},Pe={},Oe={},Ue={},Le={},ze={},Te={},je={},De={},He={},Fe={},Me={},qe=function(e,t,n){var r,i,o,a=w(e);if(t){if(i=this.parse(a),i)throw new I(i);this.searchParams=null}else{if(void 0!==n&&(r=new qe(n,!0)),i=this.parse(a,null,r),i)throw new I(i);o=k(new R),o.bindURL(this),this.searchParams=o}};qe.prototype={type:"URL",parse:function(e,t,n){var i,o,a,s,l=this,u=t||_e,h=0,c="",p=!1,d=!1,v=!1;e=w(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=H(e,ie,""),e=H(e,oe,"$1")),e=H(e,ae,""),i=m(e);while(h<=i.length){switch(o=i[h],u){case _e:if(!o||!L(G,o)){if(t)return W;u=Ce;continue}c+=Z(o),u=xe;break;case xe:if(o&&(L(V,o)||"+"===o||"-"===o||"."===o))c+=Z(o);else{if(":"!==o){if(t)return W;c="",u=Ce,h=0;continue}if(t&&(l.isSpecial()!==f(ge,c)||"file"===c&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=c,t)return void(l.isSpecial()&&ge[l.scheme]===l.port&&(l.port=null));c="","file"===l.scheme?u=Le:l.isSpecial()&&n&&n.scheme===l.scheme?u=Ee:l.isSpecial()?u=Ae:"/"===i[h+1]?(u=Se,h++):(l.cannotBeABaseURL=!0,D(l.path,""),u=He)}break;case Ce:if(!n||n.cannotBeABaseURL&&"#"!==o)return W;if(n.cannotBeABaseURL&&"#"===o){l.scheme=n.scheme,l.path=g(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=Me;break}u="file"===n.scheme?Le:Re;continue;case Ee:if("/"!==o||"/"!==i[h+1]){u=Re;continue}u=Ie,h++;break;case Se:if("/"===o){u=Be;break}u=De;continue;case Re:if(l.scheme=n.scheme,o===r)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=g(n.path),l.query=n.query;else if("/"===o||"\\"===o&&l.isSpecial())u=ke;else if("?"===o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=g(n.path),l.query="",u=Fe;else{if("#"!==o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=g(n.path),l.path.length--,u=De;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=g(n.path),l.query=n.query,l.fragment="",u=Me}break;case ke:if(!l.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=De;continue}u=Be}else u=Ie;break;case Ae:if(u=Ie,"/"!==o||"/"!==U(c,h+1))continue;h++;break;case Ie:if("/"!==o&&"\\"!==o){u=Be;continue}break;case Be:if("@"===o){p&&(c="%40"+c),p=!0,a=m(c);for(var y=0;y<a.length;y++){var b=a[y];if(":"!==b||v){var _=me(b,de);v?l.password+=_:l.username+=_}else v=!0}c=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(p&&""===c)return N;h-=m(c).length+1,c="",u=Pe}else c+=o;break;case Pe:case Oe:if(t&&"file"===l.scheme){u=Te;continue}if(":"!==o||d){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(l.isSpecial()&&""===c)return X;if(t&&""===c&&(l.includesCredentials()||null!==l.port))return;if(s=l.parseHost(c),s)return s;if(c="",u=je,t)return;continue}"["===o?d=!0:"]"===o&&(d=!1),c+=o}else{if(""===c)return X;if(s=l.parseHost(c),s)return s;if(c="",u=Ue,t===Oe)return}break;case Ue:if(!L(J,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()||t){if(""!==c){var x=B(c,10);if(x>65535)return Y;l.port=l.isSpecial()&&x===ge[l.scheme]?null:x,c=""}if(t)return;u=je;continue}return Y}c+=o;break;case Le:if(l.scheme="file","/"===o||"\\"===o)u=ze;else{if(!n||"file"!==n.scheme){u=De;
vendor: 6,529 bytes, line 1
1continue}switch(o){case r:l.host=n.host,l.path=g(n.path),l.query=n.query;break;case"?":l.host=n.host,l.path=g(n.path),l.query="",u=Fe;break;case"#":l.host=n.host,l.path=g(n.path),l.query=n.query,l.fragment="",u=Me;break;default:ye(z(g(i,h),""))||(l.host=n.host,l.path=g(n.path),l.shortenPath()),u=De;continue}}break;case ze:if("/"===o||"\\"===o){u=Te;break}n&&"file"===n.scheme&&!ye(z(g(i,h),""))&&(ve(n.path[0],!0)?D(l.path,n.path[0]):l.host=n.host),u=De;continue;case Te:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&ve(c))u=De;else if(""===c){if(l.host="",t)return;u=je}else{if(s=l.parseHost(c),s)return s;if("localhost"===l.host&&(l.host=""),t)return;c="",u=je}continue}c+=o;break;case je:if(l.isSpecial()){if(u=De,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(u=De,"/"!==o))continue}else l.fragment="",u=Me;else l.query="",u=Fe;break;case De:if(o===r||"/"===o||"\\"===o&&l.isSpecial()||!t&&("?"===o||"#"===o)){if(be(c)?(l.shortenPath(),"/"===o||"\\"===o&&l.isSpecial()||D(l.path,"")):we(c)?"/"===o||"\\"===o&&l.isSpecial()||D(l.path,""):("file"===l.scheme&&!l.path.length&&ve(c)&&(l.host&&(l.host=""),c=U(c,0)+":"),D(l.path,c)),c="","file"===l.scheme&&(o===r||"?"===o||"#"===o))while(l.path.length>1&&""===l.path[0])F(l.path);"?"===o?(l.query="",u=Fe):"#"===o&&(l.fragment="",u=Me)}else c+=me(o,fe);break;case He:"?"===o?(l.query="",u=Fe):"#"===o?(l.fragment="",u=Me):o!==r&&(l.path[0]+=me(o,ce));break;case Fe:t||"#"!==o?o!==r&&("'"===o&&l.isSpecial()?l.query+="%27":l.query+="#"===o?"%23":me(o,ce)):(l.fragment="",u=Me);break;case Me:o!==r&&(l.fragment+=me(o,pe));break}h++}},parseHost:function(e){var t,n,r;if("["===U(e,0)){if("]"!==U(e,e.length-1))return X;if(t=le(q(e,1,-1)),!t)return X;this.host=t}else if(this.isSpecial()){if(e=y(e),L(ne,e))return X;if(t=se(e),null===t)return X;this.host=t}else{if(L(re,e))return X;for(t="",n=m(e),r=0;r<n.length;r++)t+=me(n[r],ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return f(ge,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ve(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=he(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+z(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw new I(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Ze(e.path[0]).origin}catch(n){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+he(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(w(e)+":",_e)},getUsername:function(){return this.username},setUsername:function(e){var t=m(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=me(t[n],de)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=me(t[n],de)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?he(e):he(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Pe)},getHostname:function(){var e=this.host;return null===e?"":he(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getPort:function(){var e=this.port;return null===e?"":w(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=w(e),""===e?this.port=null:this.parse(e,Ue))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+z(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,je))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=w(e),""===e?this.query=null:("?"===U(e,0)&&(e=q(e,1)),this.query="",this.parse(e,Fe)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=w(e),""!==e?("#"===U(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Me)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ze=function(e){var t=p(this,$e),n=_(arguments.length,1)>1?arguments[1]:void 0,r=E(t,new qe(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},$e=Ze.prototype,Ne=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(c($e,"href",Ne("serialize","setHref")),c($e,"origin",Ne("getOrigin")),c($e,"protocol",Ne("getProtocol","setProtocol")),c($e,"username",Ne("getUsername","setUsername")),c($e,"password",Ne("getPassword","setPassword")),c($e,"host",Ne("getHost","setHost")),c($e,"hostname",Ne("getHostname","setHostname")),c($e,"port",Ne("getPort","setPort")),c($e,"pathname",Ne("getPathname","setPathname")),c($e,"search",Ne("getSearch","setSearch")),c($e,"searchParams",Ne("getSearchParams")),c($e,"hash",Ne("getHash","setHash"))),h($e,"toJSON",function(){return S(this).serialize()},{enumerable:!0}),h($e,"toString",function(){return S(this).serialize()},{enumerable:!0}),A){var We=A.createObjectURL,Xe=A.revokeObjectURL;We&&h(Ze,"createObjectURL",l(We,A)),Xe&&h(Ze,"revokeObjectURL",l(Xe,A))}b(Ze,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Ze})},47135(e,t,n){"use strict";n.d(t,{A:()=>s});n(64346);function r(e){if(Array.isArray(e))return e}n(52675),n(89463),n(2259),n(44114),n(26099),n(47764),n(62953);function i(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}}var o=n(35633);n(16280),n(76918);
1function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||i(e,t)||(0,o.A)(e,t)||a()}},47566(e,t,n){"use strict";var r=n(36840),i=n(79504),o=n(655),a=n(22812),s=URLSearchParams,l=s.prototype,u=i(l.getAll),h=i(l.has),c=new s("a=1");!c.has("a",2)&&c.has("a",void 0)||r(l,"has",function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return h(this,e);var r=u(this,e);a(t,1);var i=o(n),s=0;while(s<r.length)if(r[s++]===i)return!0;return!1},{enumerable:!0,unsafe:!0})},48408(e,t,n){"use strict";n(98406)},50375(e,t,n){"use strict";var r=n(46518),i=n(79504),o=n(67750),a=n(91291),s=n(655),l=i("".slice),u=Math.max,h=Math.min,c=!"".substr||"b"!=="ab".substr(-1);r({target:"String",proto:!0,forced:c},{substr:function(e,t){var n,r,i=s(o(this)),c=i.length,p=a(e);return p===1/0&&(p=0),p<0&&(p=u(c+p,0)),n=void 0===t?c:a(t),n<=0||n===1/0?"":(r=h(p+n,c),p>=r?"":l(i,p,r))}})},52703(e,t,n){"use strict";var r=n(44576),i=n(79039),o=n(79504),a=n(655),s=n(43802).trim,l=n(47452),u=r.parseInt,h=r.Symbol,c=h&&h.iterator,p=/^[+-]?0x/i,f=o(p.exec),d=8!==u(l+"08")||22!==u(l+"0x16")||c&&!i(function(){u(Object(c))});e.exports=d?function(e,t){var n=s(a(e));return u(n,t>>>0||(f(p,n)?16:10))}:u},58940(e,t,n){"use strict";var r=n(46518),i=n(52703);r({global:!0,forced:parseInt!==i},{parseInt:i})},62923(e,t,n){"use strict";n.d(t,{s:()=>r});n(76918),n(23288),n(26099),n(58940),n(27495),n(38781),n(25440),n(50375);function r(e){if(!e)return!1;var t="#"===e.charAt(0)?e.substring(1,7):e,n=3===t.length&&t.charAt(0)===t.charAt(1)&&t.charAt(1)===t.charAt(2)?t+t:t,r=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),o=parseInt(n.substring(4,6),16);return.299*r+.587*i+.114*o<186}},67416(e,t,n){"use strict";var r=n(79039),i=n(78227),o=n(43724),a=n(96395),s=i("iterator");e.exports=!r(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach(function(e,n){t["delete"]("b"),r+=n+e}),n["delete"]("a",2),n["delete"]("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!o)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host})},74488(e,t,n){"use strict";var r=n(67680),i=Math.floor,o=function(e,t){var n=e.length;if(n<8){var a,s,l=1;while(l<n){s=l,a=e[l];while(s&&t(e[s-1],a)>0)e[s]=e[--s];s!==l++&&(e[s]=a)}}else{var u=i(n/2),h=o(r(e,0,u),t),c=o(r(e,u),t),p=h.length,f=c.length,d=0,m=0;while(d<p||m<f)e[d+m]=d<p&&m<f?t(h[d],c[m])<=0?h[d++]:c[m++]:d<p?h[d++]:c[m++]}return e};e.exports=o},74945(e,t,n){var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){(function(t){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g||{},i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function o(e){return e&&DataView.prototype.isPrototypeOf(e)}if(i.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!==typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function p(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function d(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){var t=new FileReader,n=f(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8";return t.readAsText(e,i),n}function g(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i.arrayBuffer&&i.blob&&o(e)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=p(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(d);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return m(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(g(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=l(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype["delete"]=function(e){delete this.map[l(e)]},c.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},c.prototype.set=function(e,t){this.map[l(e)]=u(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),h(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),h(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),h(e)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function b(e){var t=e.toUpperCase();return w.indexOf(t)>-1?t:e}function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=b(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r){var e=new AbortController;return e.signal}}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function C(e){var t=new c,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(o){console.warn("Response "+o.message)}}}),t}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},y.call(_.prototype),y.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var S=[301,302,303,307,308];E.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(k){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function R(e,n){return new Promise(function(o,a){var s=new _(e,n);if(s.signal&&s.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var h=new XMLHttpRequest;function p(){h.abort()}function f(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}if(h.onload=function(){var e={statusText:h.statusText,headers:C(h.getAllResponseHeaders()||"")};0===s.url.indexOf("file://")&&(h.status<200||h.status>599)?e.status=200:e.status=h.status,e.url="responseURL"in h?h.responseURL:e.headers.get("X-Request-URL");var t="response"in h?h.response:h.responseText;setTimeout(function(){o(new E(t,e))},0)},h.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},h.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},h.onabort=function(){setTimeout(function(){a(new t.DOMException("Aborted","AbortError"))},0)},h.open(s.method,f(s.url),!0),"include"===s.credentials?h.withCredentials=!0:"omit"===s.credentials&&(h.withCredentials=!1),"responseType"in h&&(i.blob?h.responseType="blob":i.arrayBuffer&&(h.responseType="arraybuffer")),n&&"object"===typeof n.headers&&!(n.headers instanceof c||r.Headers&&n.headers instanceof r.Headers)){var d=[];
1Object.getOwnPropertyNames(n.headers).forEach(function(e){d.push(l(e)),h.setRequestHeader(e,u(n.headers[e]))}),s.headers.forEach(function(e,t){-1===d.indexOf(t)&&h.setRequestHeader(t,e)})}else s.headers.forEach(function(e,t){h.setRequestHeader(t,e)});s.signal&&(s.signal.addEventListener("abort",p),h.onreadystatechange=function(){4===h.readyState&&s.signal.removeEventListener("abort",p)}),h.send("undefined"===typeof s._bodyInit?null:s._bodyInit)})}R.polyfill=!0,r.fetch||(r.fetch=R,r.Headers=c,r.Request=_,r.Response=E),t.Headers=c,t.Request=_,t.Response=E,t.fetch=R})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=r.fetch?r:i;t=o.fetch,t["default"]=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},98406(e,t,n){"use strict";n(23792),n(27337);var r=n(46518),i=n(44576),o=n(93389),a=n(97751),s=n(69565),l=n(79504),u=n(43724),h=n(67416),c=n(36840),p=n(62106),f=n(56279),d=n(10687),m=n(33994),g=n(91181),v=n(90679),y=n(94901),w=n(39297),b=n(76080),_=n(36955),x=n(28551),C=n(20034),E=n(655),S=n(2360),R=n(6980),k=n(70081),A=n(50851),I=n(62529),B=n(22812),P=n(78227),O=n(74488),U=P("iterator"),L="URLSearchParams",z=L+"Iterator",T=g.set,j=g.getterFor(L),D=g.getterFor(z),H=o("fetch"),F=o("Request"),M=o("Headers"),q=F&&F.prototype,Z=M&&M.prototype,$=i.TypeError,N=i.encodeURIComponent,W=String.fromCharCode,X=a("String","fromCodePoint"),Y=parseInt,G=l("".charAt),V=l([].join),J=l([].push),Q=l("".replace),K=l([].shift),ee=l([].splice),te=l("".split),ne=l("".slice),re=l(/./.exec),ie=/\+/g,oe="�",ae=/^[0-9a-f]+$/i,se=function(e,t){var n=ne(e,t,t+2);return re(ae,n)?Y(n,16):NaN},le=function(e){for(var t=0,n=128;n>0&&0!==(e&n);n>>=1)t++;return t},ue=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3];break}return t>1114111?null:t},he=function(e){e=Q(e,ie," ");var t=e.length,n="",r=0;while(r<t){var i=G(e,r);if("%"===i){if("%"===G(e,r+1)||r+3>t){n+="%",r++;continue}var o=se(e,r+1);if(o!==o){n+=i,r++;continue}r+=2;var a=le(o);if(0===a)i=W(o);else{if(1===a||a>4){n+=oe,r++;continue}var s=[o],l=1;while(l<a){if(r++,r+3>t||"%"!==G(e,r))break;var u=se(e,r+1);if(u!==u){r+=3;break}if(u>191||u<128)break;J(s,u),r+=2,l++}if(s.length!==a){n+=oe;continue}var h=ue(s);null===h?n+=oe:i=X(h)}}n+=i,r++}return n},ce=/[!'()~]|%20/g,pe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fe=function(e){return pe[e]},de=function(e){return Q(N(e),ce,fe)},me=m(function(e,t){T(this,{type:z,target:j(e).entries,index:0,kind:t})},L,function(){var e=D(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,I(void 0,!0);var r=t[n];switch(e.kind){case"keys":return I(r.key,!1);case"values":return I(r.value,!1)}return I([r.key,r.value],!1)},!0),ge=function(e){this.entries=[],this.url=null,void 0!==e&&(C(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?ne(e,1):e:E(e)))};ge.prototype={type:L,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,l,u=this.entries,h=A(e);if(h){t=k(e,h),n=t.next;while(!(r=s(n,t)).done){if(i=k(x(r.value)),o=i.next,(a=s(o,i)).done||(l=s(o,i)).done||!s(o,i).done)throw new $("Expected sequence with length 2");J(u,{key:E(a.value),value:E(l.value)})}}else for(var c in e)w(e,c)&&J(u,{key:c,value:E(e[c])})},parseQuery:function(e){if(e){var t,n,r=this.entries,i=te(e,"&"),o=0;while(o<i.length)t=i[o++],t.length&&(n=te(t,"="),J(r,{key:he(K(n)),value:he(V(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],r=0;while(r<t.length)e=t[r++],J(n,de(e.key)+"="+de(e.value));return V(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ve=function(){v(this,ye);var e=arguments.length>0?arguments[0]:void 0,t=T(this,new ge(e));u||(this.size=t.entries.length)},ye=ve.prototype;if(f(ye,{append:function(e,t){var n=j(this);B(arguments.length,2),J(n.entries,{key:E(e),value:E(t)}),u||this.size++,n.updateURL()},delete:function(e){var t=j(this),n=B(arguments.length,1),r=t.entries,i=E(e),o=n<2?void 0:arguments[1],a=void 0===o?o:E(o),s=0;while(s<r.length){var l=r[s];if(l.key!==i||void 0!==a&&l.value!==a)s++;else if(ee(r,s,1),void 0!==a)break}u||(this.size=r.length),t.updateURL()},get:function(e){var t=j(this).entries;B(arguments.length,1);for(var n=E(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=j(this).entries;B(arguments.length,1);for(var n=E(e),r=[],i=0;i<t.length;i++)t[i].key===n&&J(r,t[i].value);return r},has:function(e){var t=j(this).entries,n=B(arguments.length,1),r=E(e),i=n<2?void 0:arguments[1],o=void 0===i?i:E(i),a=0;while(a<t.length){var s=t[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=j(this);B(arguments.length,1);for(var r,i=n.entries,o=!1,a=E(e),s=E(t),l=0;l<i.length;l++)r=i[l],r.key===a&&(o?ee(i,l--,1):(o=!0,r.value=s));o||J(i,{key:a,value:s}),u||(this.size=i.length),n.updateURL()},sort:function(){var e=j(this);O(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()}
1,forEach:function(e){var t,n=j(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),i=0;while(i<n.length)t=n[i++],r(t.value,t.key,this)},keys:function(){return new me(this,"keys")},values:function(){return new me(this,"values")},entries:function(){return new me(this,"entries")}},{enumerable:!0}),c(ye,U,ye.entries,{name:"entries"}),c(ye,"toString",function(){return j(this).serialize()},{enumerable:!0}),u&&p(ye,"size",{get:function(){return j(this).entries.length},configurable:!0,enumerable:!0}),d(ve,L),r({global:!0,constructor:!0,forced:!h},{URLSearchParams:ve}),!h&&y(M)){var we=l(Z.has),be=l(Z.set),_e=function(e){if(C(e)){var t,n=e.body;if(_(n)===L)return t=e.headers?new M(e.headers):new M,we(t,"content-type")||be(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),S(e,{body:R(0,E(n)),headers:R(0,t)})}return e};if(y(H)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return H(e,arguments.length>1?_e(arguments[1]):{})}}),y(F)){var xe=function(e){return v(this,q),new F(e,arguments.length>1?_e(arguments[1]):{})};q.constructor=xe,xe.prototype=q,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xe})}}e.exports={URLSearchParams:ve,getState:j}},98721(e,t,n){"use strict";var r=n(43724),i=n(79504),o=n(62106),a=URLSearchParams.prototype,s=i(a.forEach);r&&!("size"in a)&&o(a,"size",{get:function(){var e=0;return s(this,function(){e++}),e},configurable:!0,enumerable:!0})}}]);
2//# sourceMappingURL=CroppieWrapper.470689f8.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.