PageSourceSearch

https://asiania.me/_next/static/chunks/1209-4e8748fc5d9fb4fb.js

js asiania.me collected 2026-10-04 02:40:15 UTC 23,458 bytes, 1 lines download raw bytes

vendor: 5,248 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1209],{27036:function(t,e,n){"use strict";var o=n(95318);e.Z=void 0;var r=o(n(64938)),i=n(85893),s=(0,r.default)((0,i.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");e.Z=s},50594:function(t,e,n){"use strict";var o=n(95318);e.Z=void 0;var r=o(n(64938)),i=n(85893),s=(0,r.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");e.Z=s},11048:function(t,e,n){"use strict";var o=n(95318);e.Z=void 0;var r=o(n(64938)),i=n(85893),s=(0,r.default)((0,i.jsx)("path",{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}),"Crop");e.Z=s},80008:function(t,e,n){(t.exports=n(85177)).tz.load(n(91128))},85177:function(t,e,n){var o,r,i;!function(s,a){"use strict";t.exports?t.exports=a(n(30381)):(r=[n(30381)],void 0===(i="function"===typeof(o=a)?o.apply(e,r):o)||(t.exports=i))}(0,(function(t){"use strict";void 0===t.version&&t.default&&(t=t.default);var e,n={},o={},r={},i={},s={};t&&"string"===typeof t.version||k("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=t.version.split("."),h=+a[0],c=+a[1];function d(t){return t>96?t-87:t>64?t-29:t-48}function l(t){var e=0,n=t.split("."),o=n[0],r=n[1]||"",i=1,s=0,a=1;for(45===t.charCodeAt(0)&&(e=1,a=-1);e<o.length;e++)s=60*s+d(o.charCodeAt(e));for(e=0;e<r.length;e++)i/=60,s+=d(r.charCodeAt(e))*i;return s*a}function p(t){for(var e=0;e<t.length;e++)t[e]=l(t[e])}function u(t,e){var n,o=[];for(n=0;n<e.length;n++)o[n]=t[e[n]];return o}function f(t){var e=t.split("|"),n=e[2].split(" "),o=e[3].split(""),r=e[4].split(" ");return p(n),p(o),p(r),function(t,e){for(var n=0;n<e;n++)t[n]=Math.round((t[n-1]||0)+6e4*t[n]);t[e-1]=1/0}(r,o.length),{name:e[0],abbrs:u(e[1].split(" "),o),offsets:u(n,o),untils:r,population:0|e[5]}}function w(t){t&&this._set(f(t))}function g(t,e){this.name=t,this.zones=e}function m(t){var e=t.toTimeString(),n=e.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=e.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+t,this.abbr=n,this.offset=t.getTimezoneOffset()}function y(t){this.zone=t,this.offsetScore=0,this.abbrScore=0}function v(t,e){for(var n,o;o=6e4*((e.at-t.at)/12e4|0);)(n=new m(new Date(t.at+o))).offset===t.offset?t=n:e=n;return t}function x(t,e){return t.offsetScore!==e.offsetScore?t.offsetScore-e.offsetScore:t.abbrScore!==e.abbrScore?t.abbrScore-e.abbrScore:t.zone.population!==e.zone.population?e.zone.population-t.zone.population:e.zone.name.localeCompare(t.zone.name)}function b(t,e){var n,o;for(p(e),n=0;n<e.length;n++)o=e[n],s[o]=s[o]||{},s[o][t]=!0}function C(t){var e,n,o,r=t.length,a={},h=[];for(e=0;e<r;e++)for(n in o=s[t[e].offset]||{})o.hasOwnProperty(n)&&(a[n]=!0);for(e in a)a.hasOwnProperty(e)&&h.push(i[e]);return h}function D(){try{var t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(t&&t.length>3){var e=i[_(t)];if(e)return e;k("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(d){}var n,o,r,s=function(){var t,e,n,o=(new Date).getFullYear()-2,r=new m(new Date(o,0,1)),i=[r];for(n=1;n<48;n++)(e=new m(new Date(o,n,1))).offset!==r.offset&&(t=v(r,e),i.push(t),i.push(new m(new Date(t.at+6e4)))),r=e;for(n=0;n<4;n++)i.push(new m(new Date(o+n,0,1))),i.push(new m(new Date(o+n,6,1)));return i}(),a=s.length,h=C(s),c=[];for(o=0;o<h.length;o++){for(n=new y(O(h[o]),a),r=0;r<a;r++)n.scoreOffsetAt(s[r]);c.push(n)}return c.sort(x),c.length>0?c[0].zone.name:void 0}function _(t){return(t||"").toLowerCase().replace(/\//g,"_")}function z(t){var e,o,r,s;for("string"===typeof t&&(t=[t]),e=0;e<t.length;e++)s=_(o=(r=t[e].split("|"))[0]),n[s]=t[e],i[s]=o,b(s,r[2].split(" "))}function O(t,e){t=_(t);var r,s=n[t];return s instanceof w?s:"string"===typeof s?(s=new w(s),n[t]=s,s):o[t]&&e!==O&&(r=O(o[t],O))?((s=n[t]=new w)._set(r),s.name=i[t],s):null}function j(t){var e,n,r,s;for("string"===typeof t&&(t=[t]),e=0;e<t.length;e++)r=_((n=t[e].split("|"))[0]),s=_(n[1]),o[r]=s,i[r]=n[0],o[s]=r,i[s]=n[1]}function S(t){var e="X"===t._f||"x"===t._f;return!(!t._a||void 0!==t._tzm||e)}function k(t){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(t)}function R(e){var n=Array.prototype.slice.call(arguments,0,-1),o=arguments[arguments.length-1],r=O(o),i=t.utc.apply(null,n);return r&&!t.isMoment(e)&&S(i)&&i.add(r.parse(i),"minutes"),i.tz(o),i}(h<2||2===h&&c<6)&&k("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com"),w.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var e,n=+t,o=this.untils;for(e=0;e<o.length;e++)if(n<o[e])return e},countries:function(){var t=this.name;return Object.keys(r).filter((function(e){return-1!==r[e].zones.indexOf(t)}))},parse:function(t){var e,n,o,r,i=+t,s=this.offsets,a=this.untils,h=a.length-1;for(r=0;r<h;r++)if(e=s[r],n=s[r+1],o=s[r?r-1:r],e<n&&R.moveAmbiguousForward?e=n:e>o&&R.moveInvalidForward&&(e=o),i<a[r]-6e4*e)return s[r];return s[h]},abbr:function(t){return this.abbrs[this._index(t)]}
1,offset:function(t){return k("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(t)]},utcOffset:function(t){return this.offsets[this._index(t)]}},y.prototype.scoreOffsetAt=function(t){this.offsetScore+=Math.abs(this.zone.utcOffset(t.at)-t.offset),this.zone.abbr(t.at).replace(/[^A-Z]/g,"")!==t.abbr&&this.abbrScore++},R.version="0.5.32",R.dataVersion="",R._zones=n,R._links=o,R._names=i,R._countries=r,R.add=z,R.link=j,R.load=function(t){z(t.zones),j(t.links),function(t){var e,n,o,i;if(t&&t.length)for(e=0;e<t.length;e++)n=(i=t[e].split("|"))[0].toUpperCase(),o=i[1].split(" "),r[n]=new g(n,o)}(t.countries),R.dataVersion=t.version},R.zone=O,R.zoneExists=function t(e){return t.didShowError||(t.didShowError=!0,k("moment.tz.zoneExists('"+e+"') has been deprecated in favor of !moment.tz.zone('"+e+"')")),!!O(e)},R.guess=function(t){return e&&!t||(e=D()),e},R.names=function(){var t,e=[];for(t in i)i.hasOwnProperty(t)&&(n[t]||n[o[t]])&&i[t]&&e.push(i[t]);return e.sort()},R.Zone=w,R.unpack=f,R.unpackBase60=l,R.needsOffset=S,R.moveInvalidForward=!0,R.moveAmbiguousForward=!1,R.countries=function(){return Object.keys(r)},R.zonesForCountry=function(t,e){var n;if(n=(n=t).toUpperCase(),!(t=r[n]||null))return null;var o=t.zones.sort();return e?o.map((function(t){return{name:t,offset:O(t).utcOffset(new Date)}})):o};var M,P=t.fn;function A(t){return function(){return this._z?this._z.abbr(this):t.call(this)}}function H(t){return function(){return this._z=null,t.apply(this,arguments)}}t.tz=R,t.defaultZone=null,t.updateOffset=function(e,n){var o,r=t.defaultZone;if(void 0===e._z&&(r&&S(e)&&!e._isUTC&&(e._d=t.utc(e._a)._d,e.utc().add(r.parse(e),"minutes")),e._z=r),e._z)if(o=e._z.utcOffset(e),Math.abs(o)<16&&(o/=60),void 0!==e.utcOffset){var i=e._z;e.utcOffset(-o,n),e._z=i}else e.zone(o,n)},P.tz=function(e,n){if(e){if("string"!==typeof e)throw new Error("Time zone name must be a string, got "+e+" ["+typeof e+"]");return this._z=O(e),this._z?t.updateOffset(this,n):k("Moment Timezone has no data for "+e+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},P.zoneName=A(P.zoneName),P.zoneAbbr=A(P.zoneAbbr),P.utc=H(P.utc),P.local=H(P.local),P.utcOffset=(M=P.utcOffset,function(){return arguments.length>0&&(this._z=null),M.apply(this,arguments)}),t.tz.setDefault=function(e){return(h<2||2===h&&c<9)&&k("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=e?O(e):null,t};var Y=t.momentProperties;return"[object Array]"===Object.prototype.toString.call(Y)?(Y.push("_z"),Y.push("_a")):Y&&(Y._z=null),t}))},51919:function(){},96120:function(t,e,n){var o;t.exports=(o=n(67294),(()=>{"use strict";var t={418:t=>{var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function r(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var s,a,h=r(t),c=1;c<arguments.length;c++){for(var d in s=Object(arguments[c]))n.call(s,d)&&(h[d]=s[d]);if(e){a=e(s);for(var l=0;l<a.length;l++)o.call(s,a[l])&&(h[a[l]]=s[a[l]])}}return h}},251:(t,e,n)=>{n(418);var o=n(899),r=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;r=i("react.element"),e.Fragment=i("react.fragment")}var s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,h={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var o,i={},c=null,d=null;
1for(o in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(d=e.ref),e)a.call(e,o)&&!h.hasOwnProperty(o)&&(i[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps)void 0===i[o]&&(i[o]=e[o]);return{$$typeof:r,type:t,key:c,ref:d,props:i,_owner:s.current}}e.jsx=c,e.jsxs=c},893:(t,e,n)=>{t.exports=n(251)},899:t=>{t.exports=o}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{Component:()=>f,areCropsEqual:()=>a,centerCrop:()=>c,clamp:()=>s,containCrop:()=>p,convertToPercentCrop:()=>d,convertToPixelCrop:()=>l,default:()=>f,defaultCrop:()=>i,makeAspectCrop:()=>h});var t=n(893),e=n(899);function o(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=o(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}const i={x:0,y:0,width:0,height:0,unit:"px"};function s(t,e,n){return Math.min(Math.max(t,e),n)}function a(t,e){return t.width===e.width&&t.height===e.height&&t.x===e.x&&t.y===e.y&&t.unit===e.unit}function h(t,e,n,o){const r=l(t,n,o);return t.width&&(r.height=r.width/e),t.height&&(r.width=r.height*e),r.y+r.height>o&&(r.height=o-r.y,r.width=r.height*e),r.x+r.width>n&&(r.width=n-r.x,r.height=r.width/e),"%"===t.unit?d(r,n,o):r}function c(t,e,n){const o=l(t,e,n);return o.x=(e-o.width)/2,o.y=(n-o.height)/2,"%"===t.unit?d(o,e,n):o}function d(t,e,n){return"%"===t.unit?{...i,...t,unit:"%"}:{unit:"%",x:t.x?t.x/e*100:0,y:t.y?t.y/n*100:0,width:t.width?t.width/e*100:0,height:t.height?t.height/n*100:0}}function l(t,e,n){return t.unit?"px"===t.unit?{...i,...t,unit:"px"}:{unit:"px",x:t.x?t.x*e/100:0,y:t.y?t.y*n/100:0,width:t.width?t.width*e/100:0,height:t.height?t.height*n/100:0}:{...i,...t,unit:"px"}}function p(t,e,n,o,r,i=0,s=0,a=o,h=r){const c={...t};let d=i,l=s,p=a,u=h;e&&(e>1?(d=s*e,p=a*e):(l=i/e,u=h/e)),c.y<0&&(c.height=Math.max(c.height+c.y,l),c.y=0),c.x<0&&(c.width=Math.max(c.width+c.x,d),c.x=0);const f=o-(c.x+c.width);f<0&&(c.x=Math.min(c.x,o-d),c.width+=f);const w=r-(c.y+c.height);if(w<0&&(c.y=Math.min(c.y,r-l),c.height+=w),c.width<d&&("sw"!==n&&"nw"!=n||(c.x-=d-c.width),c.width=d),c.height<l&&("nw"!==n&&"ne"!=n||(c.y-=l-c.height),c.height=l),c.width>p&&("sw"!==n&&"nw"!=n||(c.x-=p-c.width),c.width=p),c.height>u&&("nw"!==n&&"ne"!=n||(c.y-=u-c.height),c.height=u),e){const t=c.width/c.height;if(t<e){const t=c.width/e;"nw"!==n&&"ne"!=n||(c.y-=t-c.height),c.height=t}else if(t>e){const t=c.height*e;"sw"!==n&&"nw"!=n||(c.x-=t-c.width),c.width=t}}return c}const u={capture:!0,passive:!1};class f extends e.PureComponent{constructor(){super(...arguments),this.keysDown=new Set,this.docMoveBound=!1,this.mouseDownOnCrop=!1,this.dragStarted=!1,this.evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0},this.componentRef=(0,e.createRef)(),this.mediaRef=(0,e.createRef)(),this.initChangeCalled=!1,this.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=t=>{const{crop:e,disabled:n}=this.props,o=this.getBox();if(!e)return;const r=l(e,o.width,o.height);if(n)return;t.cancelable&&t.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const i=t.target.dataset.ord,s=Boolean(i);let a=t.clientX,h=t.clientY,c=r.x,d=r.y;i&&("ne"===i||"e"==i?(c=r.x,d=r.y+r.height):"se"===i||"s"===i?(c=r.x,d=r.y):"sw"===i||"w"==i?(c=r.x+r.width,d=r.y):"nw"!==i&&"n"!=i||(c=r.x+r.width,d=r.y+r.height),a=c+o.x,h=d+o.y),this.evData={startClientX:a,startClientY:h,startCropX:c,startCropY:d,clientX:t.clientX,clientY:t.clientY,isResize:s,ord:i},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=t=>{const{crop:e,disabled:n,locked:o,keepSelection:r,onChange:i}=this.props,s=this.getBox();if(n||o||r&&e)return;t.cancelable&&t.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const a=t.clientX-s.x,h=t.clientY-s.y,c={unit:"px",x:a,y:h,width:0,height:0};this.evData={startClientX:t.clientX,startClientY:t.clientY,startCropX:a,startCropY:h,clientX:t.clientX,clientY:t.clientY,isResize:!0},this.mouseDownOnCrop=!0,i(l(c,s.width,s.height),d(c,s.width,s.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=t=>{const{crop:e,disabled:n,onChange:o,onDragStart:r}=this.props,i=this.getBox();if(n||!e||!this.mouseDownOnCrop)return;t.cancelable&&t.preventDefault(),this.dragStarted||(this.dragStarted=!0,r&&r(t));const{evData:s}=this;let h;s.clientX=t.clientX,s.clientY=t.clientY,h=s.isResize?this.resizeCrop():this.dragCrop(),a(e,h)||o(l(h,i.width,i.height),d(h,i.width,i.height))},this.onComponentKeyDown=t=>{const{crop:e,disabled:n,onChange:o,onComplete:r}=this.props,i=this.getBox();if(n)return;this.keysDown.add(t.key);let a=!1;if(!e)return;const h=this.makePixelCrop(),c=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?f.nudgeStepLarge:t.shiftKey?f.nudgeStepMedium:f.nudgeStep;if(this.keysDown.has("ArrowLeft")&&(h.x-=c,a=!0),this.keysDown.has("ArrowRight")&&(h.x+=c,a=!0),this.keysDown.has("ArrowUp")&&(h.y-=c,a=!0),this.keysDown.has("ArrowDown")&&(h.y+=c,a=!0),a){t.cancelable&&t.preventDefault(),h.x=s(h.x,0,i.width-h.width),h.y=s(h.y,0,i.height-h.height);const e=l(h,i.width,i.height),n=d(h,i.width,i.height);o(e,n),r&&r(e,n)}},this.onHandlerKeyDown=(t,e)=>{const{aspect:n=0,crop:o,disabled:r,minWidth:i=0,minHeight:s=0,maxWidth:h,maxHeight:c,onChange:u,onComplete:w}=this.props,g=this.getBox();if(r||!o)return;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();const m=l(o,g.width,g.height),y=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?f.nudgeStepLarge:t.shiftKey?f.nudgeStepMedium:f.nudgeStep;"ArrowLeft"===t.key?"nw"===e?(m.x-=y,m.y-=y,m.width+=y,m.height+=y):"w"===e?(m.x-=y,m.width+=y):"sw"===e?(m.x-=y,m.width+=y,m.height+=y):"ne"===e?(m.y+=y,m.width-=y,m.height-=y):"e"===e?m.width-=y:"se"===e&&(m.width-=y,m.height-=y):"ArrowRight"===t.key&&("nw"===e?(m.x+=y,m.y+=y,m.width-=y,m.height-=y):"w"===e?(m.x+=y,m.width-=y):"sw"===e?(m.x+=y,m.width-=y,m.height-=y):"ne"===e?(m.y-=y,m.width+=y,m.height+=y):"e"===e?m.width+=y:"se"===e&&(m.width+=y,m.height+=y)),"ArrowUp"===t.key?"nw"===e?(m.x-=y,m.y-=y,m.width+=y,m.height+=y):"n"===e?(m.y-=y,m.height+=y):"ne"===e?(m.y-=y,m.width+=y,m.height+=y):"sw"===e?(m.x+=y,m.width-=y,m.height-=y):"s"===e?m.height-=y:"se"===e&&(m.width-=y,m.height-=y):"ArrowDown"===t.key&&("nw"===e?(m.x+=y,m.y+=y,m.width-=y,m.height-=y):"n"===e?(m.y+=y,m.height-=y):"ne"===e?(m.y+=y,m.width-=y,m.height-=y):"sw"===e?(m.x-=y,m.width+=y,m.height+=y):"s"===e?m.height+=y:"se"===e&&(m.width+=y,m.height+=y));const v=p(m,n,e,g.width,g.height,i,s,h,c);if(!a(o,v)){const t=d(v,g.width,g.height);u(v,t),w&&w(v,t)}},this.onComponentKeyUp=t=>{this.keysDown.delete(t.key)},this.onDocPointerDone=t=>{const{crop:e,disabled:n,onComplete:o,onDragEnd:r}=this.props,i=this.getBox();this.unbindDocMove(),!n&&e&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,r&&r(t),o&&o(l(e,i.width,i.height),d(e,i.width,i.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))}}getBox(){const t=this.mediaRef.current;if(!t)return{x:0,y:0,width:0,height:0};const{x:e,y:n,width:o,height:r}=t.getBoundingClientRect();return{x:e,y:n,width:o,height:r}}componentDidUpdate(t){const{crop:e,onComplete:n}=this.props;if(n&&!t.crop&&e){const{width:t,height:o}=this.getBox();t&&o&&n(l(e,t,o),d(e,t,o))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}bindDocMove(){this.docMoveBound||(document.addEventListener("pointermove",this.onDocPointerMove,u),document.addEventListener("pointerup",this.onDocPointerDone,u),document.addEventListener("pointercancel",this.onDocPointerDone,u),this.docMoveBound=!0)}
1unbindDocMove(){this.docMoveBound&&(document.removeEventListener("pointermove",this.onDocPointerMove,u),document.removeEventListener("pointerup",this.onDocPointerDone,u),document.removeEventListener("pointercancel",this.onDocPointerDone,u),this.docMoveBound=!1)}getCropStyle(){const{crop:t}=this.props;if(t)return{top:`${t.y}${t.unit}`,left:`${t.x}${t.unit}`,width:`${t.width}${t.unit}`,height:`${t.height}${t.unit}`}}dragCrop(){const{evData:t}=this,e=this.getBox(),n=this.makePixelCrop(),o=t.clientX-t.startClientX,r=t.clientY-t.startClientY;return n.x=s(t.startCropX+o,0,e.width-n.width),n.y=s(t.startCropY+r,0,e.height-n.height),n}getPointRegion(t){const{evData:e}=this,n=e.clientX-t.x,o=e.clientY-t.y<e.startCropY;return n<e.startCropX?o?"nw":"sw":o?"ne":"se"}resizeCrop(){const{evData:t}=this,e=this.getBox(),{aspect:n=0,minWidth:o=0,minHeight:r=0,maxWidth:i,maxHeight:s}=this.props,a=this.getPointRegion(e),h=this.makePixelCrop(),c=t.ord?t.ord:a,d=t.clientX-t.startClientX,l=t.clientY-t.startClientY,u={unit:"px",x:0,y:0,width:0,height:0};"ne"===a?(u.x=t.startCropX,u.width=d,n?(u.height=u.width/n,u.y=t.startCropY-u.height):(u.height=Math.abs(l),u.y=t.startCropY-u.height)):"se"===a?(u.x=t.startCropX,u.y=t.startCropY,u.width=d,u.height=n?u.width/n:l):"sw"===a?(u.x=t.startCropX+d,u.y=t.startCropY,u.width=Math.abs(d),u.height=n?u.width/n:l):"nw"===a&&(u.x=t.startCropX+d,u.width=Math.abs(d),n?(u.height=u.width/n,u.y=t.startCropY-u.height):(u.height=Math.abs(l),u.y=t.startCropY+l));const w=p(u,n,a,e.width,e.height,o,r,i,s);return n||f.xyOrds.indexOf(c)>-1?(h.x=w.x,h.y=w.y,h.width=w.width,h.height=w.height):f.xOrds.indexOf(c)>-1?(h.x=w.x,h.width=w.width):f.yOrds.indexOf(c)>-1&&(h.y=w.y,h.height=w.height),h}createCropSelection(){const{ariaLabels:e=f.defaultProps.ariaLabels,disabled:n,locked:o,renderSelectionAddon:r,ruleOfThirds:i,crop:s}=this.props,a=this.getCropStyle();if(s)return(0,t.jsxs)("div",{style:a,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":e.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,onKeyUp:this.onComponentKeyUp,children:[!n&&!o&&(0,t.jsxs)("div",{className:"ReactCrop__drag-elements",children:[(0,t.jsx)("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),(0,t.jsx)("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),(0,t.jsx)("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),(0,t.jsx)("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),(0,t.jsx)("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":e.nwDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"nw")}),(0,t.jsx)("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":e.nDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"n")}),(0,t.jsx)("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":e.neDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"ne")}),(0,t.jsx)("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":e.eDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"e")}),(0,t.jsx)("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":e.seDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"se")}),(0,t.jsx)("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":e.sDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"s")}),(0,t.jsx)("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":e.swDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"sw")}),(0,t.jsx)("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":e.wDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"w")})]}),r&&(0,t.jsx)("div",{className:"ReactCrop__selection-addon",onMouseDown:t=>t.stopPropagation(),children:r(this.state)}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"ReactCrop__rule-of-thirds-hz"}),(0,t.jsx)("div",{className:"ReactCrop__rule-of-thirds-vt"})]})]})}makePixelCrop(){const t={...i,...this.props.crop||{}},e=this.getBox();return l(t,e.width,e.height)}render(){const{aspect:e,children:n,circularCrop:r,className:i,crop:s,disabled:a,locked:h,style:c,ruleOfThirds:d}=this.props,{cropIsActive:l,newCropIsBeingDrawn:p}=this.state,u=s?this.createCropSelection():null,f=function(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=o(t))&&(r&&(r+=" "),r+=e);return r}("ReactCrop",i,{"ReactCrop--active":l,"ReactCrop--disabled":a,"ReactCrop--locked":h,"ReactCrop--new-crop":p,"ReactCrop--fixed-aspect":s&&e,"ReactCrop--circular-crop":s&&r,"ReactCrop--rule-of-thirds":s&&d,"ReactCrop--invisible-crop":!this.dragStarted&&s&&!s.width&&!s.height});return(0,t.jsxs)("div",{ref:this.componentRef,className:f,style:c,children:[(0,t.jsx)("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown,children:n}),u]})}}f.xOrds=["e","w"],f.yOrds=["n","s"],f.xyOrds=["nw","ne","se","sw"],f.nudgeStep=1,f.nudgeStepMedium=10,f.nudgeStepLarge=100,f.defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}}})(),r})())}}]);

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.