PageSourceSearch

https://app.paa.ge/static/js/7332.f7556e77.chunk.js

js paa.ge collected 2026-09-24 17:11:38 UTC 12,708 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklamaco=self.webpackChunklamaco||[]).push([[7332],{41625:(e,t,n)=>{n.r(t),n.d(t,{default:()=>O});var r=n(58168),a=n(23029),o=n(92901),i=n(9417),s=n(85501),c=n(29426),u=n(64467),l=n(65043),p=n(89379),f=n(80045),d=n(82284),h=n(36755),v=n(10467),A=n(60436),m=n(98139),b=n.n(m),k=n(48060),y=n(97907);const w=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),i=t.toLowerCase(),s=[i];return".jpg"!==i&&".jpeg"!==i||(s=[".jpg",".jpeg"]),s.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?o===t.replace(/\/.*$/,""):a===t||!!/^\w+$/.test(t)&&((0,y.Ay)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0};function x(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function g(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var r=e.data[t];Array.isArray(r)?r.forEach(function(e){n.append("".concat(t,"[]"),e)}):n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),x(t)):e.onSuccess(x(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(e){null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort:function(){t.abort()}}}const F=function(){var e=(0,v.A)((0,h.A)().mark(function e(t,n){var r,a,o,i,s,c,u,l;return(0,h.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c=function(){return(c=(0,v.A)((0,h.A)().mark(function e(t){return(0,h.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){t.file(function(r){n(r)?(t.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),e(r)):e(null)})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},s=function(e){return c.apply(this,arguments)},i=function(){return(i=(0,v.A)((0,h.A)().mark(function e(t){var n,r,a,o,i;return(0,h.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),r=[];case 2:return e.next=5,new Promise(function(e){n.readEntries(e,function(){return e([])})});case 5:if(a=e.sent,o=a.length){e.next=9;break}return e.abrupt("break",12);case 9:for(i=0;i<o;i++)r.push(a[i]);e.next=2;break;case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}},e)}))).apply(this,arguments)},o=function(e){return i.apply(this,arguments)},r=[],a=[],t.forEach(function(e){return a.push(e.webkitGetAsEntry())}),u=function(){var e=(0,v.A)((0,h.A)().mark(function e(t,n){var i,c;return(0,h.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.path=n||"",!t.isFile){e.next=10;break}return e.next=6,s(t);case 6:(i=e.sent)&&r.push(i),e.next=15;break;case 10:if(!t.isDirectory){e.next=15;break}return e.next=13,o(t);case 13:c=e.sent,a.push.apply(a,(0,A.A)(c));case 15:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),l=0;case 9:if(!(l<a.length)){e.next=15;break}return e.next=12,u(a[l]);case 12:l++,e.next=9;break;case 15:return e.abrupt("return",r);case 16:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}();var C=+new Date,E=0;function D(){return"rc-upload-".concat(C,"-").concat(++E)}var P=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"];const M=function(e){(0,s.A)(n,e);var t=(0,c.A)(n);function n(){var e;(0,a.A)(this,n);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return e=t.call.apply(t,[this].concat(o)),(0,u.A)((0,i.A)(e),"state",{uid:D()}),(0,u.A)((0,i.A)(e),"reqs",{}),(0,u.A)((0,i.A)(e),"fileInput",void 0),(0,u.A)((0,i.A)(e),"_isMounted",void 0),(0,u.A)((0,i.A)(e),"onChange",function(t){var n=e.props,r=n.accept,a=n.directory,o=t.target.files,i=(0,A.A)(o).filter(function(e){return!a||w(e,r)});e.uploadFiles(i),e.reset()}),(0,u.A)((0,i.A)(e),"onClick",function(t){var n=e.fileInput;if(n){var r=t.target,a=e.props.onClick;if(r&&"BUTTON"===r.tagName)n.parentNode.focus(),r.blur();n.click(),a&&a(t)}}),(0,u.A)((0,i.A)(e),"onKeyDown",function(t){"Enter"===t.key&&e.onClick(t)}),(0,u.A)((0,i.A)(e),"onDataTransferFiles",function(){var t=(0,v.A)((0,h.A)().mark(function t(n,r){var a,o,i,s,c,u,l;return(0,h.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.props,o=a.multiple,i=a.accept,s=a.directory,c=(0,A.A)(n.items||[]),((u=(0,A.A)(n.files||[])).length>0||c.some(function(e){return"file"===e.kind}))&&(null===r||void 0===r||r()),!s){t.next=11;break}return t.next=7,F(Array.prototype.slice.call(c),function(t){return w(t,e.props.accept)});case 7:u=t.sent,e.uploadFiles(u),t.next=14;break;case 11:l=(0,A.A)(u).filter(function(e){return w(e,i)}),!1===o&&(l=u.slice(0,1)),e.uploadFiles(l);case 14:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()),(0,u.A)((0,i.A)(e),"onFilePaste",function(){var t=(0,v.A)((0,h.A)().mark(function t(n){var r;return(0,h.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.props.pastable){t.next=3;break}return t.abrupt("return");case 3:if("paste"!==n.type){t.next=6;break}return r=n.clipboardData,t.abrupt("return",e.onDataTransferFiles(r,function(){n.preventDefault()}));case 6:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),(0,u.A)((0,i.A)(e),"onFileDragOver",function(e){e.preventDefault()}),(0,u.A)((0,i.A)(e),"onFileDrop",function(){var t=(0,v.A)((0,h.A)().mark(function t(n){var r;return(0,h.A)().wrap(function(t){for(;;
1)switch(t.prev=t.next){case 0:if(n.preventDefault(),"drop"!==n.type){t.next=4;break}return r=n.dataTransfer,t.abrupt("return",e.onDataTransferFiles(r));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),(0,u.A)((0,i.A)(e),"uploadFiles",function(t){var n=(0,A.A)(t),r=n.map(function(t){return t.uid=D(),e.processFile(t,n)});Promise.all(r).then(function(t){var n=e.props.onBatchStart;null===n||void 0===n||n(t.map(function(e){return{file:e.origin,parsedFile:e.parsedFile}})),t.filter(function(e){return null!==e.parsedFile}).forEach(function(t){e.post(t)})})}),(0,u.A)((0,i.A)(e),"processFile",function(){var t=(0,v.A)((0,h.A)().mark(function t(n,r){var a,o,i,s,c,u,l,p,f;return(0,h.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.props.beforeUpload,o=n,!a){t.next=14;break}return t.prev=3,t.next=6,a(n,r);case 6:o=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),o=!1;case 12:if(!1!==o){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!==typeof(i=e.props.action)){t.next=21;break}return t.next=18,i(n);case 18:s=t.sent,t.next=22;break;case 21:s=i;case 22:if("function"!==typeof(c=e.props.data)){t.next=29;break}return t.next=26,c(n);case 26:u=t.sent,t.next=30;break;case 29:u=c;case 30:return l="object"!==(0,d.A)(o)&&"string"!==typeof o||!o?n:o,p=l instanceof File?l:new File([l],n.name,{type:n.type}),(f=p).uid=n.uid,t.abrupt("return",{origin:n,data:u,parsedFile:f,action:s});case 35:case"end":return t.stop()}},t,null,[[3,9]])}));return function(e,n){return t.apply(this,arguments)}}()),(0,u.A)((0,i.A)(e),"saveFileInput",function(t){e.fileInput=t}),e}return(0,o.A)(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.pastable&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(e){var t=this.props.pastable;t&&!e.pastable?document.addEventListener("paste",this.onFilePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,a=e.action,o=e.parsedFile;if(this._isMounted){var i=this.props,s=i.onStart,c=i.customRequest,u=i.name,l=i.headers,p=i.withCredentials,f=i.method,d=r.uid,h=c||g,v={action:a,filename:u,data:n,file:o,headers:l,withCredentials:p,method:f||"post",onProgress:function(e){var n=t.props.onProgress;null===n||void 0===n||n(e,o)},onSuccess:function(e,n){var r=t.props.onSuccess;null===r||void 0===r||r(e,o,n),delete t.reqs[d]},onError:function(e,n){var r=t.props.onError;null===r||void 0===r||r(e,n,o),delete t.reqs[d]}};s(r),this.reqs[d]=h(v)}}},{key:"reset",value:function(){this.setState({uid:D()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.prefixCls,a=e.className,o=e.classNames,i=void 0===o?{}:o,s=e.disabled,c=e.id,d=e.name,h=e.style,v=e.styles,A=void 0===v?{}:v,m=e.multiple,y=e.accept,w=e.capture,x=e.children,g=e.directory,F=e.openFileDialogOnClick,C=e.onMouseEnter,E=e.onMouseLeave,D=e.hasControlInside,M=(0,f.A)(e,P),R=b()((0,u.A)((0,u.A)((0,u.A)({},n,!0),"".concat(n,"-disabled"),s),a,a)),q=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},O=s?{}:{onClick:F?this.onClick:function(){},onKeyDown:F?this.onKeyDown:function(){},onMouseEnter:C,onMouseLeave:E,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:D?void 0:"0"};return l.createElement(t,(0,r.A)({},O,{className:R,role:D?void 0:"button",style:h}),l.createElement("input",(0,r.A)({},(0,k.A)(M,{aria:!0,data:!0}),{id:c,name:d,disabled:s,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:(0,p.A)({display:"none"},A.input),className:i.input,accept:y},q,{multiple:m,onChange:this.onChange}
1,null!=w?{capture:w}:{})),x)}}]),n}(l.Component);function R(){}var q=function(e){(0,s.A)(n,e);var t=(0,c.A)(n);function n(){var e;(0,a.A)(this,n);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return e=t.call.apply(t,[this].concat(o)),(0,u.A)((0,i.A)(e),"uploader",void 0),(0,u.A)((0,i.A)(e),"saveUploader",function(t){e.uploader=t}),e}return(0,o.A)(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return l.createElement(M,(0,r.A)({},this.props,{ref:this.saveUploader}))}}]),n}(l.Component);(0,u.A)(q,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:R,onError:R,onSuccess:R,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const O=q},61966:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(58168),a=n(65043);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var i=n(6127),s=function(e,t){return a.createElement(i.A,(0,r.A)({},e,{ref:t,icon:o}))};const c=a.forwardRef(s)},89330:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(58168),a=n(65043);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var i=n(6127),s=function(e,t){return a.createElement(i.A,(0,r.A)({},e,{ref:t,icon:o}))};const c=a.forwardRef(s)}}]);

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.