@gendive/slide 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AiChatBar.d.ts +1 -1
- package/dist/devdive-slide.cjs.js +54 -54
- package/dist/devdive-slide.cjs.js.map +1 -1
- package/dist/devdive-slide.es.js +3919 -3870
- package/dist/devdive-slide.es.js.map +1 -1
- package/package.json +10 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("@mantine/core"),w=require("react/jsx-runtime"),oe=require("react"),J2=require("react-dom");function J4(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const _a=J4(oe),Z4=["#eef0ff","#dce0fc","#b5bdf5","#8b98ef","#6879ea","#5B6EF7","#4254e8","#3341d1","#2935bc","#1f29a7"],$4=["#f8fafc","#f1f5f9","#e2e8f0","#cbd5e1","#94a3b8","#64748b","#475569","#334155","#1e293b","#0f172a"],eS=z.createTheme({primaryColor:"devdive",colors:{devdive:Z4,slate:$4},fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, monospace",defaultRadius:"md",components:{Button:{defaultProps:{radius:"lg"}},ActionIcon:{defaultProps:{radius:"lg"}},TextInput:{defaultProps:{radius:"lg"}},NumberInput:{defaultProps:{radius:"lg"}},Modal:{defaultProps:{radius:"xl"}}}}),tS={primary:"#5B6EF7",bgMain:"#f4f4f5",uiWhite:"#ffffff",borderLight:"#e4e4e7",textPrimary:"#1e293b",textSecondary:"#64748b",textMuted:"#94a3b8"},jy=t=>{let e;const n=new Set,s=(u,A)=>{const y=typeof u=="function"?u(e):u;if(!Object.is(y,e)){const x=e;e=A??(typeof y!="object"||y===null)?y:Object.assign({},e,y),n.forEach(S=>S(e,x))}},i=()=>e,h={setState:s,getState:i,getInitialState:()=>p,subscribe:u=>(n.add(u),()=>n.delete(u))},p=e=t(s,i,h);return h},nS=(t=>t?jy(t):jy),rS=t=>t;function aS(t,e=rS){const n=oe.useSyncExternalStore(t.subscribe,oe.useCallback(()=>e(t.getState()),[t,e]),oe.useCallback(()=>e(t.getInitialState()),[t,e]));return oe.useDebugValue(n),n}const Gy=t=>{const e=nS(t),n=s=>aS(e,s);return Object.assign(n,e),n},Z2=(t=>t?Gy(t):Gy);function iS(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var c;const d=p=>p===null?null:JSON.parse(p,void 0),h=(c=n.getItem(i))!=null?c:null;return h instanceof Promise?h.then(d):d(h)},setItem:(i,c)=>n.setItem(i,JSON.stringify(c,void 0)),removeItem:i=>n.removeItem(i)}}const dg=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return dg(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return dg(s)(n)}}}},sS=(t,e)=>(n,s,i)=>{let c={storage:iS(()=>localStorage),partialize:T=>T,version:0,merge:(T,D)=>({...D,...T}),...e},d=!1,h=0;const p=new Set,u=new Set;let A=c.storage;if(!A)return t((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),n(...T)},s,i);const y=()=>{const T=c.partialize({...s()});return A.setItem(c.name,{state:T,version:c.version})},x=i.setState;i.setState=(T,D)=>(x(T,D),y());const S=t((...T)=>(n(...T),y()),s,i);i.getInitialState=()=>S;let C;const R=()=>{var T,D;if(!A)return;const P=++h;d=!1,p.forEach(O=>{var I;return O((I=s())!=null?I:S)});const M=((D=c.onRehydrateStorage)==null?void 0:D.call(c,(T=s())!=null?T:S))||void 0;return dg(A.getItem.bind(A))(c.name).then(O=>{if(O)if(typeof O.version=="number"&&O.version!==c.version){if(c.migrate){const I=c.migrate(O.state,O.version);return I instanceof Promise?I.then(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("@mantine/core"),w=require("react/jsx-runtime"),oe=require("react"),J2=require("react-dom");function J4(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const _a=J4(oe),Z4=["#eef0ff","#dce0fc","#b5bdf5","#8b98ef","#6879ea","#5B6EF7","#4254e8","#3341d1","#2935bc","#1f29a7"],$4=["#f8fafc","#f1f5f9","#e2e8f0","#cbd5e1","#94a3b8","#64748b","#475569","#334155","#1e293b","#0f172a"],eS=z.createTheme({primaryColor:"devdive",colors:{devdive:Z4,slate:$4},fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, monospace",defaultRadius:"md",components:{Button:{defaultProps:{radius:"lg"}},ActionIcon:{defaultProps:{radius:"lg"}},TextInput:{defaultProps:{radius:"lg"}},NumberInput:{defaultProps:{radius:"lg"}},Modal:{defaultProps:{radius:"xl"}}}}),tS={primary:"#5B6EF7",bgMain:"#f4f4f5",uiWhite:"#ffffff",borderLight:"#e4e4e7",textPrimary:"#1e293b",textSecondary:"#64748b",textMuted:"#94a3b8"},jy=t=>{let e;const n=new Set,s=(u,A)=>{const y=typeof u=="function"?u(e):u;if(!Object.is(y,e)){const x=e;e=A??(typeof y!="object"||y===null)?y:Object.assign({},e,y),n.forEach(S=>S(e,x))}},i=()=>e,h={setState:s,getState:i,getInitialState:()=>p,subscribe:u=>(n.add(u),()=>n.delete(u))},p=e=t(s,i,h);return h},nS=(t=>t?jy(t):jy),rS=t=>t;function aS(t,e=rS){const n=oe.useSyncExternalStore(t.subscribe,oe.useCallback(()=>e(t.getState()),[t,e]),oe.useCallback(()=>e(t.getInitialState()),[t,e]));return oe.useDebugValue(n),n}const Gy=t=>{const e=nS(t),n=s=>aS(e,s);return Object.assign(n,e),n},Z2=(t=>t?Gy(t):Gy);function iS(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var c;const d=p=>p===null?null:JSON.parse(p,void 0),h=(c=n.getItem(i))!=null?c:null;return h instanceof Promise?h.then(d):d(h)},setItem:(i,c)=>n.setItem(i,JSON.stringify(c,void 0)),removeItem:i=>n.removeItem(i)}}const dg=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return dg(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return dg(s)(n)}}}},sS=(t,e)=>(n,s,i)=>{let c={storage:iS(()=>localStorage),partialize:T=>T,version:0,merge:(T,D)=>({...D,...T}),...e},d=!1,h=0;const p=new Set,u=new Set;let A=c.storage;if(!A)return t((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),n(...T)},s,i);const y=()=>{const T=c.partialize({...s()});return A.setItem(c.name,{state:T,version:c.version})},x=i.setState;i.setState=(T,D)=>(x(T,D),y());const S=t((...T)=>(n(...T),y()),s,i);i.getInitialState=()=>S;let C;const R=()=>{var T,D;if(!A)return;const P=++h;d=!1,p.forEach(O=>{var I;return O((I=s())!=null?I:S)});const M=((D=c.onRehydrateStorage)==null?void 0:D.call(c,(T=s())!=null?T:S))||void 0;return dg(A.getItem.bind(A))(c.name).then(O=>{if(O)if(typeof O.version=="number"&&O.version!==c.version){if(c.migrate){const I=c.migrate(O.state,O.version);return I instanceof Promise?I.then(Y=>[!0,Y]):[!0,I]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,O.state];return[!1,void 0]}).then(O=>{var I;if(P!==h)return;const[Y,K]=O;if(C=c.merge(K,(I=s())!=null?I:S),n(C,!0),Y)return y()}).then(()=>{P===h&&(M==null||M(C,void 0),C=s(),d=!0,u.forEach(O=>O(C)))}).catch(O=>{P===h&&(M==null||M(void 0,O))})};return i.persist={setOptions:T=>{c={...c,...T},T.storage&&(A=T.storage)},clearStorage:()=>{A==null||A.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>R(),hasHydrated:()=>d,onHydrate:T=>(p.add(T),()=>{p.delete(T)}),onFinishHydration:T=>(u.add(T),()=>{u.delete(T)})},c.skipHydration||R(),C||S},$2=sS,fi=()=>`${Date.now()}-${Math.random().toString(36).substring(2,9)}`,Ig=[{id:"title",name:"타이틀",icon:"title",createElements:t=>[{type:"text",x:40,y:220,width:880,height:100,rotation:0,content:"프레젠테이션 제목",fontSize:56,fontFamily:"Noto Sans KR",fill:t.text,align:"center",textStyle:"title",fontWeight:"800",lineHeight:1.1}]},{id:"title-subtitle",name:"타이틀 + 부제목",icon:"subtitles",createElements:t=>[{type:"text",x:40,y:190,width:880,height:100,rotation:0,content:"프레젠테이션 제목",fontSize:56,fontFamily:"Noto Sans KR",fill:t.text,align:"center",textStyle:"title",fontWeight:"800",lineHeight:1.1},{type:"text",x:40,y:300,width:880,height:50,rotation:0,content:"부제목 또는 발표자 이름",fontSize:24,fontFamily:"Noto Sans KR",fill:t.primary,align:"center",textStyle:"subtitle",fontWeight:"500",lineHeight:1.3}]},{id:"content",name:"콘텐츠",icon:"article",createElements:t=>[{type:"text",x:40,y:30,width:880,height:60,rotation:0,content:"섹션 제목",fontSize:36,fontFamily:"Noto Sans KR",fill:t.text,align:"left",textStyle:"subtitle",fontWeight:"700",lineHeight:1.2},{type:"text",x:40,y:100,width:880,height:400,rotation:0,content:`본문 내용을 입력하세요.
|
|
2
2
|
|
|
3
3
|
여러 줄의 텍스트를 작성할 수 있습니다.`,fontSize:20,fontFamily:"Noto Sans KR",fill:t.text,align:"left",textStyle:"body",fontWeight:"400",lineHeight:1.6}]},{id:"two-column",name:"2단 레이아웃",icon:"view_column",createElements:t=>[{type:"text",x:40,y:30,width:880,height:50,rotation:0,content:"섹션 제목",fontSize:32,fontFamily:"Noto Sans KR",fill:t.text,align:"left",textStyle:"subtitle",fontWeight:"700",lineHeight:1.2},{type:"text",x:40,y:100,width:420,height:400,rotation:0,content:`왼쪽 열 내용
|
|
4
4
|
|
|
@@ -36,18 +36,18 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
|
|
|
36
36
|
|
|
37
37
|
JSZip uses the library pako released under the MIT license :
|
|
38
38
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
39
|
-
*/var Xy;function cS(){return Xy||(Xy=1,(function(t,e){(function(n){t.exports=n()})(function(){return(function n(s,i,c){function d(u,A){if(!i[u]){if(!s[u]){var y=typeof Np=="function"&&Np;if(!A&&y)return y(u,!0);if(h)return h(u,!0);var x=new Error("Cannot find module '"+u+"'");throw x.code="MODULE_NOT_FOUND",x}var S=i[u]={exports:{}};s[u][0].call(S.exports,function(C){var R=s[u][1][C];return d(R||C)},S,S.exports,n,s,i,c)}return i[u].exports}for(var h=typeof Np=="function"&&Np,p=0;p<c.length;p++)d(c[p]);return d})({1:[function(n,s,i){var c=n("./utils"),d=n("./support"),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(p){for(var u,A,y,x,S,C,R,T=[],D=0,P=p.length,M=P,O=c.getTypeOf(p)!=="string";D<p.length;)M=P-D,y=O?(u=p[D++],A=D<P?p[D++]:0,D<P?p[D++]:0):(u=p.charCodeAt(D++),A=D<P?p.charCodeAt(D++):0,D<P?p.charCodeAt(D++):0),x=u>>2,S=(3&u)<<4|A>>4,C=1<M?(15&A)<<2|y>>6:64,R=2<M?63&y:64,T.push(h.charAt(x)+h.charAt(S)+h.charAt(C)+h.charAt(R));return T.join("")},i.decode=function(p){var u,A,y,x,S,C,R=0,T=0,D="data:";if(p.substr(0,D.length)===D)throw new Error("Invalid base64 input, it looks like a data url.");var P,M=3*(p=p.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(p.charAt(p.length-1)===h.charAt(64)&&M--,p.charAt(p.length-2)===h.charAt(64)&&M--,M%1!=0)throw new Error("Invalid base64 input, bad content length.");for(P=d.uint8array?new Uint8Array(0|M):new Array(0|M);R<p.length;)u=h.indexOf(p.charAt(R++))<<2|(x=h.indexOf(p.charAt(R++)))>>4,A=(15&x)<<4|(S=h.indexOf(p.charAt(R++)))>>2,y=(3&S)<<6|(C=h.indexOf(p.charAt(R++))),P[T++]=u,S!==64&&(P[T++]=A),C!==64&&(P[T++]=y);return P}},{"./support":30,"./utils":32}],2:[function(n,s,i){var c=n("./external"),d=n("./stream/DataWorker"),h=n("./stream/Crc32Probe"),p=n("./stream/DataLengthProbe");function u(A,y,x,S,C){this.compressedSize=A,this.uncompressedSize=y,this.crc32=x,this.compression=S,this.compressedContent=C}u.prototype={getContentWorker:function(){var A=new d(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new p("data_length")),y=this;return A.on("end",function(){if(this.streamInfo.data_length!==y.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),A},getCompressedWorker:function(){return new d(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(A,y,x){return A.pipe(new h).pipe(new p("uncompressedSize")).pipe(y.compressWorker(x)).pipe(new p("compressedSize")).withStreamInfo("compression",y)},s.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,s,i){var c=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,s,i){var c=n("./utils"),d=(function(){for(var h,p=[],u=0;u<256;u++){h=u;for(var A=0;A<8;A++)h=1&h?3988292384^h>>>1:h>>>1;p[u]=h}return p})();s.exports=function(h,p){return h!==void 0&&h.length?c.getTypeOf(h)!=="string"?(function(u,A,y,x){var S=d,C=x+y;u^=-1;for(var R=x;R<C;R++)u=u>>>8^S[255&(u^A[R])];return-1^u})(0|p,h,h.length,0):(function(u,A,y,x){var S=d,C=x+y;u^=-1;for(var R=x;R<C;R++)u=u>>>8^S[255&(u^A.charCodeAt(R))];return-1^u})(0|p,h,h.length,0):0}},{"./utils":32}],5:[function(n,s,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,s,i){var c=null;c=typeof Promise<"u"?Promise:n("lie"),s.exports={Promise:c}},{lie:37}],7:[function(n,s,i){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",d=n("pako"),h=n("./utils"),p=n("./stream/GenericWorker"),u=c?"uint8array":"array";function A(y,x){p.call(this,"FlateWorker/"+y),this._pako=null,this._pakoAction=y,this._pakoOptions=x,this.meta={}}i.magic="\b\0",h.inherits(A,p),A.prototype.processChunk=function(y){this.meta=y.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(u,y.data),!1)},A.prototype.flush=function(){p.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},A.prototype.cleanUp=function(){p.prototype.cleanUp.call(this),this._pako=null},A.prototype._createPako=function(){this._pako=new d[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var y=this;this._pako.onData=function(x){y.push({data:x,meta:y.meta})}},i.compressWorker=function(y){return new A("Deflate",y)},i.uncompressWorker=function(){return new A("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,s,i){function c(S,C){var R,T="";for(R=0;R<C;R++)T+=String.fromCharCode(255&S),S>>>=8;return T}function d(S,C,R,T,D,P){var M,O,I=S.file,
|
|
40
|
-
\0`,Re+=c(H,2),Re+=V.magic,Re+=c(M,2),Re+=c(O,2),Re+=c(ae.crc32,4),Re+=c(ae.compressedSize,4),Re+=c(ae.uncompressedSize,4),Re+=c(q.length,2),Re+=c(ne.length,2),{fileRecord:y.LOCAL_FILE_HEADER+Re+q+ne,dirRecord:y.CENTRAL_FILE_HEADER+c(Ee,2)+Re+c(he.length,2)+"\0\0\0\0"+c($,4)+c(T,4)+q+ne+he}}var h=n("../utils"),p=n("../stream/GenericWorker"),u=n("../utf8"),A=n("../crc32"),y=n("../signature");function x(S,C,R,T){p.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=C,this.zipPlatform=R,this.encodeFileName=T,this.streamFiles=S,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}h.inherits(x,p),x.prototype.push=function(S){var C=S.meta.percent||0,R=this.entriesCount,T=this._sources.length;this.accumulate?this.contentBuffer.push(S):(this.bytesWritten+=S.data.length,p.prototype.push.call(this,{data:S.data,meta:{currentFile:this.currentFile,percent:R?(C+100*(R-T-1))/R:100}}))},x.prototype.openedSource=function(S){this.currentSourceOffset=this.bytesWritten,this.currentFile=S.file.name;var C=this.streamFiles&&!S.file.dir;if(C){var R=d(S,C,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:R.fileRecord,meta:{percent:0}})}else this.accumulate=!0},x.prototype.closedSource=function(S){this.accumulate=!1;var C=this.streamFiles&&!S.file.dir,R=d(S,C,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(R.dirRecord),C)this.push({data:(function(T){return y.DATA_DESCRIPTOR+c(T.crc32,4)+c(T.compressedSize,4)+c(T.uncompressedSize,4)})(S),meta:{percent:100}});else for(this.push({data:R.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},x.prototype.flush=function(){for(var S=this.bytesWritten,C=0;C<this.dirRecords.length;C++)this.push({data:this.dirRecords[C],meta:{percent:100}});var R=this.bytesWritten-S,T=(function(D,P,M,O,I){var V=h.transformTo("string",I(O));return y.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(D,2)+c(D,2)+c(P,4)+c(M,4)+c(V.length,2)+V})(this.dirRecords.length,R,S,this.zipComment,this.encodeFileName);this.push({data:T,meta:{percent:100}})},x.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},x.prototype.registerPrevious=function(S){this._sources.push(S);var C=this;return S.on("data",function(R){C.processChunk(R)}),S.on("end",function(){C.closedSource(C.previous.streamInfo),C._sources.length?C.prepareNextSource():C.end()}),S.on("error",function(R){C.error(R)}),this},x.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},x.prototype.error=function(S){var C=this._sources;if(!p.prototype.error.call(this,S))return!1;for(var R=0;R<C.length;R++)try{C[R].error(S)}catch{}return!0},x.prototype.lock=function(){p.prototype.lock.call(this);for(var S=this._sources,C=0;C<S.length;C++)S[C].lock()},s.exports=x},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,s,i){var c=n("../compressions"),d=n("./ZipFileWorker");i.generateWorker=function(h,p,u){var A=new d(p.streamFiles,u,p.platform,p.encodeFileName),y=0;try{h.forEach(function(x,S){y++;var C=(function(P,M){var O=P||M,I=c[O];if(!I)throw new Error(O+" is not a valid compression method !");return I})(S.options.compression,p.compression),R=S.options.compressionOptions||p.compressionOptions||{},T=S.dir,D=S.date;S._compressWorker(C,R).withStreamInfo("file",{name:x,dir:T,date:D,comment:S.comment||"",unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions}).pipe(A)}),A.entriesCount=y}catch(x){A.error(x)}return A}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,s,i){function c(){if(!(this instanceof c))return new c;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var d=new c;for(var h in this)typeof this[h]!="function"&&(d[h]=this[h]);return d}}(c.prototype=n("./object")).loadAsync=n("./load"),c.support=n("./support"),c.defaults=n("./defaults"),c.version="3.10.1",c.loadAsync=function(d,h){return new c().loadAsync(d,h)},c.external=n("./external"),s.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,s,i){var c=n("./utils"),d=n("./external"),h=n("./utf8"),p=n("./zipEntries"),u=n("./stream/Crc32Probe"),A=n("./nodejsUtils");function y(x){return new d.Promise(function(S,C){var R=x.decompressed.getContentWorker().pipe(new u);R.on("error",function(T){C(T)}).on("end",function(){R.streamInfo.crc32!==x.decompressed.crc32?C(new Error("Corrupted zip : CRC32 mismatch")):S()}).resume()})}s.exports=function(x,S){var C=this;return S=c.extend(S||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:h.utf8decode}),A.isNode&&A.isStream(x)?d.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",x,!0,S.optimizedBinaryString,S.base64).then(function(R){var T=new p(S);return T.load(R),T}).then(function(R){var T=[d.Promise.resolve(R)],D=R.files;if(S.checkCRC32)for(var P=0;P<D.length;P++)T.push(y(D[P]));return d.Promise.all(T)}).then(function(R){for(var T=R.shift(),D=T.files,P=0;P<D.length;P++){var M=D[P],O=M.fileNameStr,I=c.resolve(M.fileNameStr);C.file(I,M.decompressed,{binary:!0,optimizedBinaryString:!0,date:M.date,dir:M.dir,comment:M.fileCommentStr.length?M.fileCommentStr:null,unixPermissions:M.unixPermissions,dosPermissions:M.dosPermissions,createFolders:S.createFolders}),M.dir||(C.file(I).unsafeOriginalName=O)}return T.zipComment.length&&(C.comment=T.zipComment),C})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,s,i){var c=n("../utils"),d=n("../stream/GenericWorker");function h(p,u){d.call(this,"Nodejs stream input adapter for "+p),this._upstreamEnded=!1,this._bindStream(u)}c.inherits(h,d),h.prototype._bindStream=function(p){var u=this;(this._stream=p).pause(),p.on("data",function(A){u.push({data:A,meta:{percent:0}})}).on("error",function(A){u.isPaused?this.generatedError=A:u.error(A)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},h.prototype.pause=function(){return!!d.prototype.pause.call(this)&&(this._stream.pause(),!0)},h.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},s.exports=h},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,s,i){var c=n("readable-stream").Readable;function d(h,p,u){c.call(this,p),this._helper=h;var A=this;h.on("data",function(y,x){A.push(y)||A._helper.pause(),u&&u(x)}).on("error",function(y){A.emit("error",y)}).on("end",function(){A.push(null)})}n("../utils").inherits(d,c),d.prototype._read=function(){this._helper.resume()},s.exports=d},{"../utils":32,"readable-stream":16}],14:[function(n,s,i){s.exports={isNode:typeof Buffer<"u",newBufferFrom:function(c,d){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(c,d);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new Buffer(c,d)},allocBuffer:function(c){if(Buffer.alloc)return Buffer.alloc(c);var d=new Buffer(c);return d.fill(0),d},isBuffer:function(c){return Buffer.isBuffer(c)},isStream:function(c){return c&&typeof c.on=="function"&&typeof c.pause=="function"&&typeof c.resume=="function"}}},{}],15:[function(n,s,i){function c(I,V,K){var q,Y=h.getTypeOf(V),X=h.extend(K||{},A);X.date=X.date||new Date,X.compression!==null&&(X.compression=X.compression.toUpperCase()),typeof X.unixPermissions=="string"&&(X.unixPermissions=parseInt(X.unixPermissions,8)),X.unixPermissions&&16384&X.unixPermissions&&(X.dir=!0),X.dosPermissions&&16&X.dosPermissions&&(X.dir=!0),X.dir&&(I=D(I)),X.createFolders&&(q=T(I))&&P.call(this,q,!0);var he=Y==="string"&&X.binary===!1&&X.base64===!1;K&&K.binary!==void 0||(X.binary=!he),(V instanceof y&&V.uncompressedSize===0||X.dir||!V||V.length===0)&&(X.base64=!1,X.binary=!0,V="",X.compression="STORE",Y="string");var G=null;G=V instanceof y||V instanceof p?V:C.isNode&&C.isStream(V)?new R(I,V):h.prepareContent(I,V,X.binary,X.optimizedBinaryString,X.base64);var te=new x(I,G,X);this.files[I]=te}var d=n("./utf8"),h=n("./utils"),p=n("./stream/GenericWorker"),u=n("./stream/StreamHelper"),A=n("./defaults"),y=n("./compressedObject"),x=n("./zipObject"),S=n("./generate"),C=n("./nodejsUtils"),R=n("./nodejs/NodejsStreamInputAdapter"),T=function(I){I.slice(-1)==="/"&&(I=I.substring(0,I.length-1));var V=I.lastIndexOf("/");return 0<V?I.substring(0,V):""},D=function(I){return I.slice(-1)!=="/"&&(I+="/"),I},P=function(I,V){return V=V!==void 0?V:A.createFolders,I=D(I),this.files[I]||c.call(this,I,null,{dir:!0,createFolders:V}),this.files[I]};function M(I){return Object.prototype.toString.call(I)==="[object RegExp]"}var O={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(I){var V,K,q;for(V in this.files)q=this.files[V],(K=V.slice(this.root.length,V.length))&&V.slice(0,this.root.length)===this.root&&I(K,q)},filter:function(I){var V=[];return this.forEach(function(K,q){I(K,q)&&V.push(q)}),V},file:function(I,V,K){if(arguments.length!==1)return I=this.root+I,c.call(this,I,V,K),this;if(M(I)){var q=I;return this.filter(function(X,he){return!he.dir&&q.test(X)})}var Y=this.files[this.root+I];return Y&&!Y.dir?Y:null},folder:function(I){if(!I)return this;if(M(I))return this.filter(function(Y,X){return X.dir&&I.test(Y)});var V=this.root+I,K=P.call(this,V),q=this.clone();return q.root=K.name,q},remove:function(I){I=this.root+I;var V=this.files[I];if(V||(I.slice(-1)!=="/"&&(I+="/"),V=this.files[I]),V&&!V.dir)delete this.files[I];else for(var K=this.filter(function(Y,X){return X.name.slice(0,I.length)===I}),q=0;q<K.length;q++)delete this.files[K[q].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(I){var V,K={};try{if((K=h.extend(I||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:d.utf8encode})).type=K.type.toLowerCase(),K.compression=K.compression.toUpperCase(),K.type==="binarystring"&&(K.type="string"),!K.type)throw new Error("No output type specified.");h.checkSupport(K.type),K.platform!=="darwin"&&K.platform!=="freebsd"&&K.platform!=="linux"&&K.platform!=="sunos"||(K.platform="UNIX"),K.platform==="win32"&&(K.platform="DOS");var q=K.comment||this.comment||"";V=S.generateWorker(this,K,q)}catch(Y){(V=new p("error")).error(Y)}return new u(V,K.type||"string",K.mimeType)},generateAsync:function(I,V){return this.generateInternalStream(I).accumulate(V)},generateNodeStream:function(I,V){return(I=I||{}).type||(I.type="nodebuffer"),this.generateInternalStream(I).toNodejsStream(V)}};s.exports=O},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,s,i){s.exports=n("stream")},{stream:void 0}],17:[function(n,s,i){var c=n("./DataReader");function d(h){c.call(this,h);for(var p=0;p<this.data.length;p++)h[p]=255&h[p]}n("../utils").inherits(d,c),d.prototype.byteAt=function(h){return this.data[this.zero+h]},d.prototype.lastIndexOfSignature=function(h){for(var p=h.charCodeAt(0),u=h.charCodeAt(1),A=h.charCodeAt(2),y=h.charCodeAt(3),x=this.length-4;0<=x;--x)if(this.data[x]===p&&this.data[x+1]===u&&this.data[x+2]===A&&this.data[x+3]===y)return x-this.zero;return-1},d.prototype.readAndCheckSignature=function(h){var p=h.charCodeAt(0),u=h.charCodeAt(1),A=h.charCodeAt(2),y=h.charCodeAt(3),x=this.readData(4);return p===x[0]&&u===x[1]&&A===x[2]&&y===x[3]},d.prototype.readData=function(h){if(this.checkOffset(h),h===0)return[];var p=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,p},s.exports=d},{"../utils":32,"./DataReader":18}],18:[function(n,s,i){var c=n("../utils");function d(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}d.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length<this.zero+h||h<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+h+"). Corrupted zip ?")},setIndex:function(h){this.checkIndex(h),this.index=h},skip:function(h){this.setIndex(this.index+h)},byteAt:function(){},readInt:function(h){var p,u=0;for(this.checkOffset(h),p=this.index+h-1;p>=this.index;p--)u=(u<<8)+this.byteAt(p);return this.index+=h,u},readString:function(h){return c.transformTo("string",this.readData(h))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC(1980+(h>>25&127),(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(31&h)<<1))}},s.exports=d},{"../utils":32}],19:[function(n,s,i){var c=n("./Uint8ArrayReader");function d(h){c.call(this,h)}n("../utils").inherits(d,c),d.prototype.readData=function(h){this.checkOffset(h);var p=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,p},s.exports=d},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,s,i){var c=n("./DataReader");function d(h){c.call(this,h)}n("../utils").inherits(d,c),d.prototype.byteAt=function(h){return this.data.charCodeAt(this.zero+h)},d.prototype.lastIndexOfSignature=function(h){return this.data.lastIndexOf(h)-this.zero},d.prototype.readAndCheckSignature=function(h){return h===this.readData(4)},d.prototype.readData=function(h){this.checkOffset(h);var p=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,p},s.exports=d},{"../utils":32,"./DataReader":18}],21:[function(n,s,i){var c=n("./ArrayReader");function d(h){c.call(this,h)}n("../utils").inherits(d,c),d.prototype.readData=function(h){if(this.checkOffset(h),h===0)return new Uint8Array(0);var p=this.data.subarray(this.zero+this.index,this.zero+this.index+h);return this.index+=h,p},s.exports=d},{"../utils":32,"./ArrayReader":17}],22:[function(n,s,i){var c=n("../utils"),d=n("../support"),h=n("./ArrayReader"),p=n("./StringReader"),u=n("./NodeBufferReader"),A=n("./Uint8ArrayReader");s.exports=function(y){var x=c.getTypeOf(y);return c.checkSupport(x),x!=="string"||d.uint8array?x==="nodebuffer"?new u(y):d.uint8array?new A(c.transformTo("uint8array",y)):new h(c.transformTo("array",y)):new p(y)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,s,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,s,i){var c=n("./GenericWorker"),d=n("../utils");function h(p){c.call(this,"ConvertWorker to "+p),this.destType=p}d.inherits(h,c),h.prototype.processChunk=function(p){this.push({data:d.transformTo(this.destType,p.data),meta:p.meta})},s.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(n,s,i){var c=n("./GenericWorker"),d=n("../crc32");function h(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(h,c),h.prototype.processChunk=function(p){this.streamInfo.crc32=d(p.data,this.streamInfo.crc32||0),this.push(p)},s.exports=h},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,s,i){var c=n("../utils"),d=n("./GenericWorker");function h(p){d.call(this,"DataLengthProbe for "+p),this.propName=p,this.withStreamInfo(p,0)}c.inherits(h,d),h.prototype.processChunk=function(p){if(p){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+p.data.length}d.prototype.processChunk.call(this,p)},s.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(n,s,i){var c=n("../utils"),d=n("./GenericWorker");function h(p){d.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,p.then(function(A){u.dataIsReady=!0,u.data=A,u.max=A&&A.length||0,u.type=c.getTypeOf(A),u.isPaused||u._tickAndRepeat()},function(A){u.error(A)})}c.inherits(h,d),h.prototype.cleanUp=function(){d.prototype.cleanUp.call(this),this.data=null},h.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},h.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},h.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var p=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":p=this.data.substring(this.index,u);break;case"uint8array":p=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":p=this.data.slice(this.index,u)}return this.index=u,this.push({data:p,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=h},{"../utils":32,"./GenericWorker":28}],28:[function(n,s,i){function c(d){this.name=d||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}c.prototype={push:function(d){this.emit("data",d)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(d){this.emit("error",d)}return!0},error:function(d){return!this.isFinished&&(this.isPaused?this.generatedError=d:(this.isFinished=!0,this.emit("error",d),this.previous&&this.previous.error(d),this.cleanUp()),!0)},on:function(d,h){return this._listeners[d].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(d,h){if(this._listeners[d])for(var p=0;p<this._listeners[d].length;p++)this._listeners[d][p].call(this,h)},pipe:function(d){return d.registerPrevious(this)},registerPrevious:function(d){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=d.streamInfo,this.mergeStreamInfo(),this.previous=d;var h=this;return d.on("data",function(p){h.processChunk(p)}),d.on("end",function(){h.end()}),d.on("error",function(p){h.error(p)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var d=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),d=!0),this.previous&&this.previous.resume(),!d},flush:function(){},processChunk:function(d){this.push(d)},withStreamInfo:function(d,h){return this.extraStreamInfo[d]=h,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var d in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,d)&&(this.streamInfo[d]=this.extraStreamInfo[d])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var d="Worker "+this.name;return this.previous?this.previous+" -> "+d:d}},s.exports=c},{}],29:[function(n,s,i){var c=n("../utils"),d=n("./ConvertWorker"),h=n("./GenericWorker"),p=n("../base64"),u=n("../support"),A=n("../external"),y=null;if(u.nodestream)try{y=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function x(C,R){return new A.Promise(function(T,D){var P=[],M=C._internalType,O=C._outputType,I=C._mimeType;C.on("data",function(V,K){P.push(V),R&&R(K)}).on("error",function(V){P=[],D(V)}).on("end",function(){try{var V=(function(K,q,Y){switch(K){case"blob":return c.newBlob(c.transformTo("arraybuffer",q),Y);case"base64":return p.encode(q);default:return c.transformTo(K,q)}})(O,(function(K,q){var Y,X=0,he=null,G=0;for(Y=0;Y<q.length;Y++)G+=q[Y].length;switch(K){case"string":return q.join("");case"array":return Array.prototype.concat.apply([],q);case"uint8array":for(he=new Uint8Array(G),Y=0;Y<q.length;Y++)he.set(q[Y],X),X+=q[Y].length;return he;case"nodebuffer":return Buffer.concat(q);default:throw new Error("concat : unsupported type '"+K+"'")}})(M,P),I);T(V)}catch(K){D(K)}P=[]}).resume()})}function S(C,R,T){var D=R;switch(R){case"blob":case"arraybuffer":D="uint8array";break;case"base64":D="string"}try{this._internalType=D,this._outputType=R,this._mimeType=T,c.checkSupport(D),this._worker=C.pipe(new d(D)),C.lock()}catch(P){this._worker=new h("error"),this._worker.error(P)}}S.prototype={accumulate:function(C){return x(this,C)},on:function(C,R){var T=this;return C==="data"?this._worker.on(C,function(D){R.call(T,D.data,D.meta)}):this._worker.on(C,function(){c.delay(R,arguments,T)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(C){if(c.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new y(this,{objectMode:this._outputType!=="nodebuffer"},C)}},s.exports=S},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,s,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var c=new ArrayBuffer(0);try{i.blob=new Blob([c],{type:"application/zip"}).size===0}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);d.append(c),i.blob=d.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,s,i){for(var c=n("./utils"),d=n("./support"),h=n("./nodejsUtils"),p=n("./stream/GenericWorker"),u=new Array(256),A=0;A<256;A++)u[A]=252<=A?6:248<=A?5:240<=A?4:224<=A?3:192<=A?2:1;u[254]=u[254]=1;function y(){p.call(this,"utf-8 decode"),this.leftOver=null}function x(){p.call(this,"utf-8 encode")}i.utf8encode=function(S){return d.nodebuffer?h.newBufferFrom(S,"utf-8"):(function(C){var R,T,D,P,M,O=C.length,I=0;for(P=0;P<O;P++)(64512&(T=C.charCodeAt(P)))==55296&&P+1<O&&(64512&(D=C.charCodeAt(P+1)))==56320&&(T=65536+(T-55296<<10)+(D-56320),P++),I+=T<128?1:T<2048?2:T<65536?3:4;for(R=d.uint8array?new Uint8Array(I):new Array(I),P=M=0;M<I;P++)(64512&(T=C.charCodeAt(P)))==55296&&P+1<O&&(64512&(D=C.charCodeAt(P+1)))==56320&&(T=65536+(T-55296<<10)+(D-56320),P++),T<128?R[M++]=T:(T<2048?R[M++]=192|T>>>6:(T<65536?R[M++]=224|T>>>12:(R[M++]=240|T>>>18,R[M++]=128|T>>>12&63),R[M++]=128|T>>>6&63),R[M++]=128|63&T);return R})(S)},i.utf8decode=function(S){return d.nodebuffer?c.transformTo("nodebuffer",S).toString("utf-8"):(function(C){var R,T,D,P,M=C.length,O=new Array(2*M);for(R=T=0;R<M;)if((D=C[R++])<128)O[T++]=D;else if(4<(P=u[D]))O[T++]=65533,R+=P-1;else{for(D&=P===2?31:P===3?15:7;1<P&&R<M;)D=D<<6|63&C[R++],P--;1<P?O[T++]=65533:D<65536?O[T++]=D:(D-=65536,O[T++]=55296|D>>10&1023,O[T++]=56320|1023&D)}return O.length!==T&&(O.subarray?O=O.subarray(0,T):O.length=T),c.applyFromCharCode(O)})(S=c.transformTo(d.uint8array?"uint8array":"array",S))},c.inherits(y,p),y.prototype.processChunk=function(S){var C=c.transformTo(d.uint8array?"uint8array":"array",S.data);if(this.leftOver&&this.leftOver.length){if(d.uint8array){var R=C;(C=new Uint8Array(R.length+this.leftOver.length)).set(this.leftOver,0),C.set(R,this.leftOver.length)}else C=this.leftOver.concat(C);this.leftOver=null}var T=(function(P,M){var O;for((M=M||P.length)>P.length&&(M=P.length),O=M-1;0<=O&&(192&P[O])==128;)O--;return O<0||O===0?M:O+u[P[O]]>M?O:M})(C),D=C;T!==C.length&&(d.uint8array?(D=C.subarray(0,T),this.leftOver=C.subarray(T,C.length)):(D=C.slice(0,T),this.leftOver=C.slice(T,C.length))),this.push({data:i.utf8decode(D),meta:S.meta})},y.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=y,c.inherits(x,p),x.prototype.processChunk=function(S){this.push({data:i.utf8encode(S.data),meta:S.meta})},i.Utf8EncodeWorker=x},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,s,i){var c=n("./support"),d=n("./base64"),h=n("./nodejsUtils"),p=n("./external");function u(R){return R}function A(R,T){for(var D=0;D<R.length;++D)T[D]=255&R.charCodeAt(D);return T}n("setimmediate"),i.newBlob=function(R,T){i.checkSupport("blob");try{return new Blob([R],{type:T})}catch{try{var D=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return D.append(R),D.getBlob(T)}catch{throw new Error("Bug : can't construct the Blob.")}}};var y={stringifyByChunk:function(R,T,D){var P=[],M=0,O=R.length;if(O<=D)return String.fromCharCode.apply(null,R);for(;M<O;)T==="array"||T==="nodebuffer"?P.push(String.fromCharCode.apply(null,R.slice(M,Math.min(M+D,O)))):P.push(String.fromCharCode.apply(null,R.subarray(M,Math.min(M+D,O)))),M+=D;return P.join("")},stringifyByChar:function(R){for(var T="",D=0;D<R.length;D++)T+=String.fromCharCode(R[D]);return T},applyCanBeUsed:{uint8array:(function(){try{return c.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return c.nodebuffer&&String.fromCharCode.apply(null,h.allocBuffer(1)).length===1}catch{return!1}})()}};function x(R){var T=65536,D=i.getTypeOf(R),P=!0;if(D==="uint8array"?P=y.applyCanBeUsed.uint8array:D==="nodebuffer"&&(P=y.applyCanBeUsed.nodebuffer),P)for(;1<T;)try{return y.stringifyByChunk(R,D,T)}catch{T=Math.floor(T/2)}return y.stringifyByChar(R)}function S(R,T){for(var D=0;D<R.length;D++)T[D]=R[D];return T}i.applyFromCharCode=x;var C={};C.string={string:u,array:function(R){return A(R,new Array(R.length))},arraybuffer:function(R){return C.string.uint8array(R).buffer},uint8array:function(R){return A(R,new Uint8Array(R.length))},nodebuffer:function(R){return A(R,h.allocBuffer(R.length))}},C.array={string:x,array:u,arraybuffer:function(R){return new Uint8Array(R).buffer},uint8array:function(R){return new Uint8Array(R)},nodebuffer:function(R){return h.newBufferFrom(R)}},C.arraybuffer={string:function(R){return x(new Uint8Array(R))},array:function(R){return S(new Uint8Array(R),new Array(R.byteLength))},arraybuffer:u,uint8array:function(R){return new Uint8Array(R)},nodebuffer:function(R){return h.newBufferFrom(new Uint8Array(R))}},C.uint8array={string:x,array:function(R){return S(R,new Array(R.length))},arraybuffer:function(R){return R.buffer},uint8array:u,nodebuffer:function(R){return h.newBufferFrom(R)}},C.nodebuffer={string:x,array:function(R){return S(R,new Array(R.length))},arraybuffer:function(R){return C.nodebuffer.uint8array(R).buffer},uint8array:function(R){return S(R,new Uint8Array(R.length))},nodebuffer:u},i.transformTo=function(R,T){if(T=T||"",!R)return T;i.checkSupport(R);var D=i.getTypeOf(T);return C[D][R](T)},i.resolve=function(R){for(var T=R.split("/"),D=[],P=0;P<T.length;P++){var M=T[P];M==="."||M===""&&P!==0&&P!==T.length-1||(M===".."?D.pop():D.push(M))}return D.join("/")},i.getTypeOf=function(R){return typeof R=="string"?"string":Object.prototype.toString.call(R)==="[object Array]"?"array":c.nodebuffer&&h.isBuffer(R)?"nodebuffer":c.uint8array&&R instanceof Uint8Array?"uint8array":c.arraybuffer&&R instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(R){if(!c[R.toLowerCase()])throw new Error(R+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(R){var T,D,P="";for(D=0;D<(R||"").length;D++)P+="\\x"+((T=R.charCodeAt(D))<16?"0":"")+T.toString(16).toUpperCase();return P},i.delay=function(R,T,D){setImmediate(function(){R.apply(D||null,T||[])})},i.inherits=function(R,T){function D(){}D.prototype=T.prototype,R.prototype=new D},i.extend=function(){var R,T,D={};for(R=0;R<arguments.length;R++)for(T in arguments[R])Object.prototype.hasOwnProperty.call(arguments[R],T)&&D[T]===void 0&&(D[T]=arguments[R][T]);return D},i.prepareContent=function(R,T,D,P,M){return p.Promise.resolve(T).then(function(O){return c.blob&&(O instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(O))!==-1)&&typeof FileReader<"u"?new p.Promise(function(I,V){var K=new FileReader;K.onload=function(q){I(q.target.result)},K.onerror=function(q){V(q.target.error)},K.readAsArrayBuffer(O)}):O}).then(function(O){var I=i.getTypeOf(O);return I?(I==="arraybuffer"?O=i.transformTo("uint8array",O):I==="string"&&(M?O=d.decode(O):D&&P!==!0&&(O=(function(V){return A(V,c.uint8array?new Uint8Array(V.length):new Array(V.length))})(O))),O):p.Promise.reject(new Error("Can't read the data of '"+R+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,s,i){var c=n("./reader/readerFor"),d=n("./utils"),h=n("./signature"),p=n("./zipEntry"),u=n("./support");function A(y){this.files=[],this.loadOptions=y}A.prototype={checkSignature:function(y){if(!this.reader.readAndCheckSignature(y)){this.reader.index-=4;var x=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+d.pretty(x)+", expected "+d.pretty(y)+")")}},isSignature:function(y,x){var S=this.reader.index;this.reader.setIndex(y);var C=this.reader.readString(4)===x;return this.reader.setIndex(S),C},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var y=this.reader.readData(this.zipCommentLength),x=u.uint8array?"uint8array":"array",S=d.transformTo(x,y);this.zipComment=this.loadOptions.decodeFileName(S)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var y,x,S,C=this.zip64EndOfCentralSize-44;0<C;)y=this.reader.readInt(2),x=this.reader.readInt(4),S=this.reader.readData(x),this.zip64ExtensibleData[y]={id:y,length:x,value:S}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var y,x;for(y=0;y<this.files.length;y++)x=this.files[y],this.reader.setIndex(x.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),x.readLocalPart(this.reader),x.handleUTF8(),x.processAttributes()},readCentralDir:function(){var y;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(h.CENTRAL_FILE_HEADER);)(y=new p({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(y);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var y=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(y<0)throw this.isSignature(0,h.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(y);var x=y;if(this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===d.MAX_VALUE_16BITS||this.diskWithCentralDirStart===d.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===d.MAX_VALUE_16BITS||this.centralDirRecords===d.MAX_VALUE_16BITS||this.centralDirSize===d.MAX_VALUE_32BITS||this.centralDirOffset===d.MAX_VALUE_32BITS){if(this.zip64=!0,(y=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(y),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,h.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var S=this.centralDirOffset+this.centralDirSize;this.zip64&&(S+=20,S+=12+this.zip64EndOfCentralSize);var C=x-S;if(0<C)this.isSignature(x,h.CENTRAL_FILE_HEADER)||(this.reader.zero=C);else if(C<0)throw new Error("Corrupted zip: missing "+Math.abs(C)+" bytes.")},prepareReader:function(y){this.reader=c(y)},load:function(y){this.prepareReader(y),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},s.exports=A},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,s,i){var c=n("./reader/readerFor"),d=n("./utils"),h=n("./compressedObject"),p=n("./crc32"),u=n("./utf8"),A=n("./compressions"),y=n("./support");function x(S,C){this.options=S,this.loadOptions=C}x.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(S){var C,R;if(S.skip(22),this.fileNameLength=S.readInt(2),R=S.readInt(2),this.fileName=S.readData(this.fileNameLength),S.skip(R),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((C=(function(T){for(var D in A)if(Object.prototype.hasOwnProperty.call(A,D)&&A[D].magic===T)return A[D];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+d.pretty(this.compressionMethod)+" unknown (inner file : "+d.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,C,S.readData(this.compressedSize))},readCentralPart:function(S){this.versionMadeBy=S.readInt(2),S.skip(2),this.bitFlag=S.readInt(2),this.compressionMethod=S.readString(2),this.date=S.readDate(),this.crc32=S.readInt(4),this.compressedSize=S.readInt(4),this.uncompressedSize=S.readInt(4);var C=S.readInt(2);if(this.extraFieldsLength=S.readInt(2),this.fileCommentLength=S.readInt(2),this.diskNumberStart=S.readInt(2),this.internalFileAttributes=S.readInt(2),this.externalFileAttributes=S.readInt(4),this.localHeaderOffset=S.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");S.skip(C),this.readExtraFields(S),this.parseZIP64ExtraField(S),this.fileComment=S.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var S=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),S==0&&(this.dosPermissions=63&this.externalFileAttributes),S==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var S=c(this.extraFields[1].value);this.uncompressedSize===d.MAX_VALUE_32BITS&&(this.uncompressedSize=S.readInt(8)),this.compressedSize===d.MAX_VALUE_32BITS&&(this.compressedSize=S.readInt(8)),this.localHeaderOffset===d.MAX_VALUE_32BITS&&(this.localHeaderOffset=S.readInt(8)),this.diskNumberStart===d.MAX_VALUE_32BITS&&(this.diskNumberStart=S.readInt(4))}},readExtraFields:function(S){var C,R,T,D=S.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});S.index+4<D;)C=S.readInt(2),R=S.readInt(2),T=S.readData(R),this.extraFields[C]={id:C,length:R,value:T};S.setIndex(D)},handleUTF8:function(){var S=y.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var C=this.findExtraFieldUnicodePath();if(C!==null)this.fileNameStr=C;else{var R=d.transformTo(S,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(R)}var T=this.findExtraFieldUnicodeComment();if(T!==null)this.fileCommentStr=T;else{var D=d.transformTo(S,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(D)}}},findExtraFieldUnicodePath:function(){var S=this.extraFields[28789];if(S){var C=c(S.value);return C.readInt(1)!==1||p(this.fileName)!==C.readInt(4)?null:u.utf8decode(C.readData(S.length-5))}return null},findExtraFieldUnicodeComment:function(){var S=this.extraFields[25461];if(S){var C=c(S.value);return C.readInt(1)!==1||p(this.fileComment)!==C.readInt(4)?null:u.utf8decode(C.readData(S.length-5))}return null}},s.exports=x},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,s,i){function c(C,R,T){this.name=C,this.dir=T.dir,this.date=T.date,this.comment=T.comment,this.unixPermissions=T.unixPermissions,this.dosPermissions=T.dosPermissions,this._data=R,this._dataBinary=T.binary,this.options={compression:T.compression,compressionOptions:T.compressionOptions}}var d=n("./stream/StreamHelper"),h=n("./stream/DataWorker"),p=n("./utf8"),u=n("./compressedObject"),A=n("./stream/GenericWorker");c.prototype={internalStream:function(C){var R=null,T="string";try{if(!C)throw new Error("No output type specified.");var D=(T=C.toLowerCase())==="string"||T==="text";T!=="binarystring"&&T!=="text"||(T="string"),R=this._decompressWorker();var P=!this._dataBinary;P&&!D&&(R=R.pipe(new p.Utf8EncodeWorker)),!P&&D&&(R=R.pipe(new p.Utf8DecodeWorker))}catch(M){(R=new A("error")).error(M)}return new d(R,T,"")},async:function(C,R){return this.internalStream(C).accumulate(R)},nodeStream:function(C,R){return this.internalStream(C||"nodebuffer").toNodejsStream(R)},_compressWorker:function(C,R){if(this._data instanceof u&&this._data.compression.magic===C.magic)return this._data.getCompressedWorker();var T=this._decompressWorker();return this._dataBinary||(T=T.pipe(new p.Utf8EncodeWorker)),u.createWorkerFrom(T,C,R)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof A?this._data:new h(this._data)}};for(var y=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],x=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},S=0;S<y.length;S++)c.prototype[y[S]]=x;s.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,s,i){(function(c){var d,h,p=c.MutationObserver||c.WebKitMutationObserver;if(p){var u=0,A=new p(C),y=c.document.createTextNode("");A.observe(y,{characterData:!0}),d=function(){y.data=u=++u%2}}else if(c.setImmediate||c.MessageChannel===void 0)d="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var R=c.document.createElement("script");R.onreadystatechange=function(){C(),R.onreadystatechange=null,R.parentNode.removeChild(R),R=null},c.document.documentElement.appendChild(R)}:function(){setTimeout(C,0)};else{var x=new c.MessageChannel;x.port1.onmessage=C,d=function(){x.port2.postMessage(0)}}var S=[];function C(){var R,T;h=!0;for(var D=S.length;D;){for(T=S,S=[],R=-1;++R<D;)T[R]();D=S.length}h=!1}s.exports=function(R){S.push(R)!==1||h||d()}}).call(this,typeof kp<"u"?kp:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,s,i){var c=n("immediate");function d(){}var h={},p=["REJECTED"],u=["FULFILLED"],A=["PENDING"];function y(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=A,this.queue=[],this.outcome=void 0,D!==d&&R(this,D)}function x(D,P,M){this.promise=D,typeof P=="function"&&(this.onFulfilled=P,this.callFulfilled=this.otherCallFulfilled),typeof M=="function"&&(this.onRejected=M,this.callRejected=this.otherCallRejected)}function S(D,P,M){c(function(){var O;try{O=P(M)}catch(I){return h.reject(D,I)}O===D?h.reject(D,new TypeError("Cannot resolve promise with itself")):h.resolve(D,O)})}function C(D){var P=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof P=="function")return function(){P.apply(D,arguments)}}function R(D,P){var M=!1;function O(K){M||(M=!0,h.reject(D,K))}function I(K){M||(M=!0,h.resolve(D,K))}var V=T(function(){P(I,O)});V.status==="error"&&O(V.value)}function T(D,P){var M={};try{M.value=D(P),M.status="success"}catch(O){M.status="error",M.value=O}return M}(s.exports=y).prototype.finally=function(D){if(typeof D!="function")return this;var P=this.constructor;return this.then(function(M){return P.resolve(D()).then(function(){return M})},function(M){return P.resolve(D()).then(function(){throw M})})},y.prototype.catch=function(D){return this.then(null,D)},y.prototype.then=function(D,P){if(typeof D!="function"&&this.state===u||typeof P!="function"&&this.state===p)return this;var M=new this.constructor(d);return this.state!==A?S(M,this.state===u?D:P,this.outcome):this.queue.push(new x(M,D,P)),M},x.prototype.callFulfilled=function(D){h.resolve(this.promise,D)},x.prototype.otherCallFulfilled=function(D){S(this.promise,this.onFulfilled,D)},x.prototype.callRejected=function(D){h.reject(this.promise,D)},x.prototype.otherCallRejected=function(D){S(this.promise,this.onRejected,D)},h.resolve=function(D,P){var M=T(C,P);if(M.status==="error")return h.reject(D,M.value);var O=M.value;if(O)R(D,O);else{D.state=u,D.outcome=P;for(var I=-1,V=D.queue.length;++I<V;)D.queue[I].callFulfilled(P)}return D},h.reject=function(D,P){D.state=p,D.outcome=P;for(var M=-1,O=D.queue.length;++M<O;)D.queue[M].callRejected(P);return D},y.resolve=function(D){return D instanceof this?D:h.resolve(new this(d),D)},y.reject=function(D){var P=new this(d);return h.reject(P,D)},y.all=function(D){var P=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=D.length,O=!1;if(!M)return this.resolve([]);for(var I=new Array(M),V=0,K=-1,q=new this(d);++K<M;)Y(D[K],K);return q;function Y(X,he){P.resolve(X).then(function(G){I[he]=G,++V!==M||O||(O=!0,h.resolve(q,I))},function(G){O||(O=!0,h.reject(q,G))})}},y.race=function(D){var P=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=D.length,O=!1;if(!M)return this.resolve([]);for(var I=-1,V=new this(d);++I<M;)K=D[I],P.resolve(K).then(function(q){O||(O=!0,h.resolve(V,q))},function(q){O||(O=!0,h.reject(V,q))});var K;return V}},{immediate:36}],38:[function(n,s,i){var c={};(0,n("./lib/utils/common").assign)(c,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),s.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,s,i){var c=n("./zlib/deflate"),d=n("./utils/common"),h=n("./utils/strings"),p=n("./zlib/messages"),u=n("./zlib/zstream"),A=Object.prototype.toString,y=0,x=-1,S=0,C=8;function R(D){if(!(this instanceof R))return new R(D);this.options=d.assign({level:x,method:C,chunkSize:16384,windowBits:15,memLevel:8,strategy:S,to:""},D||{});var P=this.options;P.raw&&0<P.windowBits?P.windowBits=-P.windowBits:P.gzip&&0<P.windowBits&&P.windowBits<16&&(P.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var M=c.deflateInit2(this.strm,P.level,P.method,P.windowBits,P.memLevel,P.strategy);if(M!==y)throw new Error(p[M]);if(P.header&&c.deflateSetHeader(this.strm,P.header),P.dictionary){var O;if(O=typeof P.dictionary=="string"?h.string2buf(P.dictionary):A.call(P.dictionary)==="[object ArrayBuffer]"?new Uint8Array(P.dictionary):P.dictionary,(M=c.deflateSetDictionary(this.strm,O))!==y)throw new Error(p[M]);this._dict_set=!0}}function T(D,P){var M=new R(P);if(M.push(D,!0),M.err)throw M.msg||p[M.err];return M.result}R.prototype.push=function(D,P){var M,O,I=this.strm,V=this.options.chunkSize;if(this.ended)return!1;O=P===~~P?P:P===!0?4:0,typeof D=="string"?I.input=h.string2buf(D):A.call(D)==="[object ArrayBuffer]"?I.input=new Uint8Array(D):I.input=D,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new d.Buf8(V),I.next_out=0,I.avail_out=V),(M=c.deflate(I,O))!==1&&M!==y)return this.onEnd(M),!(this.ended=!0);I.avail_out!==0&&(I.avail_in!==0||O!==4&&O!==2)||(this.options.to==="string"?this.onData(h.buf2binstring(d.shrinkBuf(I.output,I.next_out))):this.onData(d.shrinkBuf(I.output,I.next_out)))}while((0<I.avail_in||I.avail_out===0)&&M!==1);return O===4?(M=c.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===y):O!==2||(this.onEnd(y),!(I.avail_out=0))},R.prototype.onData=function(D){this.chunks.push(D)},R.prototype.onEnd=function(D){D===y&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=D,this.msg=this.strm.msg},i.Deflate=R,i.deflate=T,i.deflateRaw=function(D,P){return(P=P||{}).raw=!0,T(D,P)},i.gzip=function(D,P){return(P=P||{}).gzip=!0,T(D,P)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,s,i){var c=n("./zlib/inflate"),d=n("./utils/common"),h=n("./utils/strings"),p=n("./zlib/constants"),u=n("./zlib/messages"),A=n("./zlib/zstream"),y=n("./zlib/gzheader"),x=Object.prototype.toString;function S(R){if(!(this instanceof S))return new S(R);this.options=d.assign({chunkSize:16384,windowBits:0,to:""},R||{});var T=this.options;T.raw&&0<=T.windowBits&&T.windowBits<16&&(T.windowBits=-T.windowBits,T.windowBits===0&&(T.windowBits=-15)),!(0<=T.windowBits&&T.windowBits<16)||R&&R.windowBits||(T.windowBits+=32),15<T.windowBits&&T.windowBits<48&&(15&T.windowBits)==0&&(T.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new A,this.strm.avail_out=0;var D=c.inflateInit2(this.strm,T.windowBits);if(D!==p.Z_OK)throw new Error(u[D]);this.header=new y,c.inflateGetHeader(this.strm,this.header)}function C(R,T){var D=new S(T);if(D.push(R,!0),D.err)throw D.msg||u[D.err];return D.result}S.prototype.push=function(R,T){var D,P,M,O,I,V,K=this.strm,q=this.options.chunkSize,Y=this.options.dictionary,X=!1;if(this.ended)return!1;P=T===~~T?T:T===!0?p.Z_FINISH:p.Z_NO_FLUSH,typeof R=="string"?K.input=h.binstring2buf(R):x.call(R)==="[object ArrayBuffer]"?K.input=new Uint8Array(R):K.input=R,K.next_in=0,K.avail_in=K.input.length;do{if(K.avail_out===0&&(K.output=new d.Buf8(q),K.next_out=0,K.avail_out=q),(D=c.inflate(K,p.Z_NO_FLUSH))===p.Z_NEED_DICT&&Y&&(V=typeof Y=="string"?h.string2buf(Y):x.call(Y)==="[object ArrayBuffer]"?new Uint8Array(Y):Y,D=c.inflateSetDictionary(this.strm,V)),D===p.Z_BUF_ERROR&&X===!0&&(D=p.Z_OK,X=!1),D!==p.Z_STREAM_END&&D!==p.Z_OK)return this.onEnd(D),!(this.ended=!0);K.next_out&&(K.avail_out!==0&&D!==p.Z_STREAM_END&&(K.avail_in!==0||P!==p.Z_FINISH&&P!==p.Z_SYNC_FLUSH)||(this.options.to==="string"?(M=h.utf8border(K.output,K.next_out),O=K.next_out-M,I=h.buf2string(K.output,M),K.next_out=O,K.avail_out=q-O,O&&d.arraySet(K.output,K.output,M,O,0),this.onData(I)):this.onData(d.shrinkBuf(K.output,K.next_out)))),K.avail_in===0&&K.avail_out===0&&(X=!0)}while((0<K.avail_in||K.avail_out===0)&&D!==p.Z_STREAM_END);return D===p.Z_STREAM_END&&(P=p.Z_FINISH),P===p.Z_FINISH?(D=c.inflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===p.Z_OK):P!==p.Z_SYNC_FLUSH||(this.onEnd(p.Z_OK),!(K.avail_out=0))},S.prototype.onData=function(R){this.chunks.push(R)},S.prototype.onEnd=function(R){R===p.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},i.Inflate=S,i.inflate=C,i.inflateRaw=function(R,T){return(T=T||{}).raw=!0,C(R,T)},i.ungzip=C},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,s,i){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(p){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var A=u.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(var y in A)A.hasOwnProperty(y)&&(p[y]=A[y])}}return p},i.shrinkBuf=function(p,u){return p.length===u?p:p.subarray?p.subarray(0,u):(p.length=u,p)};var d={arraySet:function(p,u,A,y,x){if(u.subarray&&p.subarray)p.set(u.subarray(A,A+y),x);else for(var S=0;S<y;S++)p[x+S]=u[A+S]},flattenChunks:function(p){var u,A,y,x,S,C;for(u=y=0,A=p.length;u<A;u++)y+=p[u].length;for(C=new Uint8Array(y),u=x=0,A=p.length;u<A;u++)S=p[u],C.set(S,x),x+=S.length;return C}},h={arraySet:function(p,u,A,y,x){for(var S=0;S<y;S++)p[x+S]=u[A+S]},flattenChunks:function(p){return[].concat.apply([],p)}};i.setTyped=function(p){p?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,d)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,h))},i.setTyped(c)},{}],42:[function(n,s,i){var c=n("./common"),d=!0,h=!0;try{String.fromCharCode.apply(null,[0])}catch{d=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{h=!1}for(var p=new c.Buf8(256),u=0;u<256;u++)p[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function A(y,x){if(x<65537&&(y.subarray&&h||!y.subarray&&d))return String.fromCharCode.apply(null,c.shrinkBuf(y,x));for(var S="",C=0;C<x;C++)S+=String.fromCharCode(y[C]);return S}p[254]=p[254]=1,i.string2buf=function(y){var x,S,C,R,T,D=y.length,P=0;for(R=0;R<D;R++)(64512&(S=y.charCodeAt(R)))==55296&&R+1<D&&(64512&(C=y.charCodeAt(R+1)))==56320&&(S=65536+(S-55296<<10)+(C-56320),R++),P+=S<128?1:S<2048?2:S<65536?3:4;for(x=new c.Buf8(P),R=T=0;T<P;R++)(64512&(S=y.charCodeAt(R)))==55296&&R+1<D&&(64512&(C=y.charCodeAt(R+1)))==56320&&(S=65536+(S-55296<<10)+(C-56320),R++),S<128?x[T++]=S:(S<2048?x[T++]=192|S>>>6:(S<65536?x[T++]=224|S>>>12:(x[T++]=240|S>>>18,x[T++]=128|S>>>12&63),x[T++]=128|S>>>6&63),x[T++]=128|63&S);return x},i.buf2binstring=function(y){return A(y,y.length)},i.binstring2buf=function(y){for(var x=new c.Buf8(y.length),S=0,C=x.length;S<C;S++)x[S]=y.charCodeAt(S);return x},i.buf2string=function(y,x){var S,C,R,T,D=x||y.length,P=new Array(2*D);for(S=C=0;S<D;)if((R=y[S++])<128)P[C++]=R;else if(4<(T=p[R]))P[C++]=65533,S+=T-1;else{for(R&=T===2?31:T===3?15:7;1<T&&S<D;)R=R<<6|63&y[S++],T--;1<T?P[C++]=65533:R<65536?P[C++]=R:(R-=65536,P[C++]=55296|R>>10&1023,P[C++]=56320|1023&R)}return A(P,C)},i.utf8border=function(y,x){var S;for((x=x||y.length)>y.length&&(x=y.length),S=x-1;0<=S&&(192&y[S])==128;)S--;return S<0||S===0?x:S+p[y[S]]>x?S:x}},{"./common":41}],43:[function(n,s,i){s.exports=function(c,d,h,p){for(var u=65535&c|0,A=c>>>16&65535|0,y=0;h!==0;){for(h-=y=2e3<h?2e3:h;A=A+(u=u+d[p++]|0)|0,--y;);u%=65521,A%=65521}return u|A<<16|0}},{}],44:[function(n,s,i){s.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,s,i){var c=(function(){for(var d,h=[],p=0;p<256;p++){d=p;for(var u=0;u<8;u++)d=1&d?3988292384^d>>>1:d>>>1;h[p]=d}return h})();s.exports=function(d,h,p,u){var A=c,y=u+p;d^=-1;for(var x=u;x<y;x++)d=d>>>8^A[255&(d^h[x])];return-1^d}},{}],46:[function(n,s,i){var c,d=n("../utils/common"),h=n("./trees"),p=n("./adler32"),u=n("./crc32"),A=n("./messages"),y=0,x=4,S=0,C=-2,R=-1,T=4,D=2,P=8,M=9,O=286,I=30,V=19,K=2*O+1,q=15,Y=3,X=258,he=X+Y+1,G=42,te=113,L=1,ne=2,le=3,Ae=4;function re(k,ce){return k.msg=A[ce],ce}function ie(k){return(k<<1)-(4<k?9:0)}function ae(k){for(var ce=k.length;0<=--ce;)k[ce]=0}function H(k){var ce=k.state,de=ce.pending;de>k.avail_out&&(de=k.avail_out),de!==0&&(d.arraySet(k.output,ce.pending_buf,ce.pending_out,de,k.next_out),k.next_out+=de,ce.pending_out+=de,k.total_out+=de,k.avail_out-=de,ce.pending-=de,ce.pending===0&&(ce.pending_out=0))}function $(k,ce){h._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,ce),k.block_start=k.strstart,H(k.strm)}function Ee(k,ce){k.pending_buf[k.pending++]=ce}function Re(k,ce){k.pending_buf[k.pending++]=ce>>>8&255,k.pending_buf[k.pending++]=255&ce}function Ne(k,ce){var de,j,U=k.max_chain_length,Z=k.strstart,ye=k.prev_length,Ce=k.nice_match,me=k.strstart>k.w_size-he?k.strstart-(k.w_size-he):0,ze=k.window,Xe=k.w_mask,Ie=k.prev,ct=k.strstart+X,Jt=ze[Z+ye-1],zt=ze[Z+ye];k.prev_length>=k.good_match&&(U>>=2),Ce>k.lookahead&&(Ce=k.lookahead);do if(ze[(de=ce)+ye]===zt&&ze[de+ye-1]===Jt&&ze[de]===ze[Z]&&ze[++de]===ze[Z+1]){Z+=2,de++;do;while(ze[++Z]===ze[++de]&&ze[++Z]===ze[++de]&&ze[++Z]===ze[++de]&&ze[++Z]===ze[++de]&&ze[++Z]===ze[++de]&&ze[++Z]===ze[++de]&&ze[++Z]===ze[++de]&&ze[++Z]===ze[++de]&&Z<ct);if(j=X-(ct-Z),Z=ct-X,ye<j){if(k.match_start=ce,Ce<=(ye=j))break;Jt=ze[Z+ye-1],zt=ze[Z+ye]}}while((ce=Ie[ce&Xe])>me&&--U!=0);return ye<=k.lookahead?ye:k.lookahead}function je(k){var ce,de,j,U,Z,ye,Ce,me,ze,Xe,Ie=k.w_size;do{if(U=k.window_size-k.lookahead-k.strstart,k.strstart>=Ie+(Ie-he)){for(d.arraySet(k.window,k.window,Ie,Ie,0),k.match_start-=Ie,k.strstart-=Ie,k.block_start-=Ie,ce=de=k.hash_size;j=k.head[--ce],k.head[ce]=Ie<=j?j-Ie:0,--de;);for(ce=de=Ie;j=k.prev[--ce],k.prev[ce]=Ie<=j?j-Ie:0,--de;);U+=Ie}if(k.strm.avail_in===0)break;if(ye=k.strm,Ce=k.window,me=k.strstart+k.lookahead,ze=U,Xe=void 0,Xe=ye.avail_in,ze<Xe&&(Xe=ze),de=Xe===0?0:(ye.avail_in-=Xe,d.arraySet(Ce,ye.input,ye.next_in,Xe,me),ye.state.wrap===1?ye.adler=p(ye.adler,Ce,Xe,me):ye.state.wrap===2&&(ye.adler=u(ye.adler,Ce,Xe,me)),ye.next_in+=Xe,ye.total_in+=Xe,Xe),k.lookahead+=de,k.lookahead+k.insert>=Y)for(Z=k.strstart-k.insert,k.ins_h=k.window[Z],k.ins_h=(k.ins_h<<k.hash_shift^k.window[Z+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[Z+Y-1])&k.hash_mask,k.prev[Z&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=Z,Z++,k.insert--,!(k.lookahead+k.insert<Y)););}while(k.lookahead<he&&k.strm.avail_in!==0)}function gt(k,ce){for(var de,j;;){if(k.lookahead<he){if(je(k),k.lookahead<he&&ce===y)return L;if(k.lookahead===0)break}if(de=0,k.lookahead>=Y&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Y-1])&k.hash_mask,de=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),de!==0&&k.strstart-de<=k.w_size-he&&(k.match_length=Ne(k,de)),k.match_length>=Y)if(j=h._tr_tally(k,k.strstart-k.match_start,k.match_length-Y),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=Y){for(k.match_length--;k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Y-1])&k.hash_mask,de=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart,--k.match_length!=0;);k.strstart++}else k.strstart+=k.match_length,k.match_length=0,k.ins_h=k.window[k.strstart],k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+1])&k.hash_mask;else j=h._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(j&&($(k,!1),k.strm.avail_out===0))return L}return k.insert=k.strstart<Y-1?k.strstart:Y-1,ce===x?($(k,!0),k.strm.avail_out===0?le:Ae):k.last_lit&&($(k,!1),k.strm.avail_out===0)?L:ne}function ft(k,ce){for(var de,j,U;;){if(k.lookahead<he){if(je(k),k.lookahead<he&&ce===y)return L;if(k.lookahead===0)break}if(de=0,k.lookahead>=Y&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Y-1])&k.hash_mask,de=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),k.prev_length=k.match_length,k.prev_match=k.match_start,k.match_length=Y-1,de!==0&&k.prev_length<k.max_lazy_match&&k.strstart-de<=k.w_size-he&&(k.match_length=Ne(k,de),k.match_length<=5&&(k.strategy===1||k.match_length===Y&&4096<k.strstart-k.match_start)&&(k.match_length=Y-1)),k.prev_length>=Y&&k.match_length<=k.prev_length){for(U=k.strstart+k.lookahead-Y,j=h._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-Y),k.lookahead-=k.prev_length-1,k.prev_length-=2;++k.strstart<=U&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Y-1])&k.hash_mask,de=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),--k.prev_length!=0;);if(k.match_available=0,k.match_length=Y-1,k.strstart++,j&&($(k,!1),k.strm.avail_out===0))return L}else if(k.match_available){if((j=h._tr_tally(k,0,k.window[k.strstart-1]))&&$(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return L}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&(j=h._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<Y-1?k.strstart:Y-1,ce===x?($(k,!0),k.strm.avail_out===0?le:Ae):k.last_lit&&($(k,!1),k.strm.avail_out===0)?L:ne}function ht(k,ce,de,j,U){this.good_length=k,this.max_lazy=ce,this.nice_length=de,this.max_chain=j,this.func=U}function Lt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=P,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new d.Buf16(2*K),this.dyn_dtree=new d.Buf16(2*(2*I+1)),this.bl_tree=new d.Buf16(2*(2*V+1)),ae(this.dyn_ltree),ae(this.dyn_dtree),ae(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new d.Buf16(q+1),this.heap=new d.Buf16(2*O+1),ae(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new d.Buf16(2*O+1),ae(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function qe(k){var ce;return k&&k.state?(k.total_in=k.total_out=0,k.data_type=D,(ce=k.state).pending=0,ce.pending_out=0,ce.wrap<0&&(ce.wrap=-ce.wrap),ce.status=ce.wrap?G:te,k.adler=ce.wrap===2?0:1,ce.last_flush=y,h._tr_init(ce),S):re(k,C)}function Dt(k){var ce=qe(k);return ce===S&&(function(de){de.window_size=2*de.w_size,ae(de.head),de.max_lazy_match=c[de.level].max_lazy,de.good_match=c[de.level].good_length,de.nice_match=c[de.level].nice_length,de.max_chain_length=c[de.level].max_chain,de.strstart=0,de.block_start=0,de.lookahead=0,de.insert=0,de.match_length=de.prev_length=Y-1,de.match_available=0,de.ins_h=0})(k.state),ce}function ge(k,ce,de,j,U,Z){if(!k)return C;var ye=1;if(ce===R&&(ce=6),j<0?(ye=0,j=-j):15<j&&(ye=2,j-=16),U<1||M<U||de!==P||j<8||15<j||ce<0||9<ce||Z<0||T<Z)return re(k,C);j===8&&(j=9);var Ce=new Lt;return(k.state=Ce).strm=k,Ce.wrap=ye,Ce.gzhead=null,Ce.w_bits=j,Ce.w_size=1<<Ce.w_bits,Ce.w_mask=Ce.w_size-1,Ce.hash_bits=U+7,Ce.hash_size=1<<Ce.hash_bits,Ce.hash_mask=Ce.hash_size-1,Ce.hash_shift=~~((Ce.hash_bits+Y-1)/Y),Ce.window=new d.Buf8(2*Ce.w_size),Ce.head=new d.Buf16(Ce.hash_size),Ce.prev=new d.Buf16(Ce.w_size),Ce.lit_bufsize=1<<U+6,Ce.pending_buf_size=4*Ce.lit_bufsize,Ce.pending_buf=new d.Buf8(Ce.pending_buf_size),Ce.d_buf=1*Ce.lit_bufsize,Ce.l_buf=3*Ce.lit_bufsize,Ce.level=ce,Ce.strategy=Z,Ce.method=de,Dt(k)}c=[new ht(0,0,0,0,function(k,ce){var de=65535;for(de>k.pending_buf_size-5&&(de=k.pending_buf_size-5);;){if(k.lookahead<=1){if(je(k),k.lookahead===0&&ce===y)return L;if(k.lookahead===0)break}k.strstart+=k.lookahead,k.lookahead=0;var j=k.block_start+de;if((k.strstart===0||k.strstart>=j)&&(k.lookahead=k.strstart-j,k.strstart=j,$(k,!1),k.strm.avail_out===0)||k.strstart-k.block_start>=k.w_size-he&&($(k,!1),k.strm.avail_out===0))return L}return k.insert=0,ce===x?($(k,!0),k.strm.avail_out===0?le:Ae):(k.strstart>k.block_start&&($(k,!1),k.strm.avail_out),L)}),new ht(4,4,8,4,gt),new ht(4,5,16,8,gt),new ht(4,6,32,32,gt),new ht(4,4,16,16,ft),new ht(8,16,32,32,ft),new ht(8,16,128,128,ft),new ht(8,32,128,256,ft),new ht(32,128,258,1024,ft),new ht(32,258,258,4096,ft)],i.deflateInit=function(k,ce){return ge(k,ce,P,15,8,0)},i.deflateInit2=ge,i.deflateReset=Dt,i.deflateResetKeep=qe,i.deflateSetHeader=function(k,ce){return k&&k.state?k.state.wrap!==2?C:(k.state.gzhead=ce,S):C},i.deflate=function(k,ce){var de,j,U,Z;if(!k||!k.state||5<ce||ce<0)return k?re(k,C):C;if(j=k.state,!k.output||!k.input&&k.avail_in!==0||j.status===666&&ce!==x)return re(k,k.avail_out===0?-5:C);if(j.strm=k,de=j.last_flush,j.last_flush=ce,j.status===G)if(j.wrap===2)k.adler=0,Ee(j,31),Ee(j,139),Ee(j,8),j.gzhead?(Ee(j,(j.gzhead.text?1:0)+(j.gzhead.hcrc?2:0)+(j.gzhead.extra?4:0)+(j.gzhead.name?8:0)+(j.gzhead.comment?16:0)),Ee(j,255&j.gzhead.time),Ee(j,j.gzhead.time>>8&255),Ee(j,j.gzhead.time>>16&255),Ee(j,j.gzhead.time>>24&255),Ee(j,j.level===9?2:2<=j.strategy||j.level<2?4:0),Ee(j,255&j.gzhead.os),j.gzhead.extra&&j.gzhead.extra.length&&(Ee(j,255&j.gzhead.extra.length),Ee(j,j.gzhead.extra.length>>8&255)),j.gzhead.hcrc&&(k.adler=u(k.adler,j.pending_buf,j.pending,0)),j.gzindex=0,j.status=69):(Ee(j,0),Ee(j,0),Ee(j,0),Ee(j,0),Ee(j,0),Ee(j,j.level===9?2:2<=j.strategy||j.level<2?4:0),Ee(j,3),j.status=te);else{var ye=P+(j.w_bits-8<<4)<<8;ye|=(2<=j.strategy||j.level<2?0:j.level<6?1:j.level===6?2:3)<<6,j.strstart!==0&&(ye|=32),ye+=31-ye%31,j.status=te,Re(j,ye),j.strstart!==0&&(Re(j,k.adler>>>16),Re(j,65535&k.adler)),k.adler=1}if(j.status===69)if(j.gzhead.extra){for(U=j.pending;j.gzindex<(65535&j.gzhead.extra.length)&&(j.pending!==j.pending_buf_size||(j.gzhead.hcrc&&j.pending>U&&(k.adler=u(k.adler,j.pending_buf,j.pending-U,U)),H(k),U=j.pending,j.pending!==j.pending_buf_size));)Ee(j,255&j.gzhead.extra[j.gzindex]),j.gzindex++;j.gzhead.hcrc&&j.pending>U&&(k.adler=u(k.adler,j.pending_buf,j.pending-U,U)),j.gzindex===j.gzhead.extra.length&&(j.gzindex=0,j.status=73)}else j.status=73;if(j.status===73)if(j.gzhead.name){U=j.pending;do{if(j.pending===j.pending_buf_size&&(j.gzhead.hcrc&&j.pending>U&&(k.adler=u(k.adler,j.pending_buf,j.pending-U,U)),H(k),U=j.pending,j.pending===j.pending_buf_size)){Z=1;break}Z=j.gzindex<j.gzhead.name.length?255&j.gzhead.name.charCodeAt(j.gzindex++):0,Ee(j,Z)}while(Z!==0);j.gzhead.hcrc&&j.pending>U&&(k.adler=u(k.adler,j.pending_buf,j.pending-U,U)),Z===0&&(j.gzindex=0,j.status=91)}else j.status=91;if(j.status===91)if(j.gzhead.comment){U=j.pending;do{if(j.pending===j.pending_buf_size&&(j.gzhead.hcrc&&j.pending>U&&(k.adler=u(k.adler,j.pending_buf,j.pending-U,U)),H(k),U=j.pending,j.pending===j.pending_buf_size)){Z=1;break}Z=j.gzindex<j.gzhead.comment.length?255&j.gzhead.comment.charCodeAt(j.gzindex++):0,Ee(j,Z)}while(Z!==0);j.gzhead.hcrc&&j.pending>U&&(k.adler=u(k.adler,j.pending_buf,j.pending-U,U)),Z===0&&(j.status=103)}else j.status=103;if(j.status===103&&(j.gzhead.hcrc?(j.pending+2>j.pending_buf_size&&H(k),j.pending+2<=j.pending_buf_size&&(Ee(j,255&k.adler),Ee(j,k.adler>>8&255),k.adler=0,j.status=te)):j.status=te),j.pending!==0){if(H(k),k.avail_out===0)return j.last_flush=-1,S}else if(k.avail_in===0&&ie(ce)<=ie(de)&&ce!==x)return re(k,-5);if(j.status===666&&k.avail_in!==0)return re(k,-5);if(k.avail_in!==0||j.lookahead!==0||ce!==y&&j.status!==666){var Ce=j.strategy===2?(function(me,ze){for(var Xe;;){if(me.lookahead===0&&(je(me),me.lookahead===0)){if(ze===y)return L;break}if(me.match_length=0,Xe=h._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++,Xe&&($(me,!1),me.strm.avail_out===0))return L}return me.insert=0,ze===x?($(me,!0),me.strm.avail_out===0?le:Ae):me.last_lit&&($(me,!1),me.strm.avail_out===0)?L:ne})(j,ce):j.strategy===3?(function(me,ze){for(var Xe,Ie,ct,Jt,zt=me.window;;){if(me.lookahead<=X){if(je(me),me.lookahead<=X&&ze===y)return L;if(me.lookahead===0)break}if(me.match_length=0,me.lookahead>=Y&&0<me.strstart&&(Ie=zt[ct=me.strstart-1])===zt[++ct]&&Ie===zt[++ct]&&Ie===zt[++ct]){Jt=me.strstart+X;do;while(Ie===zt[++ct]&&Ie===zt[++ct]&&Ie===zt[++ct]&&Ie===zt[++ct]&&Ie===zt[++ct]&&Ie===zt[++ct]&&Ie===zt[++ct]&&Ie===zt[++ct]&&ct<Jt);me.match_length=X-(Jt-ct),me.match_length>me.lookahead&&(me.match_length=me.lookahead)}if(me.match_length>=Y?(Xe=h._tr_tally(me,1,me.match_length-Y),me.lookahead-=me.match_length,me.strstart+=me.match_length,me.match_length=0):(Xe=h._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++),Xe&&($(me,!1),me.strm.avail_out===0))return L}return me.insert=0,ze===x?($(me,!0),me.strm.avail_out===0?le:Ae):me.last_lit&&($(me,!1),me.strm.avail_out===0)?L:ne})(j,ce):c[j.level].func(j,ce);if(Ce!==le&&Ce!==Ae||(j.status=666),Ce===L||Ce===le)return k.avail_out===0&&(j.last_flush=-1),S;if(Ce===ne&&(ce===1?h._tr_align(j):ce!==5&&(h._tr_stored_block(j,0,0,!1),ce===3&&(ae(j.head),j.lookahead===0&&(j.strstart=0,j.block_start=0,j.insert=0))),H(k),k.avail_out===0))return j.last_flush=-1,S}return ce!==x?S:j.wrap<=0?1:(j.wrap===2?(Ee(j,255&k.adler),Ee(j,k.adler>>8&255),Ee(j,k.adler>>16&255),Ee(j,k.adler>>24&255),Ee(j,255&k.total_in),Ee(j,k.total_in>>8&255),Ee(j,k.total_in>>16&255),Ee(j,k.total_in>>24&255)):(Re(j,k.adler>>>16),Re(j,65535&k.adler)),H(k),0<j.wrap&&(j.wrap=-j.wrap),j.pending!==0?S:1)},i.deflateEnd=function(k){var ce;return k&&k.state?(ce=k.state.status)!==G&&ce!==69&&ce!==73&&ce!==91&&ce!==103&&ce!==te&&ce!==666?re(k,C):(k.state=null,ce===te?re(k,-3):S):C},i.deflateSetDictionary=function(k,ce){var de,j,U,Z,ye,Ce,me,ze,Xe=ce.length;if(!k||!k.state||(Z=(de=k.state).wrap)===2||Z===1&&de.status!==G||de.lookahead)return C;for(Z===1&&(k.adler=p(k.adler,ce,Xe,0)),de.wrap=0,Xe>=de.w_size&&(Z===0&&(ae(de.head),de.strstart=0,de.block_start=0,de.insert=0),ze=new d.Buf8(de.w_size),d.arraySet(ze,ce,Xe-de.w_size,de.w_size,0),ce=ze,Xe=de.w_size),ye=k.avail_in,Ce=k.next_in,me=k.input,k.avail_in=Xe,k.next_in=0,k.input=ce,je(de);de.lookahead>=Y;){for(j=de.strstart,U=de.lookahead-(Y-1);de.ins_h=(de.ins_h<<de.hash_shift^de.window[j+Y-1])&de.hash_mask,de.prev[j&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=j,j++,--U;);de.strstart=j,de.lookahead=Y-1,je(de)}return de.strstart+=de.lookahead,de.block_start=de.strstart,de.insert=de.lookahead,de.lookahead=0,de.match_length=de.prev_length=Y-1,de.match_available=0,k.next_in=Ce,k.input=me,k.avail_in=ye,de.wrap=Z,S},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,s,i){s.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,s,i){s.exports=function(c,d){var h,p,u,A,y,x,S,C,R,T,D,P,M,O,I,V,K,q,Y,X,he,G,te,L,ne;h=c.state,p=c.next_in,L=c.input,u=p+(c.avail_in-5),A=c.next_out,ne=c.output,y=A-(d-c.avail_out),x=A+(c.avail_out-257),S=h.dmax,C=h.wsize,R=h.whave,T=h.wnext,D=h.window,P=h.hold,M=h.bits,O=h.lencode,I=h.distcode,V=(1<<h.lenbits)-1,K=(1<<h.distbits)-1;e:do{M<15&&(P+=L[p++]<<M,M+=8,P+=L[p++]<<M,M+=8),q=O[P&V];t:for(;;){if(P>>>=Y=q>>>24,M-=Y,(Y=q>>>16&255)===0)ne[A++]=65535&q;else{if(!(16&Y)){if((64&Y)==0){q=O[(65535&q)+(P&(1<<Y)-1)];continue t}if(32&Y){h.mode=12;break e}c.msg="invalid literal/length code",h.mode=30;break e}X=65535&q,(Y&=15)&&(M<Y&&(P+=L[p++]<<M,M+=8),X+=P&(1<<Y)-1,P>>>=Y,M-=Y),M<15&&(P+=L[p++]<<M,M+=8,P+=L[p++]<<M,M+=8),q=I[P&K];n:for(;;){if(P>>>=Y=q>>>24,M-=Y,!(16&(Y=q>>>16&255))){if((64&Y)==0){q=I[(65535&q)+(P&(1<<Y)-1)];continue n}c.msg="invalid distance code",h.mode=30;break e}if(he=65535&q,M<(Y&=15)&&(P+=L[p++]<<M,(M+=8)<Y&&(P+=L[p++]<<M,M+=8)),S<(he+=P&(1<<Y)-1)){c.msg="invalid distance too far back",h.mode=30;break e}if(P>>>=Y,M-=Y,(Y=A-y)<he){if(R<(Y=he-Y)&&h.sane){c.msg="invalid distance too far back",h.mode=30;break e}if(te=D,(G=0)===T){if(G+=C-Y,Y<X){for(X-=Y;ne[A++]=D[G++],--Y;);G=A-he,te=ne}}else if(T<Y){if(G+=C+T-Y,(Y-=T)<X){for(X-=Y;ne[A++]=D[G++],--Y;);if(G=0,T<X){for(X-=Y=T;ne[A++]=D[G++],--Y;);G=A-he,te=ne}}}else if(G+=T-Y,Y<X){for(X-=Y;ne[A++]=D[G++],--Y;);G=A-he,te=ne}for(;2<X;)ne[A++]=te[G++],ne[A++]=te[G++],ne[A++]=te[G++],X-=3;X&&(ne[A++]=te[G++],1<X&&(ne[A++]=te[G++]))}else{for(G=A-he;ne[A++]=ne[G++],ne[A++]=ne[G++],ne[A++]=ne[G++],2<(X-=3););X&&(ne[A++]=ne[G++],1<X&&(ne[A++]=ne[G++]))}break}}break}}while(p<u&&A<x);p-=X=M>>3,P&=(1<<(M-=X<<3))-1,c.next_in=p,c.next_out=A,c.avail_in=p<u?u-p+5:5-(p-u),c.avail_out=A<x?x-A+257:257-(A-x),h.hold=P,h.bits=M}},{}],49:[function(n,s,i){var c=n("../utils/common"),d=n("./adler32"),h=n("./crc32"),p=n("./inffast"),u=n("./inftrees"),A=1,y=2,x=0,S=-2,C=1,R=852,T=592;function D(G){return(G>>>24&255)+(G>>>8&65280)+((65280&G)<<8)+((255&G)<<24)}function P(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function M(G){var te;return G&&G.state?(te=G.state,G.total_in=G.total_out=te.total=0,G.msg="",te.wrap&&(G.adler=1&te.wrap),te.mode=C,te.last=0,te.havedict=0,te.dmax=32768,te.head=null,te.hold=0,te.bits=0,te.lencode=te.lendyn=new c.Buf32(R),te.distcode=te.distdyn=new c.Buf32(T),te.sane=1,te.back=-1,x):S}function O(G){var te;return G&&G.state?((te=G.state).wsize=0,te.whave=0,te.wnext=0,M(G)):S}function I(G,te){var L,ne;return G&&G.state?(ne=G.state,te<0?(L=0,te=-te):(L=1+(te>>4),te<48&&(te&=15)),te&&(te<8||15<te)?S:(ne.window!==null&&ne.wbits!==te&&(ne.window=null),ne.wrap=L,ne.wbits=te,O(G))):S}function V(G,te){var L,ne;return G?(ne=new P,(G.state=ne).window=null,(L=I(G,te))!==x&&(G.state=null),L):S}var K,q,Y=!0;function X(G){if(Y){var te;for(K=new c.Buf32(512),q=new c.Buf32(32),te=0;te<144;)G.lens[te++]=8;for(;te<256;)G.lens[te++]=9;for(;te<280;)G.lens[te++]=7;for(;te<288;)G.lens[te++]=8;for(u(A,G.lens,0,288,K,0,G.work,{bits:9}),te=0;te<32;)G.lens[te++]=5;u(y,G.lens,0,32,q,0,G.work,{bits:5}),Y=!1}G.lencode=K,G.lenbits=9,G.distcode=q,G.distbits=5}function he(G,te,L,ne){var le,Ae=G.state;return Ae.window===null&&(Ae.wsize=1<<Ae.wbits,Ae.wnext=0,Ae.whave=0,Ae.window=new c.Buf8(Ae.wsize)),ne>=Ae.wsize?(c.arraySet(Ae.window,te,L-Ae.wsize,Ae.wsize,0),Ae.wnext=0,Ae.whave=Ae.wsize):(ne<(le=Ae.wsize-Ae.wnext)&&(le=ne),c.arraySet(Ae.window,te,L-ne,le,Ae.wnext),(ne-=le)?(c.arraySet(Ae.window,te,L-ne,ne,0),Ae.wnext=ne,Ae.whave=Ae.wsize):(Ae.wnext+=le,Ae.wnext===Ae.wsize&&(Ae.wnext=0),Ae.whave<Ae.wsize&&(Ae.whave+=le))),0}i.inflateReset=O,i.inflateReset2=I,i.inflateResetKeep=M,i.inflateInit=function(G){return V(G,15)},i.inflateInit2=V,i.inflate=function(G,te){var L,ne,le,Ae,re,ie,ae,H,$,Ee,Re,Ne,je,gt,ft,ht,Lt,qe,Dt,ge,k,ce,de,j,U=0,Z=new c.Buf8(4),ye=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!G||!G.state||!G.output||!G.input&&G.avail_in!==0)return S;(L=G.state).mode===12&&(L.mode=13),re=G.next_out,le=G.output,ae=G.avail_out,Ae=G.next_in,ne=G.input,ie=G.avail_in,H=L.hold,$=L.bits,Ee=ie,Re=ae,ce=x;e:for(;;)switch(L.mode){case C:if(L.wrap===0){L.mode=13;break}for(;$<16;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}if(2&L.wrap&&H===35615){Z[L.check=0]=255&H,Z[1]=H>>>8&255,L.check=h(L.check,Z,2,0),$=H=0,L.mode=2;break}if(L.flags=0,L.head&&(L.head.done=!1),!(1&L.wrap)||(((255&H)<<8)+(H>>8))%31){G.msg="incorrect header check",L.mode=30;break}if((15&H)!=8){G.msg="unknown compression method",L.mode=30;break}if($-=4,k=8+(15&(H>>>=4)),L.wbits===0)L.wbits=k;else if(k>L.wbits){G.msg="invalid window size",L.mode=30;break}L.dmax=1<<k,G.adler=L.check=1,L.mode=512&H?10:12,$=H=0;break;case 2:for(;$<16;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}if(L.flags=H,(255&L.flags)!=8){G.msg="unknown compression method",L.mode=30;break}if(57344&L.flags){G.msg="unknown header flags set",L.mode=30;break}L.head&&(L.head.text=H>>8&1),512&L.flags&&(Z[0]=255&H,Z[1]=H>>>8&255,L.check=h(L.check,Z,2,0)),$=H=0,L.mode=3;case 3:for(;$<32;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}L.head&&(L.head.time=H),512&L.flags&&(Z[0]=255&H,Z[1]=H>>>8&255,Z[2]=H>>>16&255,Z[3]=H>>>24&255,L.check=h(L.check,Z,4,0)),$=H=0,L.mode=4;case 4:for(;$<16;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}L.head&&(L.head.xflags=255&H,L.head.os=H>>8),512&L.flags&&(Z[0]=255&H,Z[1]=H>>>8&255,L.check=h(L.check,Z,2,0)),$=H=0,L.mode=5;case 5:if(1024&L.flags){for(;$<16;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}L.length=H,L.head&&(L.head.extra_len=H),512&L.flags&&(Z[0]=255&H,Z[1]=H>>>8&255,L.check=h(L.check,Z,2,0)),$=H=0}else L.head&&(L.head.extra=null);L.mode=6;case 6:if(1024&L.flags&&(ie<(Ne=L.length)&&(Ne=ie),Ne&&(L.head&&(k=L.head.extra_len-L.length,L.head.extra||(L.head.extra=new Array(L.head.extra_len)),c.arraySet(L.head.extra,ne,Ae,Ne,k)),512&L.flags&&(L.check=h(L.check,ne,Ne,Ae)),ie-=Ne,Ae+=Ne,L.length-=Ne),L.length))break e;L.length=0,L.mode=7;case 7:if(2048&L.flags){if(ie===0)break e;for(Ne=0;k=ne[Ae+Ne++],L.head&&k&&L.length<65536&&(L.head.name+=String.fromCharCode(k)),k&&Ne<ie;);if(512&L.flags&&(L.check=h(L.check,ne,Ne,Ae)),ie-=Ne,Ae+=Ne,k)break e}else L.head&&(L.head.name=null);L.length=0,L.mode=8;case 8:if(4096&L.flags){if(ie===0)break e;for(Ne=0;k=ne[Ae+Ne++],L.head&&k&&L.length<65536&&(L.head.comment+=String.fromCharCode(k)),k&&Ne<ie;);if(512&L.flags&&(L.check=h(L.check,ne,Ne,Ae)),ie-=Ne,Ae+=Ne,k)break e}else L.head&&(L.head.comment=null);L.mode=9;case 9:if(512&L.flags){for(;$<16;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}if(H!==(65535&L.check)){G.msg="header crc mismatch",L.mode=30;break}$=H=0}L.head&&(L.head.hcrc=L.flags>>9&1,L.head.done=!0),G.adler=L.check=0,L.mode=12;break;case 10:for(;$<32;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}G.adler=L.check=D(H),$=H=0,L.mode=11;case 11:if(L.havedict===0)return G.next_out=re,G.avail_out=ae,G.next_in=Ae,G.avail_in=ie,L.hold=H,L.bits=$,2;G.adler=L.check=1,L.mode=12;case 12:if(te===5||te===6)break e;case 13:if(L.last){H>>>=7&$,$-=7&$,L.mode=27;break}for(;$<3;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}switch(L.last=1&H,$-=1,3&(H>>>=1)){case 0:L.mode=14;break;case 1:if(X(L),L.mode=20,te!==6)break;H>>>=2,$-=2;break e;case 2:L.mode=17;break;case 3:G.msg="invalid block type",L.mode=30}H>>>=2,$-=2;break;case 14:for(H>>>=7&$,$-=7&$;$<32;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}if((65535&H)!=(H>>>16^65535)){G.msg="invalid stored block lengths",L.mode=30;break}if(L.length=65535&H,$=H=0,L.mode=15,te===6)break e;case 15:L.mode=16;case 16:if(Ne=L.length){if(ie<Ne&&(Ne=ie),ae<Ne&&(Ne=ae),Ne===0)break e;c.arraySet(le,ne,Ae,Ne,re),ie-=Ne,Ae+=Ne,ae-=Ne,re+=Ne,L.length-=Ne;break}L.mode=12;break;case 17:for(;$<14;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}if(L.nlen=257+(31&H),H>>>=5,$-=5,L.ndist=1+(31&H),H>>>=5,$-=5,L.ncode=4+(15&H),H>>>=4,$-=4,286<L.nlen||30<L.ndist){G.msg="too many length or distance symbols",L.mode=30;break}L.have=0,L.mode=18;case 18:for(;L.have<L.ncode;){for(;$<3;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}L.lens[ye[L.have++]]=7&H,H>>>=3,$-=3}for(;L.have<19;)L.lens[ye[L.have++]]=0;if(L.lencode=L.lendyn,L.lenbits=7,de={bits:L.lenbits},ce=u(0,L.lens,0,19,L.lencode,0,L.work,de),L.lenbits=de.bits,ce){G.msg="invalid code lengths set",L.mode=30;break}L.have=0,L.mode=19;case 19:for(;L.have<L.nlen+L.ndist;){for(;ht=(U=L.lencode[H&(1<<L.lenbits)-1])>>>16&255,Lt=65535&U,!((ft=U>>>24)<=$);){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}if(Lt<16)H>>>=ft,$-=ft,L.lens[L.have++]=Lt;else{if(Lt===16){for(j=ft+2;$<j;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}if(H>>>=ft,$-=ft,L.have===0){G.msg="invalid bit length repeat",L.mode=30;break}k=L.lens[L.have-1],Ne=3+(3&H),H>>>=2,$-=2}else if(Lt===17){for(j=ft+3;$<j;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}$-=ft,k=0,Ne=3+(7&(H>>>=ft)),H>>>=3,$-=3}else{for(j=ft+7;$<j;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}$-=ft,k=0,Ne=11+(127&(H>>>=ft)),H>>>=7,$-=7}if(L.have+Ne>L.nlen+L.ndist){G.msg="invalid bit length repeat",L.mode=30;break}for(;Ne--;)L.lens[L.have++]=k}}if(L.mode===30)break;if(L.lens[256]===0){G.msg="invalid code -- missing end-of-block",L.mode=30;break}if(L.lenbits=9,de={bits:L.lenbits},ce=u(A,L.lens,0,L.nlen,L.lencode,0,L.work,de),L.lenbits=de.bits,ce){G.msg="invalid literal/lengths set",L.mode=30;break}if(L.distbits=6,L.distcode=L.distdyn,de={bits:L.distbits},ce=u(y,L.lens,L.nlen,L.ndist,L.distcode,0,L.work,de),L.distbits=de.bits,ce){G.msg="invalid distances set",L.mode=30;break}if(L.mode=20,te===6)break e;case 20:L.mode=21;case 21:if(6<=ie&&258<=ae){G.next_out=re,G.avail_out=ae,G.next_in=Ae,G.avail_in=ie,L.hold=H,L.bits=$,p(G,Re),re=G.next_out,le=G.output,ae=G.avail_out,Ae=G.next_in,ne=G.input,ie=G.avail_in,H=L.hold,$=L.bits,L.mode===12&&(L.back=-1);break}for(L.back=0;ht=(U=L.lencode[H&(1<<L.lenbits)-1])>>>16&255,Lt=65535&U,!((ft=U>>>24)<=$);){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}if(ht&&(240&ht)==0){for(qe=ft,Dt=ht,ge=Lt;ht=(U=L.lencode[ge+((H&(1<<qe+Dt)-1)>>qe)])>>>16&255,Lt=65535&U,!(qe+(ft=U>>>24)<=$);){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}H>>>=qe,$-=qe,L.back+=qe}if(H>>>=ft,$-=ft,L.back+=ft,L.length=Lt,ht===0){L.mode=26;break}if(32&ht){L.back=-1,L.mode=12;break}if(64&ht){G.msg="invalid literal/length code",L.mode=30;break}L.extra=15&ht,L.mode=22;case 22:if(L.extra){for(j=L.extra;$<j;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}L.length+=H&(1<<L.extra)-1,H>>>=L.extra,$-=L.extra,L.back+=L.extra}L.was=L.length,L.mode=23;case 23:for(;ht=(U=L.distcode[H&(1<<L.distbits)-1])>>>16&255,Lt=65535&U,!((ft=U>>>24)<=$);){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}if((240&ht)==0){for(qe=ft,Dt=ht,ge=Lt;ht=(U=L.distcode[ge+((H&(1<<qe+Dt)-1)>>qe)])>>>16&255,Lt=65535&U,!(qe+(ft=U>>>24)<=$);){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}H>>>=qe,$-=qe,L.back+=qe}if(H>>>=ft,$-=ft,L.back+=ft,64&ht){G.msg="invalid distance code",L.mode=30;break}L.offset=Lt,L.extra=15&ht,L.mode=24;case 24:if(L.extra){for(j=L.extra;$<j;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}L.offset+=H&(1<<L.extra)-1,H>>>=L.extra,$-=L.extra,L.back+=L.extra}if(L.offset>L.dmax){G.msg="invalid distance too far back",L.mode=30;break}L.mode=25;case 25:if(ae===0)break e;if(Ne=Re-ae,L.offset>Ne){if((Ne=L.offset-Ne)>L.whave&&L.sane){G.msg="invalid distance too far back",L.mode=30;break}je=Ne>L.wnext?(Ne-=L.wnext,L.wsize-Ne):L.wnext-Ne,Ne>L.length&&(Ne=L.length),gt=L.window}else gt=le,je=re-L.offset,Ne=L.length;for(ae<Ne&&(Ne=ae),ae-=Ne,L.length-=Ne;le[re++]=gt[je++],--Ne;);L.length===0&&(L.mode=21);break;case 26:if(ae===0)break e;le[re++]=L.length,ae--,L.mode=21;break;case 27:if(L.wrap){for(;$<32;){if(ie===0)break e;ie--,H|=ne[Ae++]<<$,$+=8}if(Re-=ae,G.total_out+=Re,L.total+=Re,Re&&(G.adler=L.check=L.flags?h(L.check,le,Re,re-Re):d(L.check,le,Re,re-Re)),Re=ae,(L.flags?H:D(H))!==L.check){G.msg="incorrect data check",L.mode=30;break}$=H=0}L.mode=28;case 28:if(L.wrap&&L.flags){for(;$<32;){if(ie===0)break e;ie--,H+=ne[Ae++]<<$,$+=8}if(H!==(4294967295&L.total)){G.msg="incorrect length check",L.mode=30;break}$=H=0}L.mode=29;case 29:ce=1;break e;case 30:ce=-3;break e;case 31:return-4;case 32:default:return S}return G.next_out=re,G.avail_out=ae,G.next_in=Ae,G.avail_in=ie,L.hold=H,L.bits=$,(L.wsize||Re!==G.avail_out&&L.mode<30&&(L.mode<27||te!==4))&&he(G,G.output,G.next_out,Re-G.avail_out)?(L.mode=31,-4):(Ee-=G.avail_in,Re-=G.avail_out,G.total_in+=Ee,G.total_out+=Re,L.total+=Re,L.wrap&&Re&&(G.adler=L.check=L.flags?h(L.check,le,Re,G.next_out-Re):d(L.check,le,Re,G.next_out-Re)),G.data_type=L.bits+(L.last?64:0)+(L.mode===12?128:0)+(L.mode===20||L.mode===15?256:0),(Ee==0&&Re===0||te===4)&&ce===x&&(ce=-5),ce)},i.inflateEnd=function(G){if(!G||!G.state)return S;var te=G.state;return te.window&&(te.window=null),G.state=null,x},i.inflateGetHeader=function(G,te){var L;return G&&G.state?(2&(L=G.state).wrap)==0?S:((L.head=te).done=!1,x):S},i.inflateSetDictionary=function(G,te){var L,ne=te.length;return G&&G.state?(L=G.state).wrap!==0&&L.mode!==11?S:L.mode===11&&d(1,te,ne,0)!==L.check?-3:he(G,te,ne,ne)?(L.mode=31,-4):(L.havedict=1,x):S},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,s,i){var c=n("../utils/common"),d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],p=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];s.exports=function(A,y,x,S,C,R,T,D){var P,M,O,I,V,K,q,Y,X,he=D.bits,G=0,te=0,L=0,ne=0,le=0,Ae=0,re=0,ie=0,ae=0,H=0,$=null,Ee=0,Re=new c.Buf16(16),Ne=new c.Buf16(16),je=null,gt=0;for(G=0;G<=15;G++)Re[G]=0;for(te=0;te<S;te++)Re[y[x+te]]++;for(le=he,ne=15;1<=ne&&Re[ne]===0;ne--);if(ne<le&&(le=ne),ne===0)return C[R++]=20971520,C[R++]=20971520,D.bits=1,0;for(L=1;L<ne&&Re[L]===0;L++);for(le<L&&(le=L),G=ie=1;G<=15;G++)if(ie<<=1,(ie-=Re[G])<0)return-1;if(0<ie&&(A===0||ne!==1))return-1;for(Ne[1]=0,G=1;G<15;G++)Ne[G+1]=Ne[G]+Re[G];for(te=0;te<S;te++)y[x+te]!==0&&(T[Ne[y[x+te]]++]=te);if(K=A===0?($=je=T,19):A===1?($=d,Ee-=257,je=h,gt-=257,256):($=p,je=u,-1),G=L,V=R,re=te=H=0,O=-1,I=(ae=1<<(Ae=le))-1,A===1&&852<ae||A===2&&592<ae)return 1;for(;;){for(q=G-re,X=T[te]<K?(Y=0,T[te]):T[te]>K?(Y=je[gt+T[te]],$[Ee+T[te]]):(Y=96,0),P=1<<G-re,L=M=1<<Ae;C[V+(H>>re)+(M-=P)]=q<<24|Y<<16|X|0,M!==0;);for(P=1<<G-1;H&P;)P>>=1;if(P!==0?(H&=P-1,H+=P):H=0,te++,--Re[G]==0){if(G===ne)break;G=y[x+T[te]]}if(le<G&&(H&I)!==O){for(re===0&&(re=le),V+=L,ie=1<<(Ae=G-re);Ae+re<ne&&!((ie-=Re[Ae+re])<=0);)Ae++,ie<<=1;if(ae+=1<<Ae,A===1&&852<ae||A===2&&592<ae)return 1;C[O=H&I]=le<<24|Ae<<16|V-R|0}}return H!==0&&(C[V+H]=G-re<<24|64<<16|0),D.bits=le,0}},{"../utils/common":41}],51:[function(n,s,i){s.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,s,i){var c=n("../utils/common"),d=0,h=1;function p(U){for(var Z=U.length;0<=--Z;)U[Z]=0}var u=0,A=29,y=256,x=y+1+A,S=30,C=19,R=2*x+1,T=15,D=16,P=7,M=256,O=16,I=17,V=18,K=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],X=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],he=new Array(2*(x+2));p(he);var G=new Array(2*S);p(G);var te=new Array(512);p(te);var L=new Array(256);p(L);var ne=new Array(A);p(ne);var le,Ae,re,ie=new Array(S);function ae(U,Z,ye,Ce,me){this.static_tree=U,this.extra_bits=Z,this.extra_base=ye,this.elems=Ce,this.max_length=me,this.has_stree=U&&U.length}function H(U,Z){this.dyn_tree=U,this.max_code=0,this.stat_desc=Z}function $(U){return U<256?te[U]:te[256+(U>>>7)]}function Ee(U,Z){U.pending_buf[U.pending++]=255&Z,U.pending_buf[U.pending++]=Z>>>8&255}function Re(U,Z,ye){U.bi_valid>D-ye?(U.bi_buf|=Z<<U.bi_valid&65535,Ee(U,U.bi_buf),U.bi_buf=Z>>D-U.bi_valid,U.bi_valid+=ye-D):(U.bi_buf|=Z<<U.bi_valid&65535,U.bi_valid+=ye)}function Ne(U,Z,ye){Re(U,ye[2*Z],ye[2*Z+1])}function je(U,Z){for(var ye=0;ye|=1&U,U>>>=1,ye<<=1,0<--Z;);return ye>>>1}function gt(U,Z,ye){var Ce,me,ze=new Array(T+1),Xe=0;for(Ce=1;Ce<=T;Ce++)ze[Ce]=Xe=Xe+ye[Ce-1]<<1;for(me=0;me<=Z;me++){var Ie=U[2*me+1];Ie!==0&&(U[2*me]=je(ze[Ie]++,Ie))}}function ft(U){var Z;for(Z=0;Z<x;Z++)U.dyn_ltree[2*Z]=0;for(Z=0;Z<S;Z++)U.dyn_dtree[2*Z]=0;for(Z=0;Z<C;Z++)U.bl_tree[2*Z]=0;U.dyn_ltree[2*M]=1,U.opt_len=U.static_len=0,U.last_lit=U.matches=0}function ht(U){8<U.bi_valid?Ee(U,U.bi_buf):0<U.bi_valid&&(U.pending_buf[U.pending++]=U.bi_buf),U.bi_buf=0,U.bi_valid=0}function Lt(U,Z,ye,Ce){var me=2*Z,ze=2*ye;return U[me]<U[ze]||U[me]===U[ze]&&Ce[Z]<=Ce[ye]}function qe(U,Z,ye){for(var Ce=U.heap[ye],me=ye<<1;me<=U.heap_len&&(me<U.heap_len&&Lt(Z,U.heap[me+1],U.heap[me],U.depth)&&me++,!Lt(Z,Ce,U.heap[me],U.depth));)U.heap[ye]=U.heap[me],ye=me,me<<=1;U.heap[ye]=Ce}function Dt(U,Z,ye){var Ce,me,ze,Xe,Ie=0;if(U.last_lit!==0)for(;Ce=U.pending_buf[U.d_buf+2*Ie]<<8|U.pending_buf[U.d_buf+2*Ie+1],me=U.pending_buf[U.l_buf+Ie],Ie++,Ce===0?Ne(U,me,Z):(Ne(U,(ze=L[me])+y+1,Z),(Xe=K[ze])!==0&&Re(U,me-=ne[ze],Xe),Ne(U,ze=$(--Ce),ye),(Xe=q[ze])!==0&&Re(U,Ce-=ie[ze],Xe)),Ie<U.last_lit;);Ne(U,M,Z)}function ge(U,Z){var ye,Ce,me,ze=Z.dyn_tree,Xe=Z.stat_desc.static_tree,Ie=Z.stat_desc.has_stree,ct=Z.stat_desc.elems,Jt=-1;for(U.heap_len=0,U.heap_max=R,ye=0;ye<ct;ye++)ze[2*ye]!==0?(U.heap[++U.heap_len]=Jt=ye,U.depth[ye]=0):ze[2*ye+1]=0;for(;U.heap_len<2;)ze[2*(me=U.heap[++U.heap_len]=Jt<2?++Jt:0)]=1,U.depth[me]=0,U.opt_len--,Ie&&(U.static_len-=Xe[2*me+1]);for(Z.max_code=Jt,ye=U.heap_len>>1;1<=ye;ye--)qe(U,ze,ye);for(me=ct;ye=U.heap[1],U.heap[1]=U.heap[U.heap_len--],qe(U,ze,1),Ce=U.heap[1],U.heap[--U.heap_max]=ye,U.heap[--U.heap_max]=Ce,ze[2*me]=ze[2*ye]+ze[2*Ce],U.depth[me]=(U.depth[ye]>=U.depth[Ce]?U.depth[ye]:U.depth[Ce])+1,ze[2*ye+1]=ze[2*Ce+1]=me,U.heap[1]=me++,qe(U,ze,1),2<=U.heap_len;);U.heap[--U.heap_max]=U.heap[1],(function(zt,pr){var Ye,dt,Nt,et,pn,Xn,it=pr.dyn_tree,st=pr.max_code,En=pr.stat_desc.static_tree,un=pr.stat_desc.has_stree,Ut=pr.stat_desc.extra_bits,Ea=pr.stat_desc.extra_base,Ra=pr.stat_desc.max_length,ps=0;for(et=0;et<=T;et++)zt.bl_count[et]=0;for(it[2*zt.heap[zt.heap_max]+1]=0,Ye=zt.heap_max+1;Ye<R;Ye++)Ra<(et=it[2*it[2*(dt=zt.heap[Ye])+1]+1]+1)&&(et=Ra,ps++),it[2*dt+1]=et,st<dt||(zt.bl_count[et]++,pn=0,Ea<=dt&&(pn=Ut[dt-Ea]),Xn=it[2*dt],zt.opt_len+=Xn*(et+pn),un&&(zt.static_len+=Xn*(En[2*dt+1]+pn)));if(ps!==0){do{for(et=Ra-1;zt.bl_count[et]===0;)et--;zt.bl_count[et]--,zt.bl_count[et+1]+=2,zt.bl_count[Ra]--,ps-=2}while(0<ps);for(et=Ra;et!==0;et--)for(dt=zt.bl_count[et];dt!==0;)st<(Nt=zt.heap[--Ye])||(it[2*Nt+1]!==et&&(zt.opt_len+=(et-it[2*Nt+1])*it[2*Nt],it[2*Nt+1]=et),dt--)}})(U,Z),gt(ze,Jt,U.bl_count)}function k(U,Z,ye){var Ce,me,ze=-1,Xe=Z[1],Ie=0,ct=7,Jt=4;for(Xe===0&&(ct=138,Jt=3),Z[2*(ye+1)+1]=65535,Ce=0;Ce<=ye;Ce++)me=Xe,Xe=Z[2*(Ce+1)+1],++Ie<ct&&me===Xe||(Ie<Jt?U.bl_tree[2*me]+=Ie:me!==0?(me!==ze&&U.bl_tree[2*me]++,U.bl_tree[2*O]++):Ie<=10?U.bl_tree[2*I]++:U.bl_tree[2*V]++,ze=me,Jt=(Ie=0)===Xe?(ct=138,3):me===Xe?(ct=6,3):(ct=7,4))}function ce(U,Z,ye){var Ce,me,ze=-1,Xe=Z[1],Ie=0,ct=7,Jt=4;for(Xe===0&&(ct=138,Jt=3),Ce=0;Ce<=ye;Ce++)if(me=Xe,Xe=Z[2*(Ce+1)+1],!(++Ie<ct&&me===Xe)){if(Ie<Jt)for(;Ne(U,me,U.bl_tree),--Ie!=0;);else me!==0?(me!==ze&&(Ne(U,me,U.bl_tree),Ie--),Ne(U,O,U.bl_tree),Re(U,Ie-3,2)):Ie<=10?(Ne(U,I,U.bl_tree),Re(U,Ie-3,3)):(Ne(U,V,U.bl_tree),Re(U,Ie-11,7));ze=me,Jt=(Ie=0)===Xe?(ct=138,3):me===Xe?(ct=6,3):(ct=7,4)}}p(ie);var de=!1;function j(U,Z,ye,Ce){Re(U,(u<<1)+(Ce?1:0),3),(function(me,ze,Xe,Ie){ht(me),Ee(me,Xe),Ee(me,~Xe),c.arraySet(me.pending_buf,me.window,ze,Xe,me.pending),me.pending+=Xe})(U,Z,ye)}i._tr_init=function(U){de||((function(){var Z,ye,Ce,me,ze,Xe=new Array(T+1);for(me=Ce=0;me<A-1;me++)for(ne[me]=Ce,Z=0;Z<1<<K[me];Z++)L[Ce++]=me;for(L[Ce-1]=me,me=ze=0;me<16;me++)for(ie[me]=ze,Z=0;Z<1<<q[me];Z++)te[ze++]=me;for(ze>>=7;me<S;me++)for(ie[me]=ze<<7,Z=0;Z<1<<q[me]-7;Z++)te[256+ze++]=me;for(ye=0;ye<=T;ye++)Xe[ye]=0;for(Z=0;Z<=143;)he[2*Z+1]=8,Z++,Xe[8]++;for(;Z<=255;)he[2*Z+1]=9,Z++,Xe[9]++;for(;Z<=279;)he[2*Z+1]=7,Z++,Xe[7]++;for(;Z<=287;)he[2*Z+1]=8,Z++,Xe[8]++;for(gt(he,x+1,Xe),Z=0;Z<S;Z++)G[2*Z+1]=5,G[2*Z]=je(Z,5);le=new ae(he,K,y+1,x,T),Ae=new ae(G,q,0,S,T),re=new ae(new Array(0),Y,0,C,P)})(),de=!0),U.l_desc=new H(U.dyn_ltree,le),U.d_desc=new H(U.dyn_dtree,Ae),U.bl_desc=new H(U.bl_tree,re),U.bi_buf=0,U.bi_valid=0,ft(U)},i._tr_stored_block=j,i._tr_flush_block=function(U,Z,ye,Ce){var me,ze,Xe=0;0<U.level?(U.strm.data_type===2&&(U.strm.data_type=(function(Ie){var ct,Jt=4093624447;for(ct=0;ct<=31;ct++,Jt>>>=1)if(1&Jt&&Ie.dyn_ltree[2*ct]!==0)return d;if(Ie.dyn_ltree[18]!==0||Ie.dyn_ltree[20]!==0||Ie.dyn_ltree[26]!==0)return h;for(ct=32;ct<y;ct++)if(Ie.dyn_ltree[2*ct]!==0)return h;return d})(U)),ge(U,U.l_desc),ge(U,U.d_desc),Xe=(function(Ie){var ct;for(k(Ie,Ie.dyn_ltree,Ie.l_desc.max_code),k(Ie,Ie.dyn_dtree,Ie.d_desc.max_code),ge(Ie,Ie.bl_desc),ct=C-1;3<=ct&&Ie.bl_tree[2*X[ct]+1]===0;ct--);return Ie.opt_len+=3*(ct+1)+5+5+4,ct})(U),me=U.opt_len+3+7>>>3,(ze=U.static_len+3+7>>>3)<=me&&(me=ze)):me=ze=ye+5,ye+4<=me&&Z!==-1?j(U,Z,ye,Ce):U.strategy===4||ze===me?(Re(U,2+(Ce?1:0),3),Dt(U,he,G)):(Re(U,4+(Ce?1:0),3),(function(Ie,ct,Jt,zt){var pr;for(Re(Ie,ct-257,5),Re(Ie,Jt-1,5),Re(Ie,zt-4,4),pr=0;pr<zt;pr++)Re(Ie,Ie.bl_tree[2*X[pr]+1],3);ce(Ie,Ie.dyn_ltree,ct-1),ce(Ie,Ie.dyn_dtree,Jt-1)})(U,U.l_desc.max_code+1,U.d_desc.max_code+1,Xe+1),Dt(U,U.dyn_ltree,U.dyn_dtree)),ft(U),Ce&&ht(U)},i._tr_tally=function(U,Z,ye){return U.pending_buf[U.d_buf+2*U.last_lit]=Z>>>8&255,U.pending_buf[U.d_buf+2*U.last_lit+1]=255&Z,U.pending_buf[U.l_buf+U.last_lit]=255&ye,U.last_lit++,Z===0?U.dyn_ltree[2*ye]++:(U.matches++,Z--,U.dyn_ltree[2*(L[ye]+y+1)]++,U.dyn_dtree[2*$(Z)]++),U.last_lit===U.lit_bufsize-1},i._tr_align=function(U){Re(U,2,3),Ne(U,M,he),(function(Z){Z.bi_valid===16?(Ee(Z,Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0):8<=Z.bi_valid&&(Z.pending_buf[Z.pending++]=255&Z.bi_buf,Z.bi_buf>>=8,Z.bi_valid-=8)})(U)}},{"../utils/common":41}],53:[function(n,s,i){s.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,s,i){(function(c){(function(d,h){if(!d.setImmediate){var p,u,A,y,x=1,S={},C=!1,R=d.document,T=Object.getPrototypeOf&&Object.getPrototypeOf(d);T=T&&T.setTimeout?T:d,p={}.toString.call(d.process)==="[object process]"?function(O){process.nextTick(function(){P(O)})}:(function(){if(d.postMessage&&!d.importScripts){var O=!0,I=d.onmessage;return d.onmessage=function(){O=!1},d.postMessage("","*"),d.onmessage=I,O}})()?(y="setImmediate$"+Math.random()+"$",d.addEventListener?d.addEventListener("message",M,!1):d.attachEvent("onmessage",M),function(O){d.postMessage(y+O,"*")}):d.MessageChannel?((A=new MessageChannel).port1.onmessage=function(O){P(O.data)},function(O){A.port2.postMessage(O)}):R&&"onreadystatechange"in R.createElement("script")?(u=R.documentElement,function(O){var I=R.createElement("script");I.onreadystatechange=function(){P(O),I.onreadystatechange=null,u.removeChild(I),I=null},u.appendChild(I)}):function(O){setTimeout(P,0,O)},T.setImmediate=function(O){typeof O!="function"&&(O=new Function(""+O));for(var I=new Array(arguments.length-1),V=0;V<I.length;V++)I[V]=arguments[V+1];var K={callback:O,args:I};return S[x]=K,p(x),x++},T.clearImmediate=D}function D(O){delete S[O]}function P(O){if(C)setTimeout(P,0,O);else{var I=S[O];if(I){C=!0;try{(function(V){var K=V.callback,q=V.args;switch(q.length){case 0:K();break;case 1:K(q[0]);break;case 2:K(q[0],q[1]);break;case 3:K(q[0],q[1],q[2]);break;default:K.apply(h,q)}})(I)}finally{D(O),C=!1}}}}function M(O){O.source===d&&typeof O.data=="string"&&O.data.indexOf(y)===0&&P(+O.data.slice(y.length))}})(typeof self>"u"?c===void 0?this:c:self)}).call(this,typeof kp<"u"?kp:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Hm)),Hm.exports}var uS=cS();const ex=oA(uS);function Ha(t,e,n,s){function i(c){return c instanceof n?c:new n(function(d){d(c)})}return new(n||(n=Promise))(function(c,d){function h(A){try{u(s.next(A))}catch(y){d(y)}}function p(A){try{u(s.throw(A))}catch(y){d(y)}}function u(A){A.done?c(A.value):i(A.value).then(h,p)}u((s=s.apply(t,[])).next())})}const Tt=914400,Lf=12700,Cr=`\r
|
|
39
|
+
*/var Xy;function cS(){return Xy||(Xy=1,(function(t,e){(function(n){t.exports=n()})(function(){return(function n(s,i,c){function d(u,A){if(!i[u]){if(!s[u]){var y=typeof Np=="function"&&Np;if(!A&&y)return y(u,!0);if(h)return h(u,!0);var x=new Error("Cannot find module '"+u+"'");throw x.code="MODULE_NOT_FOUND",x}var S=i[u]={exports:{}};s[u][0].call(S.exports,function(C){var R=s[u][1][C];return d(R||C)},S,S.exports,n,s,i,c)}return i[u].exports}for(var h=typeof Np=="function"&&Np,p=0;p<c.length;p++)d(c[p]);return d})({1:[function(n,s,i){var c=n("./utils"),d=n("./support"),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(p){for(var u,A,y,x,S,C,R,T=[],D=0,P=p.length,M=P,O=c.getTypeOf(p)!=="string";D<p.length;)M=P-D,y=O?(u=p[D++],A=D<P?p[D++]:0,D<P?p[D++]:0):(u=p.charCodeAt(D++),A=D<P?p.charCodeAt(D++):0,D<P?p.charCodeAt(D++):0),x=u>>2,S=(3&u)<<4|A>>4,C=1<M?(15&A)<<2|y>>6:64,R=2<M?63&y:64,T.push(h.charAt(x)+h.charAt(S)+h.charAt(C)+h.charAt(R));return T.join("")},i.decode=function(p){var u,A,y,x,S,C,R=0,T=0,D="data:";if(p.substr(0,D.length)===D)throw new Error("Invalid base64 input, it looks like a data url.");var P,M=3*(p=p.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(p.charAt(p.length-1)===h.charAt(64)&&M--,p.charAt(p.length-2)===h.charAt(64)&&M--,M%1!=0)throw new Error("Invalid base64 input, bad content length.");for(P=d.uint8array?new Uint8Array(0|M):new Array(0|M);R<p.length;)u=h.indexOf(p.charAt(R++))<<2|(x=h.indexOf(p.charAt(R++)))>>4,A=(15&x)<<4|(S=h.indexOf(p.charAt(R++)))>>2,y=(3&S)<<6|(C=h.indexOf(p.charAt(R++))),P[T++]=u,S!==64&&(P[T++]=A),C!==64&&(P[T++]=y);return P}},{"./support":30,"./utils":32}],2:[function(n,s,i){var c=n("./external"),d=n("./stream/DataWorker"),h=n("./stream/Crc32Probe"),p=n("./stream/DataLengthProbe");function u(A,y,x,S,C){this.compressedSize=A,this.uncompressedSize=y,this.crc32=x,this.compression=S,this.compressedContent=C}u.prototype={getContentWorker:function(){var A=new d(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new p("data_length")),y=this;return A.on("end",function(){if(this.streamInfo.data_length!==y.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),A},getCompressedWorker:function(){return new d(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(A,y,x){return A.pipe(new h).pipe(new p("uncompressedSize")).pipe(y.compressWorker(x)).pipe(new p("compressedSize")).withStreamInfo("compression",y)},s.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,s,i){var c=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,s,i){var c=n("./utils"),d=(function(){for(var h,p=[],u=0;u<256;u++){h=u;for(var A=0;A<8;A++)h=1&h?3988292384^h>>>1:h>>>1;p[u]=h}return p})();s.exports=function(h,p){return h!==void 0&&h.length?c.getTypeOf(h)!=="string"?(function(u,A,y,x){var S=d,C=x+y;u^=-1;for(var R=x;R<C;R++)u=u>>>8^S[255&(u^A[R])];return-1^u})(0|p,h,h.length,0):(function(u,A,y,x){var S=d,C=x+y;u^=-1;for(var R=x;R<C;R++)u=u>>>8^S[255&(u^A.charCodeAt(R))];return-1^u})(0|p,h,h.length,0):0}},{"./utils":32}],5:[function(n,s,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,s,i){var c=null;c=typeof Promise<"u"?Promise:n("lie"),s.exports={Promise:c}},{lie:37}],7:[function(n,s,i){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",d=n("pako"),h=n("./utils"),p=n("./stream/GenericWorker"),u=c?"uint8array":"array";function A(y,x){p.call(this,"FlateWorker/"+y),this._pako=null,this._pakoAction=y,this._pakoOptions=x,this.meta={}}i.magic="\b\0",h.inherits(A,p),A.prototype.processChunk=function(y){this.meta=y.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(u,y.data),!1)},A.prototype.flush=function(){p.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},A.prototype.cleanUp=function(){p.prototype.cleanUp.call(this),this._pako=null},A.prototype._createPako=function(){this._pako=new d[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var y=this;this._pako.onData=function(x){y.push({data:x,meta:y.meta})}},i.compressWorker=function(y){return new A("Deflate",y)},i.uncompressWorker=function(){return new A("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,s,i){function c(S,C){var R,T="";for(R=0;R<C;R++)T+=String.fromCharCode(255&S),S>>>=8;return T}function d(S,C,R,T,D,P){var M,O,I=S.file,Y=S.compression,K=P!==u.utf8encode,q=h.transformTo("string",P(I.name)),Q=h.transformTo("string",u.utf8encode(I.name)),V=I.comment,ge=h.transformTo("string",P(V)),W=h.transformTo("string",u.utf8encode(V)),se=Q.length!==I.name.length,L=W.length!==V.length,ne="",le="",pe="",J=I.dir,ae=I.date,re={crc32:0,compressedSize:0,uncompressedSize:0};C&&!R||(re.crc32=S.crc32,re.compressedSize=S.compressedSize,re.uncompressedSize=S.uncompressedSize);var U=0;C&&(U|=8),K||!se&&!L||(U|=2048);var ee=0,Ee=0;J&&(ee|=16),D==="UNIX"?(Ee=798,ee|=(function(Ne,Ue){var ot=Ne;return Ne||(ot=Ue?16893:33204),(65535&ot)<<16})(I.unixPermissions,J)):(Ee=20,ee|=(function(Ne){return 63&(Ne||0)})(I.dosPermissions)),M=ae.getUTCHours(),M<<=6,M|=ae.getUTCMinutes(),M<<=5,M|=ae.getUTCSeconds()/2,O=ae.getUTCFullYear()-1980,O<<=4,O|=ae.getUTCMonth()+1,O<<=5,O|=ae.getUTCDate(),se&&(le=c(1,1)+c(A(q),4)+Q,ne+="up"+c(le.length,2)+le),L&&(pe=c(1,1)+c(A(ge),4)+W,ne+="uc"+c(pe.length,2)+pe);var Re="";return Re+=`
|
|
40
|
+
\0`,Re+=c(U,2),Re+=Y.magic,Re+=c(M,2),Re+=c(O,2),Re+=c(re.crc32,4),Re+=c(re.compressedSize,4),Re+=c(re.uncompressedSize,4),Re+=c(q.length,2),Re+=c(ne.length,2),{fileRecord:y.LOCAL_FILE_HEADER+Re+q+ne,dirRecord:y.CENTRAL_FILE_HEADER+c(Ee,2)+Re+c(ge.length,2)+"\0\0\0\0"+c(ee,4)+c(T,4)+q+ne+ge}}var h=n("../utils"),p=n("../stream/GenericWorker"),u=n("../utf8"),A=n("../crc32"),y=n("../signature");function x(S,C,R,T){p.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=C,this.zipPlatform=R,this.encodeFileName=T,this.streamFiles=S,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}h.inherits(x,p),x.prototype.push=function(S){var C=S.meta.percent||0,R=this.entriesCount,T=this._sources.length;this.accumulate?this.contentBuffer.push(S):(this.bytesWritten+=S.data.length,p.prototype.push.call(this,{data:S.data,meta:{currentFile:this.currentFile,percent:R?(C+100*(R-T-1))/R:100}}))},x.prototype.openedSource=function(S){this.currentSourceOffset=this.bytesWritten,this.currentFile=S.file.name;var C=this.streamFiles&&!S.file.dir;if(C){var R=d(S,C,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:R.fileRecord,meta:{percent:0}})}else this.accumulate=!0},x.prototype.closedSource=function(S){this.accumulate=!1;var C=this.streamFiles&&!S.file.dir,R=d(S,C,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(R.dirRecord),C)this.push({data:(function(T){return y.DATA_DESCRIPTOR+c(T.crc32,4)+c(T.compressedSize,4)+c(T.uncompressedSize,4)})(S),meta:{percent:100}});else for(this.push({data:R.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},x.prototype.flush=function(){for(var S=this.bytesWritten,C=0;C<this.dirRecords.length;C++)this.push({data:this.dirRecords[C],meta:{percent:100}});var R=this.bytesWritten-S,T=(function(D,P,M,O,I){var Y=h.transformTo("string",I(O));return y.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(D,2)+c(D,2)+c(P,4)+c(M,4)+c(Y.length,2)+Y})(this.dirRecords.length,R,S,this.zipComment,this.encodeFileName);this.push({data:T,meta:{percent:100}})},x.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},x.prototype.registerPrevious=function(S){this._sources.push(S);var C=this;return S.on("data",function(R){C.processChunk(R)}),S.on("end",function(){C.closedSource(C.previous.streamInfo),C._sources.length?C.prepareNextSource():C.end()}),S.on("error",function(R){C.error(R)}),this},x.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},x.prototype.error=function(S){var C=this._sources;if(!p.prototype.error.call(this,S))return!1;for(var R=0;R<C.length;R++)try{C[R].error(S)}catch{}return!0},x.prototype.lock=function(){p.prototype.lock.call(this);for(var S=this._sources,C=0;C<S.length;C++)S[C].lock()},s.exports=x},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,s,i){var c=n("../compressions"),d=n("./ZipFileWorker");i.generateWorker=function(h,p,u){var A=new d(p.streamFiles,u,p.platform,p.encodeFileName),y=0;try{h.forEach(function(x,S){y++;var C=(function(P,M){var O=P||M,I=c[O];if(!I)throw new Error(O+" is not a valid compression method !");return I})(S.options.compression,p.compression),R=S.options.compressionOptions||p.compressionOptions||{},T=S.dir,D=S.date;S._compressWorker(C,R).withStreamInfo("file",{name:x,dir:T,date:D,comment:S.comment||"",unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions}).pipe(A)}),A.entriesCount=y}catch(x){A.error(x)}return A}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,s,i){function c(){if(!(this instanceof c))return new c;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var d=new c;for(var h in this)typeof this[h]!="function"&&(d[h]=this[h]);return d}}(c.prototype=n("./object")).loadAsync=n("./load"),c.support=n("./support"),c.defaults=n("./defaults"),c.version="3.10.1",c.loadAsync=function(d,h){return new c().loadAsync(d,h)},c.external=n("./external"),s.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,s,i){var c=n("./utils"),d=n("./external"),h=n("./utf8"),p=n("./zipEntries"),u=n("./stream/Crc32Probe"),A=n("./nodejsUtils");function y(x){return new d.Promise(function(S,C){var R=x.decompressed.getContentWorker().pipe(new u);R.on("error",function(T){C(T)}).on("end",function(){R.streamInfo.crc32!==x.decompressed.crc32?C(new Error("Corrupted zip : CRC32 mismatch")):S()}).resume()})}s.exports=function(x,S){var C=this;return S=c.extend(S||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:h.utf8decode}),A.isNode&&A.isStream(x)?d.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",x,!0,S.optimizedBinaryString,S.base64).then(function(R){var T=new p(S);return T.load(R),T}).then(function(R){var T=[d.Promise.resolve(R)],D=R.files;if(S.checkCRC32)for(var P=0;P<D.length;P++)T.push(y(D[P]));return d.Promise.all(T)}).then(function(R){for(var T=R.shift(),D=T.files,P=0;P<D.length;P++){var M=D[P],O=M.fileNameStr,I=c.resolve(M.fileNameStr);C.file(I,M.decompressed,{binary:!0,optimizedBinaryString:!0,date:M.date,dir:M.dir,comment:M.fileCommentStr.length?M.fileCommentStr:null,unixPermissions:M.unixPermissions,dosPermissions:M.dosPermissions,createFolders:S.createFolders}),M.dir||(C.file(I).unsafeOriginalName=O)}return T.zipComment.length&&(C.comment=T.zipComment),C})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,s,i){var c=n("../utils"),d=n("../stream/GenericWorker");function h(p,u){d.call(this,"Nodejs stream input adapter for "+p),this._upstreamEnded=!1,this._bindStream(u)}c.inherits(h,d),h.prototype._bindStream=function(p){var u=this;(this._stream=p).pause(),p.on("data",function(A){u.push({data:A,meta:{percent:0}})}).on("error",function(A){u.isPaused?this.generatedError=A:u.error(A)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},h.prototype.pause=function(){return!!d.prototype.pause.call(this)&&(this._stream.pause(),!0)},h.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},s.exports=h},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,s,i){var c=n("readable-stream").Readable;function d(h,p,u){c.call(this,p),this._helper=h;var A=this;h.on("data",function(y,x){A.push(y)||A._helper.pause(),u&&u(x)}).on("error",function(y){A.emit("error",y)}).on("end",function(){A.push(null)})}n("../utils").inherits(d,c),d.prototype._read=function(){this._helper.resume()},s.exports=d},{"../utils":32,"readable-stream":16}],14:[function(n,s,i){s.exports={isNode:typeof Buffer<"u",newBufferFrom:function(c,d){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(c,d);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new Buffer(c,d)},allocBuffer:function(c){if(Buffer.alloc)return Buffer.alloc(c);var d=new Buffer(c);return d.fill(0),d},isBuffer:function(c){return Buffer.isBuffer(c)},isStream:function(c){return c&&typeof c.on=="function"&&typeof c.pause=="function"&&typeof c.resume=="function"}}},{}],15:[function(n,s,i){function c(I,Y,K){var q,Q=h.getTypeOf(Y),V=h.extend(K||{},A);V.date=V.date||new Date,V.compression!==null&&(V.compression=V.compression.toUpperCase()),typeof V.unixPermissions=="string"&&(V.unixPermissions=parseInt(V.unixPermissions,8)),V.unixPermissions&&16384&V.unixPermissions&&(V.dir=!0),V.dosPermissions&&16&V.dosPermissions&&(V.dir=!0),V.dir&&(I=D(I)),V.createFolders&&(q=T(I))&&P.call(this,q,!0);var ge=Q==="string"&&V.binary===!1&&V.base64===!1;K&&K.binary!==void 0||(V.binary=!ge),(Y instanceof y&&Y.uncompressedSize===0||V.dir||!Y||Y.length===0)&&(V.base64=!1,V.binary=!0,Y="",V.compression="STORE",Q="string");var W=null;W=Y instanceof y||Y instanceof p?Y:C.isNode&&C.isStream(Y)?new R(I,Y):h.prepareContent(I,Y,V.binary,V.optimizedBinaryString,V.base64);var se=new x(I,W,V);this.files[I]=se}var d=n("./utf8"),h=n("./utils"),p=n("./stream/GenericWorker"),u=n("./stream/StreamHelper"),A=n("./defaults"),y=n("./compressedObject"),x=n("./zipObject"),S=n("./generate"),C=n("./nodejsUtils"),R=n("./nodejs/NodejsStreamInputAdapter"),T=function(I){I.slice(-1)==="/"&&(I=I.substring(0,I.length-1));var Y=I.lastIndexOf("/");return 0<Y?I.substring(0,Y):""},D=function(I){return I.slice(-1)!=="/"&&(I+="/"),I},P=function(I,Y){return Y=Y!==void 0?Y:A.createFolders,I=D(I),this.files[I]||c.call(this,I,null,{dir:!0,createFolders:Y}),this.files[I]};function M(I){return Object.prototype.toString.call(I)==="[object RegExp]"}var O={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(I){var Y,K,q;for(Y in this.files)q=this.files[Y],(K=Y.slice(this.root.length,Y.length))&&Y.slice(0,this.root.length)===this.root&&I(K,q)},filter:function(I){var Y=[];return this.forEach(function(K,q){I(K,q)&&Y.push(q)}),Y},file:function(I,Y,K){if(arguments.length!==1)return I=this.root+I,c.call(this,I,Y,K),this;if(M(I)){var q=I;return this.filter(function(V,ge){return!ge.dir&&q.test(V)})}var Q=this.files[this.root+I];return Q&&!Q.dir?Q:null},folder:function(I){if(!I)return this;if(M(I))return this.filter(function(Q,V){return V.dir&&I.test(Q)});var Y=this.root+I,K=P.call(this,Y),q=this.clone();return q.root=K.name,q},remove:function(I){I=this.root+I;var Y=this.files[I];if(Y||(I.slice(-1)!=="/"&&(I+="/"),Y=this.files[I]),Y&&!Y.dir)delete this.files[I];else for(var K=this.filter(function(Q,V){return V.name.slice(0,I.length)===I}),q=0;q<K.length;q++)delete this.files[K[q].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(I){var Y,K={};try{if((K=h.extend(I||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:d.utf8encode})).type=K.type.toLowerCase(),K.compression=K.compression.toUpperCase(),K.type==="binarystring"&&(K.type="string"),!K.type)throw new Error("No output type specified.");h.checkSupport(K.type),K.platform!=="darwin"&&K.platform!=="freebsd"&&K.platform!=="linux"&&K.platform!=="sunos"||(K.platform="UNIX"),K.platform==="win32"&&(K.platform="DOS");var q=K.comment||this.comment||"";Y=S.generateWorker(this,K,q)}catch(Q){(Y=new p("error")).error(Q)}return new u(Y,K.type||"string",K.mimeType)},generateAsync:function(I,Y){return this.generateInternalStream(I).accumulate(Y)},generateNodeStream:function(I,Y){return(I=I||{}).type||(I.type="nodebuffer"),this.generateInternalStream(I).toNodejsStream(Y)}};s.exports=O},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,s,i){s.exports=n("stream")},{stream:void 0}],17:[function(n,s,i){var c=n("./DataReader");function d(h){c.call(this,h);for(var p=0;p<this.data.length;p++)h[p]=255&h[p]}n("../utils").inherits(d,c),d.prototype.byteAt=function(h){return this.data[this.zero+h]},d.prototype.lastIndexOfSignature=function(h){for(var p=h.charCodeAt(0),u=h.charCodeAt(1),A=h.charCodeAt(2),y=h.charCodeAt(3),x=this.length-4;0<=x;--x)if(this.data[x]===p&&this.data[x+1]===u&&this.data[x+2]===A&&this.data[x+3]===y)return x-this.zero;return-1},d.prototype.readAndCheckSignature=function(h){var p=h.charCodeAt(0),u=h.charCodeAt(1),A=h.charCodeAt(2),y=h.charCodeAt(3),x=this.readData(4);return p===x[0]&&u===x[1]&&A===x[2]&&y===x[3]},d.prototype.readData=function(h){if(this.checkOffset(h),h===0)return[];var p=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,p},s.exports=d},{"../utils":32,"./DataReader":18}],18:[function(n,s,i){var c=n("../utils");function d(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}d.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length<this.zero+h||h<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+h+"). Corrupted zip ?")},setIndex:function(h){this.checkIndex(h),this.index=h},skip:function(h){this.setIndex(this.index+h)},byteAt:function(){},readInt:function(h){var p,u=0;for(this.checkOffset(h),p=this.index+h-1;p>=this.index;p--)u=(u<<8)+this.byteAt(p);return this.index+=h,u},readString:function(h){return c.transformTo("string",this.readData(h))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC(1980+(h>>25&127),(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(31&h)<<1))}},s.exports=d},{"../utils":32}],19:[function(n,s,i){var c=n("./Uint8ArrayReader");function d(h){c.call(this,h)}n("../utils").inherits(d,c),d.prototype.readData=function(h){this.checkOffset(h);var p=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,p},s.exports=d},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,s,i){var c=n("./DataReader");function d(h){c.call(this,h)}n("../utils").inherits(d,c),d.prototype.byteAt=function(h){return this.data.charCodeAt(this.zero+h)},d.prototype.lastIndexOfSignature=function(h){return this.data.lastIndexOf(h)-this.zero},d.prototype.readAndCheckSignature=function(h){return h===this.readData(4)},d.prototype.readData=function(h){this.checkOffset(h);var p=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,p},s.exports=d},{"../utils":32,"./DataReader":18}],21:[function(n,s,i){var c=n("./ArrayReader");function d(h){c.call(this,h)}n("../utils").inherits(d,c),d.prototype.readData=function(h){if(this.checkOffset(h),h===0)return new Uint8Array(0);var p=this.data.subarray(this.zero+this.index,this.zero+this.index+h);return this.index+=h,p},s.exports=d},{"../utils":32,"./ArrayReader":17}],22:[function(n,s,i){var c=n("../utils"),d=n("../support"),h=n("./ArrayReader"),p=n("./StringReader"),u=n("./NodeBufferReader"),A=n("./Uint8ArrayReader");s.exports=function(y){var x=c.getTypeOf(y);return c.checkSupport(x),x!=="string"||d.uint8array?x==="nodebuffer"?new u(y):d.uint8array?new A(c.transformTo("uint8array",y)):new h(c.transformTo("array",y)):new p(y)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,s,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,s,i){var c=n("./GenericWorker"),d=n("../utils");function h(p){c.call(this,"ConvertWorker to "+p),this.destType=p}d.inherits(h,c),h.prototype.processChunk=function(p){this.push({data:d.transformTo(this.destType,p.data),meta:p.meta})},s.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(n,s,i){var c=n("./GenericWorker"),d=n("../crc32");function h(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(h,c),h.prototype.processChunk=function(p){this.streamInfo.crc32=d(p.data,this.streamInfo.crc32||0),this.push(p)},s.exports=h},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,s,i){var c=n("../utils"),d=n("./GenericWorker");function h(p){d.call(this,"DataLengthProbe for "+p),this.propName=p,this.withStreamInfo(p,0)}c.inherits(h,d),h.prototype.processChunk=function(p){if(p){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+p.data.length}d.prototype.processChunk.call(this,p)},s.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(n,s,i){var c=n("../utils"),d=n("./GenericWorker");function h(p){d.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,p.then(function(A){u.dataIsReady=!0,u.data=A,u.max=A&&A.length||0,u.type=c.getTypeOf(A),u.isPaused||u._tickAndRepeat()},function(A){u.error(A)})}c.inherits(h,d),h.prototype.cleanUp=function(){d.prototype.cleanUp.call(this),this.data=null},h.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},h.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},h.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var p=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":p=this.data.substring(this.index,u);break;case"uint8array":p=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":p=this.data.slice(this.index,u)}return this.index=u,this.push({data:p,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=h},{"../utils":32,"./GenericWorker":28}],28:[function(n,s,i){function c(d){this.name=d||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}c.prototype={push:function(d){this.emit("data",d)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(d){this.emit("error",d)}return!0},error:function(d){return!this.isFinished&&(this.isPaused?this.generatedError=d:(this.isFinished=!0,this.emit("error",d),this.previous&&this.previous.error(d),this.cleanUp()),!0)},on:function(d,h){return this._listeners[d].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(d,h){if(this._listeners[d])for(var p=0;p<this._listeners[d].length;p++)this._listeners[d][p].call(this,h)},pipe:function(d){return d.registerPrevious(this)},registerPrevious:function(d){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=d.streamInfo,this.mergeStreamInfo(),this.previous=d;var h=this;return d.on("data",function(p){h.processChunk(p)}),d.on("end",function(){h.end()}),d.on("error",function(p){h.error(p)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var d=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),d=!0),this.previous&&this.previous.resume(),!d},flush:function(){},processChunk:function(d){this.push(d)},withStreamInfo:function(d,h){return this.extraStreamInfo[d]=h,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var d in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,d)&&(this.streamInfo[d]=this.extraStreamInfo[d])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var d="Worker "+this.name;return this.previous?this.previous+" -> "+d:d}},s.exports=c},{}],29:[function(n,s,i){var c=n("../utils"),d=n("./ConvertWorker"),h=n("./GenericWorker"),p=n("../base64"),u=n("../support"),A=n("../external"),y=null;if(u.nodestream)try{y=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function x(C,R){return new A.Promise(function(T,D){var P=[],M=C._internalType,O=C._outputType,I=C._mimeType;C.on("data",function(Y,K){P.push(Y),R&&R(K)}).on("error",function(Y){P=[],D(Y)}).on("end",function(){try{var Y=(function(K,q,Q){switch(K){case"blob":return c.newBlob(c.transformTo("arraybuffer",q),Q);case"base64":return p.encode(q);default:return c.transformTo(K,q)}})(O,(function(K,q){var Q,V=0,ge=null,W=0;for(Q=0;Q<q.length;Q++)W+=q[Q].length;switch(K){case"string":return q.join("");case"array":return Array.prototype.concat.apply([],q);case"uint8array":for(ge=new Uint8Array(W),Q=0;Q<q.length;Q++)ge.set(q[Q],V),V+=q[Q].length;return ge;case"nodebuffer":return Buffer.concat(q);default:throw new Error("concat : unsupported type '"+K+"'")}})(M,P),I);T(Y)}catch(K){D(K)}P=[]}).resume()})}function S(C,R,T){var D=R;switch(R){case"blob":case"arraybuffer":D="uint8array";break;case"base64":D="string"}try{this._internalType=D,this._outputType=R,this._mimeType=T,c.checkSupport(D),this._worker=C.pipe(new d(D)),C.lock()}catch(P){this._worker=new h("error"),this._worker.error(P)}}S.prototype={accumulate:function(C){return x(this,C)},on:function(C,R){var T=this;return C==="data"?this._worker.on(C,function(D){R.call(T,D.data,D.meta)}):this._worker.on(C,function(){c.delay(R,arguments,T)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(C){if(c.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new y(this,{objectMode:this._outputType!=="nodebuffer"},C)}},s.exports=S},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,s,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var c=new ArrayBuffer(0);try{i.blob=new Blob([c],{type:"application/zip"}).size===0}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);d.append(c),i.blob=d.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,s,i){for(var c=n("./utils"),d=n("./support"),h=n("./nodejsUtils"),p=n("./stream/GenericWorker"),u=new Array(256),A=0;A<256;A++)u[A]=252<=A?6:248<=A?5:240<=A?4:224<=A?3:192<=A?2:1;u[254]=u[254]=1;function y(){p.call(this,"utf-8 decode"),this.leftOver=null}function x(){p.call(this,"utf-8 encode")}i.utf8encode=function(S){return d.nodebuffer?h.newBufferFrom(S,"utf-8"):(function(C){var R,T,D,P,M,O=C.length,I=0;for(P=0;P<O;P++)(64512&(T=C.charCodeAt(P)))==55296&&P+1<O&&(64512&(D=C.charCodeAt(P+1)))==56320&&(T=65536+(T-55296<<10)+(D-56320),P++),I+=T<128?1:T<2048?2:T<65536?3:4;for(R=d.uint8array?new Uint8Array(I):new Array(I),P=M=0;M<I;P++)(64512&(T=C.charCodeAt(P)))==55296&&P+1<O&&(64512&(D=C.charCodeAt(P+1)))==56320&&(T=65536+(T-55296<<10)+(D-56320),P++),T<128?R[M++]=T:(T<2048?R[M++]=192|T>>>6:(T<65536?R[M++]=224|T>>>12:(R[M++]=240|T>>>18,R[M++]=128|T>>>12&63),R[M++]=128|T>>>6&63),R[M++]=128|63&T);return R})(S)},i.utf8decode=function(S){return d.nodebuffer?c.transformTo("nodebuffer",S).toString("utf-8"):(function(C){var R,T,D,P,M=C.length,O=new Array(2*M);for(R=T=0;R<M;)if((D=C[R++])<128)O[T++]=D;else if(4<(P=u[D]))O[T++]=65533,R+=P-1;else{for(D&=P===2?31:P===3?15:7;1<P&&R<M;)D=D<<6|63&C[R++],P--;1<P?O[T++]=65533:D<65536?O[T++]=D:(D-=65536,O[T++]=55296|D>>10&1023,O[T++]=56320|1023&D)}return O.length!==T&&(O.subarray?O=O.subarray(0,T):O.length=T),c.applyFromCharCode(O)})(S=c.transformTo(d.uint8array?"uint8array":"array",S))},c.inherits(y,p),y.prototype.processChunk=function(S){var C=c.transformTo(d.uint8array?"uint8array":"array",S.data);if(this.leftOver&&this.leftOver.length){if(d.uint8array){var R=C;(C=new Uint8Array(R.length+this.leftOver.length)).set(this.leftOver,0),C.set(R,this.leftOver.length)}else C=this.leftOver.concat(C);this.leftOver=null}var T=(function(P,M){var O;for((M=M||P.length)>P.length&&(M=P.length),O=M-1;0<=O&&(192&P[O])==128;)O--;return O<0||O===0?M:O+u[P[O]]>M?O:M})(C),D=C;T!==C.length&&(d.uint8array?(D=C.subarray(0,T),this.leftOver=C.subarray(T,C.length)):(D=C.slice(0,T),this.leftOver=C.slice(T,C.length))),this.push({data:i.utf8decode(D),meta:S.meta})},y.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=y,c.inherits(x,p),x.prototype.processChunk=function(S){this.push({data:i.utf8encode(S.data),meta:S.meta})},i.Utf8EncodeWorker=x},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,s,i){var c=n("./support"),d=n("./base64"),h=n("./nodejsUtils"),p=n("./external");function u(R){return R}function A(R,T){for(var D=0;D<R.length;++D)T[D]=255&R.charCodeAt(D);return T}n("setimmediate"),i.newBlob=function(R,T){i.checkSupport("blob");try{return new Blob([R],{type:T})}catch{try{var D=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return D.append(R),D.getBlob(T)}catch{throw new Error("Bug : can't construct the Blob.")}}};var y={stringifyByChunk:function(R,T,D){var P=[],M=0,O=R.length;if(O<=D)return String.fromCharCode.apply(null,R);for(;M<O;)T==="array"||T==="nodebuffer"?P.push(String.fromCharCode.apply(null,R.slice(M,Math.min(M+D,O)))):P.push(String.fromCharCode.apply(null,R.subarray(M,Math.min(M+D,O)))),M+=D;return P.join("")},stringifyByChar:function(R){for(var T="",D=0;D<R.length;D++)T+=String.fromCharCode(R[D]);return T},applyCanBeUsed:{uint8array:(function(){try{return c.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return c.nodebuffer&&String.fromCharCode.apply(null,h.allocBuffer(1)).length===1}catch{return!1}})()}};function x(R){var T=65536,D=i.getTypeOf(R),P=!0;if(D==="uint8array"?P=y.applyCanBeUsed.uint8array:D==="nodebuffer"&&(P=y.applyCanBeUsed.nodebuffer),P)for(;1<T;)try{return y.stringifyByChunk(R,D,T)}catch{T=Math.floor(T/2)}return y.stringifyByChar(R)}function S(R,T){for(var D=0;D<R.length;D++)T[D]=R[D];return T}i.applyFromCharCode=x;var C={};C.string={string:u,array:function(R){return A(R,new Array(R.length))},arraybuffer:function(R){return C.string.uint8array(R).buffer},uint8array:function(R){return A(R,new Uint8Array(R.length))},nodebuffer:function(R){return A(R,h.allocBuffer(R.length))}},C.array={string:x,array:u,arraybuffer:function(R){return new Uint8Array(R).buffer},uint8array:function(R){return new Uint8Array(R)},nodebuffer:function(R){return h.newBufferFrom(R)}},C.arraybuffer={string:function(R){return x(new Uint8Array(R))},array:function(R){return S(new Uint8Array(R),new Array(R.byteLength))},arraybuffer:u,uint8array:function(R){return new Uint8Array(R)},nodebuffer:function(R){return h.newBufferFrom(new Uint8Array(R))}},C.uint8array={string:x,array:function(R){return S(R,new Array(R.length))},arraybuffer:function(R){return R.buffer},uint8array:u,nodebuffer:function(R){return h.newBufferFrom(R)}},C.nodebuffer={string:x,array:function(R){return S(R,new Array(R.length))},arraybuffer:function(R){return C.nodebuffer.uint8array(R).buffer},uint8array:function(R){return S(R,new Uint8Array(R.length))},nodebuffer:u},i.transformTo=function(R,T){if(T=T||"",!R)return T;i.checkSupport(R);var D=i.getTypeOf(T);return C[D][R](T)},i.resolve=function(R){for(var T=R.split("/"),D=[],P=0;P<T.length;P++){var M=T[P];M==="."||M===""&&P!==0&&P!==T.length-1||(M===".."?D.pop():D.push(M))}return D.join("/")},i.getTypeOf=function(R){return typeof R=="string"?"string":Object.prototype.toString.call(R)==="[object Array]"?"array":c.nodebuffer&&h.isBuffer(R)?"nodebuffer":c.uint8array&&R instanceof Uint8Array?"uint8array":c.arraybuffer&&R instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(R){if(!c[R.toLowerCase()])throw new Error(R+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(R){var T,D,P="";for(D=0;D<(R||"").length;D++)P+="\\x"+((T=R.charCodeAt(D))<16?"0":"")+T.toString(16).toUpperCase();return P},i.delay=function(R,T,D){setImmediate(function(){R.apply(D||null,T||[])})},i.inherits=function(R,T){function D(){}D.prototype=T.prototype,R.prototype=new D},i.extend=function(){var R,T,D={};for(R=0;R<arguments.length;R++)for(T in arguments[R])Object.prototype.hasOwnProperty.call(arguments[R],T)&&D[T]===void 0&&(D[T]=arguments[R][T]);return D},i.prepareContent=function(R,T,D,P,M){return p.Promise.resolve(T).then(function(O){return c.blob&&(O instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(O))!==-1)&&typeof FileReader<"u"?new p.Promise(function(I,Y){var K=new FileReader;K.onload=function(q){I(q.target.result)},K.onerror=function(q){Y(q.target.error)},K.readAsArrayBuffer(O)}):O}).then(function(O){var I=i.getTypeOf(O);return I?(I==="arraybuffer"?O=i.transformTo("uint8array",O):I==="string"&&(M?O=d.decode(O):D&&P!==!0&&(O=(function(Y){return A(Y,c.uint8array?new Uint8Array(Y.length):new Array(Y.length))})(O))),O):p.Promise.reject(new Error("Can't read the data of '"+R+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,s,i){var c=n("./reader/readerFor"),d=n("./utils"),h=n("./signature"),p=n("./zipEntry"),u=n("./support");function A(y){this.files=[],this.loadOptions=y}A.prototype={checkSignature:function(y){if(!this.reader.readAndCheckSignature(y)){this.reader.index-=4;var x=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+d.pretty(x)+", expected "+d.pretty(y)+")")}},isSignature:function(y,x){var S=this.reader.index;this.reader.setIndex(y);var C=this.reader.readString(4)===x;return this.reader.setIndex(S),C},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var y=this.reader.readData(this.zipCommentLength),x=u.uint8array?"uint8array":"array",S=d.transformTo(x,y);this.zipComment=this.loadOptions.decodeFileName(S)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var y,x,S,C=this.zip64EndOfCentralSize-44;0<C;)y=this.reader.readInt(2),x=this.reader.readInt(4),S=this.reader.readData(x),this.zip64ExtensibleData[y]={id:y,length:x,value:S}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var y,x;for(y=0;y<this.files.length;y++)x=this.files[y],this.reader.setIndex(x.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),x.readLocalPart(this.reader),x.handleUTF8(),x.processAttributes()},readCentralDir:function(){var y;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(h.CENTRAL_FILE_HEADER);)(y=new p({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(y);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var y=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(y<0)throw this.isSignature(0,h.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(y);var x=y;if(this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===d.MAX_VALUE_16BITS||this.diskWithCentralDirStart===d.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===d.MAX_VALUE_16BITS||this.centralDirRecords===d.MAX_VALUE_16BITS||this.centralDirSize===d.MAX_VALUE_32BITS||this.centralDirOffset===d.MAX_VALUE_32BITS){if(this.zip64=!0,(y=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(y),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,h.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var S=this.centralDirOffset+this.centralDirSize;this.zip64&&(S+=20,S+=12+this.zip64EndOfCentralSize);var C=x-S;if(0<C)this.isSignature(x,h.CENTRAL_FILE_HEADER)||(this.reader.zero=C);else if(C<0)throw new Error("Corrupted zip: missing "+Math.abs(C)+" bytes.")},prepareReader:function(y){this.reader=c(y)},load:function(y){this.prepareReader(y),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},s.exports=A},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,s,i){var c=n("./reader/readerFor"),d=n("./utils"),h=n("./compressedObject"),p=n("./crc32"),u=n("./utf8"),A=n("./compressions"),y=n("./support");function x(S,C){this.options=S,this.loadOptions=C}x.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(S){var C,R;if(S.skip(22),this.fileNameLength=S.readInt(2),R=S.readInt(2),this.fileName=S.readData(this.fileNameLength),S.skip(R),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((C=(function(T){for(var D in A)if(Object.prototype.hasOwnProperty.call(A,D)&&A[D].magic===T)return A[D];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+d.pretty(this.compressionMethod)+" unknown (inner file : "+d.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,C,S.readData(this.compressedSize))},readCentralPart:function(S){this.versionMadeBy=S.readInt(2),S.skip(2),this.bitFlag=S.readInt(2),this.compressionMethod=S.readString(2),this.date=S.readDate(),this.crc32=S.readInt(4),this.compressedSize=S.readInt(4),this.uncompressedSize=S.readInt(4);var C=S.readInt(2);if(this.extraFieldsLength=S.readInt(2),this.fileCommentLength=S.readInt(2),this.diskNumberStart=S.readInt(2),this.internalFileAttributes=S.readInt(2),this.externalFileAttributes=S.readInt(4),this.localHeaderOffset=S.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");S.skip(C),this.readExtraFields(S),this.parseZIP64ExtraField(S),this.fileComment=S.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var S=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),S==0&&(this.dosPermissions=63&this.externalFileAttributes),S==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var S=c(this.extraFields[1].value);this.uncompressedSize===d.MAX_VALUE_32BITS&&(this.uncompressedSize=S.readInt(8)),this.compressedSize===d.MAX_VALUE_32BITS&&(this.compressedSize=S.readInt(8)),this.localHeaderOffset===d.MAX_VALUE_32BITS&&(this.localHeaderOffset=S.readInt(8)),this.diskNumberStart===d.MAX_VALUE_32BITS&&(this.diskNumberStart=S.readInt(4))}},readExtraFields:function(S){var C,R,T,D=S.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});S.index+4<D;)C=S.readInt(2),R=S.readInt(2),T=S.readData(R),this.extraFields[C]={id:C,length:R,value:T};S.setIndex(D)},handleUTF8:function(){var S=y.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var C=this.findExtraFieldUnicodePath();if(C!==null)this.fileNameStr=C;else{var R=d.transformTo(S,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(R)}var T=this.findExtraFieldUnicodeComment();if(T!==null)this.fileCommentStr=T;else{var D=d.transformTo(S,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(D)}}},findExtraFieldUnicodePath:function(){var S=this.extraFields[28789];if(S){var C=c(S.value);return C.readInt(1)!==1||p(this.fileName)!==C.readInt(4)?null:u.utf8decode(C.readData(S.length-5))}return null},findExtraFieldUnicodeComment:function(){var S=this.extraFields[25461];if(S){var C=c(S.value);return C.readInt(1)!==1||p(this.fileComment)!==C.readInt(4)?null:u.utf8decode(C.readData(S.length-5))}return null}},s.exports=x},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,s,i){function c(C,R,T){this.name=C,this.dir=T.dir,this.date=T.date,this.comment=T.comment,this.unixPermissions=T.unixPermissions,this.dosPermissions=T.dosPermissions,this._data=R,this._dataBinary=T.binary,this.options={compression:T.compression,compressionOptions:T.compressionOptions}}var d=n("./stream/StreamHelper"),h=n("./stream/DataWorker"),p=n("./utf8"),u=n("./compressedObject"),A=n("./stream/GenericWorker");c.prototype={internalStream:function(C){var R=null,T="string";try{if(!C)throw new Error("No output type specified.");var D=(T=C.toLowerCase())==="string"||T==="text";T!=="binarystring"&&T!=="text"||(T="string"),R=this._decompressWorker();var P=!this._dataBinary;P&&!D&&(R=R.pipe(new p.Utf8EncodeWorker)),!P&&D&&(R=R.pipe(new p.Utf8DecodeWorker))}catch(M){(R=new A("error")).error(M)}return new d(R,T,"")},async:function(C,R){return this.internalStream(C).accumulate(R)},nodeStream:function(C,R){return this.internalStream(C||"nodebuffer").toNodejsStream(R)},_compressWorker:function(C,R){if(this._data instanceof u&&this._data.compression.magic===C.magic)return this._data.getCompressedWorker();var T=this._decompressWorker();return this._dataBinary||(T=T.pipe(new p.Utf8EncodeWorker)),u.createWorkerFrom(T,C,R)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof A?this._data:new h(this._data)}};for(var y=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],x=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},S=0;S<y.length;S++)c.prototype[y[S]]=x;s.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,s,i){(function(c){var d,h,p=c.MutationObserver||c.WebKitMutationObserver;if(p){var u=0,A=new p(C),y=c.document.createTextNode("");A.observe(y,{characterData:!0}),d=function(){y.data=u=++u%2}}else if(c.setImmediate||c.MessageChannel===void 0)d="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var R=c.document.createElement("script");R.onreadystatechange=function(){C(),R.onreadystatechange=null,R.parentNode.removeChild(R),R=null},c.document.documentElement.appendChild(R)}:function(){setTimeout(C,0)};else{var x=new c.MessageChannel;x.port1.onmessage=C,d=function(){x.port2.postMessage(0)}}var S=[];function C(){var R,T;h=!0;for(var D=S.length;D;){for(T=S,S=[],R=-1;++R<D;)T[R]();D=S.length}h=!1}s.exports=function(R){S.push(R)!==1||h||d()}}).call(this,typeof kp<"u"?kp:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,s,i){var c=n("immediate");function d(){}var h={},p=["REJECTED"],u=["FULFILLED"],A=["PENDING"];function y(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=A,this.queue=[],this.outcome=void 0,D!==d&&R(this,D)}function x(D,P,M){this.promise=D,typeof P=="function"&&(this.onFulfilled=P,this.callFulfilled=this.otherCallFulfilled),typeof M=="function"&&(this.onRejected=M,this.callRejected=this.otherCallRejected)}function S(D,P,M){c(function(){var O;try{O=P(M)}catch(I){return h.reject(D,I)}O===D?h.reject(D,new TypeError("Cannot resolve promise with itself")):h.resolve(D,O)})}function C(D){var P=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof P=="function")return function(){P.apply(D,arguments)}}function R(D,P){var M=!1;function O(K){M||(M=!0,h.reject(D,K))}function I(K){M||(M=!0,h.resolve(D,K))}var Y=T(function(){P(I,O)});Y.status==="error"&&O(Y.value)}function T(D,P){var M={};try{M.value=D(P),M.status="success"}catch(O){M.status="error",M.value=O}return M}(s.exports=y).prototype.finally=function(D){if(typeof D!="function")return this;var P=this.constructor;return this.then(function(M){return P.resolve(D()).then(function(){return M})},function(M){return P.resolve(D()).then(function(){throw M})})},y.prototype.catch=function(D){return this.then(null,D)},y.prototype.then=function(D,P){if(typeof D!="function"&&this.state===u||typeof P!="function"&&this.state===p)return this;var M=new this.constructor(d);return this.state!==A?S(M,this.state===u?D:P,this.outcome):this.queue.push(new x(M,D,P)),M},x.prototype.callFulfilled=function(D){h.resolve(this.promise,D)},x.prototype.otherCallFulfilled=function(D){S(this.promise,this.onFulfilled,D)},x.prototype.callRejected=function(D){h.reject(this.promise,D)},x.prototype.otherCallRejected=function(D){S(this.promise,this.onRejected,D)},h.resolve=function(D,P){var M=T(C,P);if(M.status==="error")return h.reject(D,M.value);var O=M.value;if(O)R(D,O);else{D.state=u,D.outcome=P;for(var I=-1,Y=D.queue.length;++I<Y;)D.queue[I].callFulfilled(P)}return D},h.reject=function(D,P){D.state=p,D.outcome=P;for(var M=-1,O=D.queue.length;++M<O;)D.queue[M].callRejected(P);return D},y.resolve=function(D){return D instanceof this?D:h.resolve(new this(d),D)},y.reject=function(D){var P=new this(d);return h.reject(P,D)},y.all=function(D){var P=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=D.length,O=!1;if(!M)return this.resolve([]);for(var I=new Array(M),Y=0,K=-1,q=new this(d);++K<M;)Q(D[K],K);return q;function Q(V,ge){P.resolve(V).then(function(W){I[ge]=W,++Y!==M||O||(O=!0,h.resolve(q,I))},function(W){O||(O=!0,h.reject(q,W))})}},y.race=function(D){var P=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=D.length,O=!1;if(!M)return this.resolve([]);for(var I=-1,Y=new this(d);++I<M;)K=D[I],P.resolve(K).then(function(q){O||(O=!0,h.resolve(Y,q))},function(q){O||(O=!0,h.reject(Y,q))});var K;return Y}},{immediate:36}],38:[function(n,s,i){var c={};(0,n("./lib/utils/common").assign)(c,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),s.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,s,i){var c=n("./zlib/deflate"),d=n("./utils/common"),h=n("./utils/strings"),p=n("./zlib/messages"),u=n("./zlib/zstream"),A=Object.prototype.toString,y=0,x=-1,S=0,C=8;function R(D){if(!(this instanceof R))return new R(D);this.options=d.assign({level:x,method:C,chunkSize:16384,windowBits:15,memLevel:8,strategy:S,to:""},D||{});var P=this.options;P.raw&&0<P.windowBits?P.windowBits=-P.windowBits:P.gzip&&0<P.windowBits&&P.windowBits<16&&(P.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var M=c.deflateInit2(this.strm,P.level,P.method,P.windowBits,P.memLevel,P.strategy);if(M!==y)throw new Error(p[M]);if(P.header&&c.deflateSetHeader(this.strm,P.header),P.dictionary){var O;if(O=typeof P.dictionary=="string"?h.string2buf(P.dictionary):A.call(P.dictionary)==="[object ArrayBuffer]"?new Uint8Array(P.dictionary):P.dictionary,(M=c.deflateSetDictionary(this.strm,O))!==y)throw new Error(p[M]);this._dict_set=!0}}function T(D,P){var M=new R(P);if(M.push(D,!0),M.err)throw M.msg||p[M.err];return M.result}R.prototype.push=function(D,P){var M,O,I=this.strm,Y=this.options.chunkSize;if(this.ended)return!1;O=P===~~P?P:P===!0?4:0,typeof D=="string"?I.input=h.string2buf(D):A.call(D)==="[object ArrayBuffer]"?I.input=new Uint8Array(D):I.input=D,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new d.Buf8(Y),I.next_out=0,I.avail_out=Y),(M=c.deflate(I,O))!==1&&M!==y)return this.onEnd(M),!(this.ended=!0);I.avail_out!==0&&(I.avail_in!==0||O!==4&&O!==2)||(this.options.to==="string"?this.onData(h.buf2binstring(d.shrinkBuf(I.output,I.next_out))):this.onData(d.shrinkBuf(I.output,I.next_out)))}while((0<I.avail_in||I.avail_out===0)&&M!==1);return O===4?(M=c.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===y):O!==2||(this.onEnd(y),!(I.avail_out=0))},R.prototype.onData=function(D){this.chunks.push(D)},R.prototype.onEnd=function(D){D===y&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=D,this.msg=this.strm.msg},i.Deflate=R,i.deflate=T,i.deflateRaw=function(D,P){return(P=P||{}).raw=!0,T(D,P)},i.gzip=function(D,P){return(P=P||{}).gzip=!0,T(D,P)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,s,i){var c=n("./zlib/inflate"),d=n("./utils/common"),h=n("./utils/strings"),p=n("./zlib/constants"),u=n("./zlib/messages"),A=n("./zlib/zstream"),y=n("./zlib/gzheader"),x=Object.prototype.toString;function S(R){if(!(this instanceof S))return new S(R);this.options=d.assign({chunkSize:16384,windowBits:0,to:""},R||{});var T=this.options;T.raw&&0<=T.windowBits&&T.windowBits<16&&(T.windowBits=-T.windowBits,T.windowBits===0&&(T.windowBits=-15)),!(0<=T.windowBits&&T.windowBits<16)||R&&R.windowBits||(T.windowBits+=32),15<T.windowBits&&T.windowBits<48&&(15&T.windowBits)==0&&(T.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new A,this.strm.avail_out=0;var D=c.inflateInit2(this.strm,T.windowBits);if(D!==p.Z_OK)throw new Error(u[D]);this.header=new y,c.inflateGetHeader(this.strm,this.header)}function C(R,T){var D=new S(T);if(D.push(R,!0),D.err)throw D.msg||u[D.err];return D.result}S.prototype.push=function(R,T){var D,P,M,O,I,Y,K=this.strm,q=this.options.chunkSize,Q=this.options.dictionary,V=!1;if(this.ended)return!1;P=T===~~T?T:T===!0?p.Z_FINISH:p.Z_NO_FLUSH,typeof R=="string"?K.input=h.binstring2buf(R):x.call(R)==="[object ArrayBuffer]"?K.input=new Uint8Array(R):K.input=R,K.next_in=0,K.avail_in=K.input.length;do{if(K.avail_out===0&&(K.output=new d.Buf8(q),K.next_out=0,K.avail_out=q),(D=c.inflate(K,p.Z_NO_FLUSH))===p.Z_NEED_DICT&&Q&&(Y=typeof Q=="string"?h.string2buf(Q):x.call(Q)==="[object ArrayBuffer]"?new Uint8Array(Q):Q,D=c.inflateSetDictionary(this.strm,Y)),D===p.Z_BUF_ERROR&&V===!0&&(D=p.Z_OK,V=!1),D!==p.Z_STREAM_END&&D!==p.Z_OK)return this.onEnd(D),!(this.ended=!0);K.next_out&&(K.avail_out!==0&&D!==p.Z_STREAM_END&&(K.avail_in!==0||P!==p.Z_FINISH&&P!==p.Z_SYNC_FLUSH)||(this.options.to==="string"?(M=h.utf8border(K.output,K.next_out),O=K.next_out-M,I=h.buf2string(K.output,M),K.next_out=O,K.avail_out=q-O,O&&d.arraySet(K.output,K.output,M,O,0),this.onData(I)):this.onData(d.shrinkBuf(K.output,K.next_out)))),K.avail_in===0&&K.avail_out===0&&(V=!0)}while((0<K.avail_in||K.avail_out===0)&&D!==p.Z_STREAM_END);return D===p.Z_STREAM_END&&(P=p.Z_FINISH),P===p.Z_FINISH?(D=c.inflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===p.Z_OK):P!==p.Z_SYNC_FLUSH||(this.onEnd(p.Z_OK),!(K.avail_out=0))},S.prototype.onData=function(R){this.chunks.push(R)},S.prototype.onEnd=function(R){R===p.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},i.Inflate=S,i.inflate=C,i.inflateRaw=function(R,T){return(T=T||{}).raw=!0,C(R,T)},i.ungzip=C},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,s,i){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(p){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var A=u.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(var y in A)A.hasOwnProperty(y)&&(p[y]=A[y])}}return p},i.shrinkBuf=function(p,u){return p.length===u?p:p.subarray?p.subarray(0,u):(p.length=u,p)};var d={arraySet:function(p,u,A,y,x){if(u.subarray&&p.subarray)p.set(u.subarray(A,A+y),x);else for(var S=0;S<y;S++)p[x+S]=u[A+S]},flattenChunks:function(p){var u,A,y,x,S,C;for(u=y=0,A=p.length;u<A;u++)y+=p[u].length;for(C=new Uint8Array(y),u=x=0,A=p.length;u<A;u++)S=p[u],C.set(S,x),x+=S.length;return C}},h={arraySet:function(p,u,A,y,x){for(var S=0;S<y;S++)p[x+S]=u[A+S]},flattenChunks:function(p){return[].concat.apply([],p)}};i.setTyped=function(p){p?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,d)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,h))},i.setTyped(c)},{}],42:[function(n,s,i){var c=n("./common"),d=!0,h=!0;try{String.fromCharCode.apply(null,[0])}catch{d=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{h=!1}for(var p=new c.Buf8(256),u=0;u<256;u++)p[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function A(y,x){if(x<65537&&(y.subarray&&h||!y.subarray&&d))return String.fromCharCode.apply(null,c.shrinkBuf(y,x));for(var S="",C=0;C<x;C++)S+=String.fromCharCode(y[C]);return S}p[254]=p[254]=1,i.string2buf=function(y){var x,S,C,R,T,D=y.length,P=0;for(R=0;R<D;R++)(64512&(S=y.charCodeAt(R)))==55296&&R+1<D&&(64512&(C=y.charCodeAt(R+1)))==56320&&(S=65536+(S-55296<<10)+(C-56320),R++),P+=S<128?1:S<2048?2:S<65536?3:4;for(x=new c.Buf8(P),R=T=0;T<P;R++)(64512&(S=y.charCodeAt(R)))==55296&&R+1<D&&(64512&(C=y.charCodeAt(R+1)))==56320&&(S=65536+(S-55296<<10)+(C-56320),R++),S<128?x[T++]=S:(S<2048?x[T++]=192|S>>>6:(S<65536?x[T++]=224|S>>>12:(x[T++]=240|S>>>18,x[T++]=128|S>>>12&63),x[T++]=128|S>>>6&63),x[T++]=128|63&S);return x},i.buf2binstring=function(y){return A(y,y.length)},i.binstring2buf=function(y){for(var x=new c.Buf8(y.length),S=0,C=x.length;S<C;S++)x[S]=y.charCodeAt(S);return x},i.buf2string=function(y,x){var S,C,R,T,D=x||y.length,P=new Array(2*D);for(S=C=0;S<D;)if((R=y[S++])<128)P[C++]=R;else if(4<(T=p[R]))P[C++]=65533,S+=T-1;else{for(R&=T===2?31:T===3?15:7;1<T&&S<D;)R=R<<6|63&y[S++],T--;1<T?P[C++]=65533:R<65536?P[C++]=R:(R-=65536,P[C++]=55296|R>>10&1023,P[C++]=56320|1023&R)}return A(P,C)},i.utf8border=function(y,x){var S;for((x=x||y.length)>y.length&&(x=y.length),S=x-1;0<=S&&(192&y[S])==128;)S--;return S<0||S===0?x:S+p[y[S]]>x?S:x}},{"./common":41}],43:[function(n,s,i){s.exports=function(c,d,h,p){for(var u=65535&c|0,A=c>>>16&65535|0,y=0;h!==0;){for(h-=y=2e3<h?2e3:h;A=A+(u=u+d[p++]|0)|0,--y;);u%=65521,A%=65521}return u|A<<16|0}},{}],44:[function(n,s,i){s.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,s,i){var c=(function(){for(var d,h=[],p=0;p<256;p++){d=p;for(var u=0;u<8;u++)d=1&d?3988292384^d>>>1:d>>>1;h[p]=d}return h})();s.exports=function(d,h,p,u){var A=c,y=u+p;d^=-1;for(var x=u;x<y;x++)d=d>>>8^A[255&(d^h[x])];return-1^d}},{}],46:[function(n,s,i){var c,d=n("../utils/common"),h=n("./trees"),p=n("./adler32"),u=n("./crc32"),A=n("./messages"),y=0,x=4,S=0,C=-2,R=-1,T=4,D=2,P=8,M=9,O=286,I=30,Y=19,K=2*O+1,q=15,Q=3,V=258,ge=V+Q+1,W=42,se=113,L=1,ne=2,le=3,pe=4;function J(k,ce){return k.msg=A[ce],ce}function ae(k){return(k<<1)-(4<k?9:0)}function re(k){for(var ce=k.length;0<=--ce;)k[ce]=0}function U(k){var ce=k.state,de=ce.pending;de>k.avail_out&&(de=k.avail_out),de!==0&&(d.arraySet(k.output,ce.pending_buf,ce.pending_out,de,k.next_out),k.next_out+=de,ce.pending_out+=de,k.total_out+=de,k.avail_out-=de,ce.pending-=de,ce.pending===0&&(ce.pending_out=0))}function ee(k,ce){h._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,ce),k.block_start=k.strstart,U(k.strm)}function Ee(k,ce){k.pending_buf[k.pending++]=ce}function Re(k,ce){k.pending_buf[k.pending++]=ce>>>8&255,k.pending_buf[k.pending++]=255&ce}function Ne(k,ce){var de,G,j=k.max_chain_length,$=k.strstart,ye=k.prev_length,Ce=k.nice_match,Ae=k.strstart>k.w_size-ge?k.strstart-(k.w_size-ge):0,ze=k.window,Xe=k.w_mask,Ie=k.prev,dt=k.strstart+V,Jt=ze[$+ye-1],zt=ze[$+ye];k.prev_length>=k.good_match&&(j>>=2),Ce>k.lookahead&&(Ce=k.lookahead);do if(ze[(de=ce)+ye]===zt&&ze[de+ye-1]===Jt&&ze[de]===ze[$]&&ze[++de]===ze[$+1]){$+=2,de++;do;while(ze[++$]===ze[++de]&&ze[++$]===ze[++de]&&ze[++$]===ze[++de]&&ze[++$]===ze[++de]&&ze[++$]===ze[++de]&&ze[++$]===ze[++de]&&ze[++$]===ze[++de]&&ze[++$]===ze[++de]&&$<dt);if(G=V-(dt-$),$=dt-V,ye<G){if(k.match_start=ce,Ce<=(ye=G))break;Jt=ze[$+ye-1],zt=ze[$+ye]}}while((ce=Ie[ce&Xe])>Ae&&--j!=0);return ye<=k.lookahead?ye:k.lookahead}function Ue(k){var ce,de,G,j,$,ye,Ce,Ae,ze,Xe,Ie=k.w_size;do{if(j=k.window_size-k.lookahead-k.strstart,k.strstart>=Ie+(Ie-ge)){for(d.arraySet(k.window,k.window,Ie,Ie,0),k.match_start-=Ie,k.strstart-=Ie,k.block_start-=Ie,ce=de=k.hash_size;G=k.head[--ce],k.head[ce]=Ie<=G?G-Ie:0,--de;);for(ce=de=Ie;G=k.prev[--ce],k.prev[ce]=Ie<=G?G-Ie:0,--de;);j+=Ie}if(k.strm.avail_in===0)break;if(ye=k.strm,Ce=k.window,Ae=k.strstart+k.lookahead,ze=j,Xe=void 0,Xe=ye.avail_in,ze<Xe&&(Xe=ze),de=Xe===0?0:(ye.avail_in-=Xe,d.arraySet(Ce,ye.input,ye.next_in,Xe,Ae),ye.state.wrap===1?ye.adler=p(ye.adler,Ce,Xe,Ae):ye.state.wrap===2&&(ye.adler=u(ye.adler,Ce,Xe,Ae)),ye.next_in+=Xe,ye.total_in+=Xe,Xe),k.lookahead+=de,k.lookahead+k.insert>=Q)for($=k.strstart-k.insert,k.ins_h=k.window[$],k.ins_h=(k.ins_h<<k.hash_shift^k.window[$+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[$+Q-1])&k.hash_mask,k.prev[$&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=$,$++,k.insert--,!(k.lookahead+k.insert<Q)););}while(k.lookahead<ge&&k.strm.avail_in!==0)}function ot(k,ce){for(var de,G;;){if(k.lookahead<ge){if(Ue(k),k.lookahead<ge&&ce===y)return L;if(k.lookahead===0)break}if(de=0,k.lookahead>=Q&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Q-1])&k.hash_mask,de=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),de!==0&&k.strstart-de<=k.w_size-ge&&(k.match_length=Ne(k,de)),k.match_length>=Q)if(G=h._tr_tally(k,k.strstart-k.match_start,k.match_length-Q),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=Q){for(k.match_length--;k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Q-1])&k.hash_mask,de=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart,--k.match_length!=0;);k.strstart++}else k.strstart+=k.match_length,k.match_length=0,k.ins_h=k.window[k.strstart],k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+1])&k.hash_mask;else G=h._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(G&&(ee(k,!1),k.strm.avail_out===0))return L}return k.insert=k.strstart<Q-1?k.strstart:Q-1,ce===x?(ee(k,!0),k.strm.avail_out===0?le:pe):k.last_lit&&(ee(k,!1),k.strm.avail_out===0)?L:ne}function lt(k,ce){for(var de,G,j;;){if(k.lookahead<ge){if(Ue(k),k.lookahead<ge&&ce===y)return L;if(k.lookahead===0)break}if(de=0,k.lookahead>=Q&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Q-1])&k.hash_mask,de=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),k.prev_length=k.match_length,k.prev_match=k.match_start,k.match_length=Q-1,de!==0&&k.prev_length<k.max_lazy_match&&k.strstart-de<=k.w_size-ge&&(k.match_length=Ne(k,de),k.match_length<=5&&(k.strategy===1||k.match_length===Q&&4096<k.strstart-k.match_start)&&(k.match_length=Q-1)),k.prev_length>=Q&&k.match_length<=k.prev_length){for(j=k.strstart+k.lookahead-Q,G=h._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-Q),k.lookahead-=k.prev_length-1,k.prev_length-=2;++k.strstart<=j&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Q-1])&k.hash_mask,de=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),--k.prev_length!=0;);if(k.match_available=0,k.match_length=Q-1,k.strstart++,G&&(ee(k,!1),k.strm.avail_out===0))return L}else if(k.match_available){if((G=h._tr_tally(k,0,k.window[k.strstart-1]))&&ee(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return L}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&(G=h._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<Q-1?k.strstart:Q-1,ce===x?(ee(k,!0),k.strm.avail_out===0?le:pe):k.last_lit&&(ee(k,!1),k.strm.avail_out===0)?L:ne}function pt(k,ce,de,G,j){this.good_length=k,this.max_lazy=ce,this.nice_length=de,this.max_chain=G,this.func=j}function Lt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=P,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new d.Buf16(2*K),this.dyn_dtree=new d.Buf16(2*(2*I+1)),this.bl_tree=new d.Buf16(2*(2*Y+1)),re(this.dyn_ltree),re(this.dyn_dtree),re(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new d.Buf16(q+1),this.heap=new d.Buf16(2*O+1),re(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new d.Buf16(2*O+1),re(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function qe(k){var ce;return k&&k.state?(k.total_in=k.total_out=0,k.data_type=D,(ce=k.state).pending=0,ce.pending_out=0,ce.wrap<0&&(ce.wrap=-ce.wrap),ce.status=ce.wrap?W:se,k.adler=ce.wrap===2?0:1,ce.last_flush=y,h._tr_init(ce),S):J(k,C)}function Dt(k){var ce=qe(k);return ce===S&&(function(de){de.window_size=2*de.w_size,re(de.head),de.max_lazy_match=c[de.level].max_lazy,de.good_match=c[de.level].good_length,de.nice_match=c[de.level].nice_length,de.max_chain_length=c[de.level].max_chain,de.strstart=0,de.block_start=0,de.lookahead=0,de.insert=0,de.match_length=de.prev_length=Q-1,de.match_available=0,de.ins_h=0})(k.state),ce}function me(k,ce,de,G,j,$){if(!k)return C;var ye=1;if(ce===R&&(ce=6),G<0?(ye=0,G=-G):15<G&&(ye=2,G-=16),j<1||M<j||de!==P||G<8||15<G||ce<0||9<ce||$<0||T<$)return J(k,C);G===8&&(G=9);var Ce=new Lt;return(k.state=Ce).strm=k,Ce.wrap=ye,Ce.gzhead=null,Ce.w_bits=G,Ce.w_size=1<<Ce.w_bits,Ce.w_mask=Ce.w_size-1,Ce.hash_bits=j+7,Ce.hash_size=1<<Ce.hash_bits,Ce.hash_mask=Ce.hash_size-1,Ce.hash_shift=~~((Ce.hash_bits+Q-1)/Q),Ce.window=new d.Buf8(2*Ce.w_size),Ce.head=new d.Buf16(Ce.hash_size),Ce.prev=new d.Buf16(Ce.w_size),Ce.lit_bufsize=1<<j+6,Ce.pending_buf_size=4*Ce.lit_bufsize,Ce.pending_buf=new d.Buf8(Ce.pending_buf_size),Ce.d_buf=1*Ce.lit_bufsize,Ce.l_buf=3*Ce.lit_bufsize,Ce.level=ce,Ce.strategy=$,Ce.method=de,Dt(k)}c=[new pt(0,0,0,0,function(k,ce){var de=65535;for(de>k.pending_buf_size-5&&(de=k.pending_buf_size-5);;){if(k.lookahead<=1){if(Ue(k),k.lookahead===0&&ce===y)return L;if(k.lookahead===0)break}k.strstart+=k.lookahead,k.lookahead=0;var G=k.block_start+de;if((k.strstart===0||k.strstart>=G)&&(k.lookahead=k.strstart-G,k.strstart=G,ee(k,!1),k.strm.avail_out===0)||k.strstart-k.block_start>=k.w_size-ge&&(ee(k,!1),k.strm.avail_out===0))return L}return k.insert=0,ce===x?(ee(k,!0),k.strm.avail_out===0?le:pe):(k.strstart>k.block_start&&(ee(k,!1),k.strm.avail_out),L)}),new pt(4,4,8,4,ot),new pt(4,5,16,8,ot),new pt(4,6,32,32,ot),new pt(4,4,16,16,lt),new pt(8,16,32,32,lt),new pt(8,16,128,128,lt),new pt(8,32,128,256,lt),new pt(32,128,258,1024,lt),new pt(32,258,258,4096,lt)],i.deflateInit=function(k,ce){return me(k,ce,P,15,8,0)},i.deflateInit2=me,i.deflateReset=Dt,i.deflateResetKeep=qe,i.deflateSetHeader=function(k,ce){return k&&k.state?k.state.wrap!==2?C:(k.state.gzhead=ce,S):C},i.deflate=function(k,ce){var de,G,j,$;if(!k||!k.state||5<ce||ce<0)return k?J(k,C):C;if(G=k.state,!k.output||!k.input&&k.avail_in!==0||G.status===666&&ce!==x)return J(k,k.avail_out===0?-5:C);if(G.strm=k,de=G.last_flush,G.last_flush=ce,G.status===W)if(G.wrap===2)k.adler=0,Ee(G,31),Ee(G,139),Ee(G,8),G.gzhead?(Ee(G,(G.gzhead.text?1:0)+(G.gzhead.hcrc?2:0)+(G.gzhead.extra?4:0)+(G.gzhead.name?8:0)+(G.gzhead.comment?16:0)),Ee(G,255&G.gzhead.time),Ee(G,G.gzhead.time>>8&255),Ee(G,G.gzhead.time>>16&255),Ee(G,G.gzhead.time>>24&255),Ee(G,G.level===9?2:2<=G.strategy||G.level<2?4:0),Ee(G,255&G.gzhead.os),G.gzhead.extra&&G.gzhead.extra.length&&(Ee(G,255&G.gzhead.extra.length),Ee(G,G.gzhead.extra.length>>8&255)),G.gzhead.hcrc&&(k.adler=u(k.adler,G.pending_buf,G.pending,0)),G.gzindex=0,G.status=69):(Ee(G,0),Ee(G,0),Ee(G,0),Ee(G,0),Ee(G,0),Ee(G,G.level===9?2:2<=G.strategy||G.level<2?4:0),Ee(G,3),G.status=se);else{var ye=P+(G.w_bits-8<<4)<<8;ye|=(2<=G.strategy||G.level<2?0:G.level<6?1:G.level===6?2:3)<<6,G.strstart!==0&&(ye|=32),ye+=31-ye%31,G.status=se,Re(G,ye),G.strstart!==0&&(Re(G,k.adler>>>16),Re(G,65535&k.adler)),k.adler=1}if(G.status===69)if(G.gzhead.extra){for(j=G.pending;G.gzindex<(65535&G.gzhead.extra.length)&&(G.pending!==G.pending_buf_size||(G.gzhead.hcrc&&G.pending>j&&(k.adler=u(k.adler,G.pending_buf,G.pending-j,j)),U(k),j=G.pending,G.pending!==G.pending_buf_size));)Ee(G,255&G.gzhead.extra[G.gzindex]),G.gzindex++;G.gzhead.hcrc&&G.pending>j&&(k.adler=u(k.adler,G.pending_buf,G.pending-j,j)),G.gzindex===G.gzhead.extra.length&&(G.gzindex=0,G.status=73)}else G.status=73;if(G.status===73)if(G.gzhead.name){j=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>j&&(k.adler=u(k.adler,G.pending_buf,G.pending-j,j)),U(k),j=G.pending,G.pending===G.pending_buf_size)){$=1;break}$=G.gzindex<G.gzhead.name.length?255&G.gzhead.name.charCodeAt(G.gzindex++):0,Ee(G,$)}while($!==0);G.gzhead.hcrc&&G.pending>j&&(k.adler=u(k.adler,G.pending_buf,G.pending-j,j)),$===0&&(G.gzindex=0,G.status=91)}else G.status=91;if(G.status===91)if(G.gzhead.comment){j=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>j&&(k.adler=u(k.adler,G.pending_buf,G.pending-j,j)),U(k),j=G.pending,G.pending===G.pending_buf_size)){$=1;break}$=G.gzindex<G.gzhead.comment.length?255&G.gzhead.comment.charCodeAt(G.gzindex++):0,Ee(G,$)}while($!==0);G.gzhead.hcrc&&G.pending>j&&(k.adler=u(k.adler,G.pending_buf,G.pending-j,j)),$===0&&(G.status=103)}else G.status=103;if(G.status===103&&(G.gzhead.hcrc?(G.pending+2>G.pending_buf_size&&U(k),G.pending+2<=G.pending_buf_size&&(Ee(G,255&k.adler),Ee(G,k.adler>>8&255),k.adler=0,G.status=se)):G.status=se),G.pending!==0){if(U(k),k.avail_out===0)return G.last_flush=-1,S}else if(k.avail_in===0&&ae(ce)<=ae(de)&&ce!==x)return J(k,-5);if(G.status===666&&k.avail_in!==0)return J(k,-5);if(k.avail_in!==0||G.lookahead!==0||ce!==y&&G.status!==666){var Ce=G.strategy===2?(function(Ae,ze){for(var Xe;;){if(Ae.lookahead===0&&(Ue(Ae),Ae.lookahead===0)){if(ze===y)return L;break}if(Ae.match_length=0,Xe=h._tr_tally(Ae,0,Ae.window[Ae.strstart]),Ae.lookahead--,Ae.strstart++,Xe&&(ee(Ae,!1),Ae.strm.avail_out===0))return L}return Ae.insert=0,ze===x?(ee(Ae,!0),Ae.strm.avail_out===0?le:pe):Ae.last_lit&&(ee(Ae,!1),Ae.strm.avail_out===0)?L:ne})(G,ce):G.strategy===3?(function(Ae,ze){for(var Xe,Ie,dt,Jt,zt=Ae.window;;){if(Ae.lookahead<=V){if(Ue(Ae),Ae.lookahead<=V&&ze===y)return L;if(Ae.lookahead===0)break}if(Ae.match_length=0,Ae.lookahead>=Q&&0<Ae.strstart&&(Ie=zt[dt=Ae.strstart-1])===zt[++dt]&&Ie===zt[++dt]&&Ie===zt[++dt]){Jt=Ae.strstart+V;do;while(Ie===zt[++dt]&&Ie===zt[++dt]&&Ie===zt[++dt]&&Ie===zt[++dt]&&Ie===zt[++dt]&&Ie===zt[++dt]&&Ie===zt[++dt]&&Ie===zt[++dt]&&dt<Jt);Ae.match_length=V-(Jt-dt),Ae.match_length>Ae.lookahead&&(Ae.match_length=Ae.lookahead)}if(Ae.match_length>=Q?(Xe=h._tr_tally(Ae,1,Ae.match_length-Q),Ae.lookahead-=Ae.match_length,Ae.strstart+=Ae.match_length,Ae.match_length=0):(Xe=h._tr_tally(Ae,0,Ae.window[Ae.strstart]),Ae.lookahead--,Ae.strstart++),Xe&&(ee(Ae,!1),Ae.strm.avail_out===0))return L}return Ae.insert=0,ze===x?(ee(Ae,!0),Ae.strm.avail_out===0?le:pe):Ae.last_lit&&(ee(Ae,!1),Ae.strm.avail_out===0)?L:ne})(G,ce):c[G.level].func(G,ce);if(Ce!==le&&Ce!==pe||(G.status=666),Ce===L||Ce===le)return k.avail_out===0&&(G.last_flush=-1),S;if(Ce===ne&&(ce===1?h._tr_align(G):ce!==5&&(h._tr_stored_block(G,0,0,!1),ce===3&&(re(G.head),G.lookahead===0&&(G.strstart=0,G.block_start=0,G.insert=0))),U(k),k.avail_out===0))return G.last_flush=-1,S}return ce!==x?S:G.wrap<=0?1:(G.wrap===2?(Ee(G,255&k.adler),Ee(G,k.adler>>8&255),Ee(G,k.adler>>16&255),Ee(G,k.adler>>24&255),Ee(G,255&k.total_in),Ee(G,k.total_in>>8&255),Ee(G,k.total_in>>16&255),Ee(G,k.total_in>>24&255)):(Re(G,k.adler>>>16),Re(G,65535&k.adler)),U(k),0<G.wrap&&(G.wrap=-G.wrap),G.pending!==0?S:1)},i.deflateEnd=function(k){var ce;return k&&k.state?(ce=k.state.status)!==W&&ce!==69&&ce!==73&&ce!==91&&ce!==103&&ce!==se&&ce!==666?J(k,C):(k.state=null,ce===se?J(k,-3):S):C},i.deflateSetDictionary=function(k,ce){var de,G,j,$,ye,Ce,Ae,ze,Xe=ce.length;if(!k||!k.state||($=(de=k.state).wrap)===2||$===1&&de.status!==W||de.lookahead)return C;for($===1&&(k.adler=p(k.adler,ce,Xe,0)),de.wrap=0,Xe>=de.w_size&&($===0&&(re(de.head),de.strstart=0,de.block_start=0,de.insert=0),ze=new d.Buf8(de.w_size),d.arraySet(ze,ce,Xe-de.w_size,de.w_size,0),ce=ze,Xe=de.w_size),ye=k.avail_in,Ce=k.next_in,Ae=k.input,k.avail_in=Xe,k.next_in=0,k.input=ce,Ue(de);de.lookahead>=Q;){for(G=de.strstart,j=de.lookahead-(Q-1);de.ins_h=(de.ins_h<<de.hash_shift^de.window[G+Q-1])&de.hash_mask,de.prev[G&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=G,G++,--j;);de.strstart=G,de.lookahead=Q-1,Ue(de)}return de.strstart+=de.lookahead,de.block_start=de.strstart,de.insert=de.lookahead,de.lookahead=0,de.match_length=de.prev_length=Q-1,de.match_available=0,k.next_in=Ce,k.input=Ae,k.avail_in=ye,de.wrap=$,S},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,s,i){s.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,s,i){s.exports=function(c,d){var h,p,u,A,y,x,S,C,R,T,D,P,M,O,I,Y,K,q,Q,V,ge,W,se,L,ne;h=c.state,p=c.next_in,L=c.input,u=p+(c.avail_in-5),A=c.next_out,ne=c.output,y=A-(d-c.avail_out),x=A+(c.avail_out-257),S=h.dmax,C=h.wsize,R=h.whave,T=h.wnext,D=h.window,P=h.hold,M=h.bits,O=h.lencode,I=h.distcode,Y=(1<<h.lenbits)-1,K=(1<<h.distbits)-1;e:do{M<15&&(P+=L[p++]<<M,M+=8,P+=L[p++]<<M,M+=8),q=O[P&Y];t:for(;;){if(P>>>=Q=q>>>24,M-=Q,(Q=q>>>16&255)===0)ne[A++]=65535&q;else{if(!(16&Q)){if((64&Q)==0){q=O[(65535&q)+(P&(1<<Q)-1)];continue t}if(32&Q){h.mode=12;break e}c.msg="invalid literal/length code",h.mode=30;break e}V=65535&q,(Q&=15)&&(M<Q&&(P+=L[p++]<<M,M+=8),V+=P&(1<<Q)-1,P>>>=Q,M-=Q),M<15&&(P+=L[p++]<<M,M+=8,P+=L[p++]<<M,M+=8),q=I[P&K];n:for(;;){if(P>>>=Q=q>>>24,M-=Q,!(16&(Q=q>>>16&255))){if((64&Q)==0){q=I[(65535&q)+(P&(1<<Q)-1)];continue n}c.msg="invalid distance code",h.mode=30;break e}if(ge=65535&q,M<(Q&=15)&&(P+=L[p++]<<M,(M+=8)<Q&&(P+=L[p++]<<M,M+=8)),S<(ge+=P&(1<<Q)-1)){c.msg="invalid distance too far back",h.mode=30;break e}if(P>>>=Q,M-=Q,(Q=A-y)<ge){if(R<(Q=ge-Q)&&h.sane){c.msg="invalid distance too far back",h.mode=30;break e}if(se=D,(W=0)===T){if(W+=C-Q,Q<V){for(V-=Q;ne[A++]=D[W++],--Q;);W=A-ge,se=ne}}else if(T<Q){if(W+=C+T-Q,(Q-=T)<V){for(V-=Q;ne[A++]=D[W++],--Q;);if(W=0,T<V){for(V-=Q=T;ne[A++]=D[W++],--Q;);W=A-ge,se=ne}}}else if(W+=T-Q,Q<V){for(V-=Q;ne[A++]=D[W++],--Q;);W=A-ge,se=ne}for(;2<V;)ne[A++]=se[W++],ne[A++]=se[W++],ne[A++]=se[W++],V-=3;V&&(ne[A++]=se[W++],1<V&&(ne[A++]=se[W++]))}else{for(W=A-ge;ne[A++]=ne[W++],ne[A++]=ne[W++],ne[A++]=ne[W++],2<(V-=3););V&&(ne[A++]=ne[W++],1<V&&(ne[A++]=ne[W++]))}break}}break}}while(p<u&&A<x);p-=V=M>>3,P&=(1<<(M-=V<<3))-1,c.next_in=p,c.next_out=A,c.avail_in=p<u?u-p+5:5-(p-u),c.avail_out=A<x?x-A+257:257-(A-x),h.hold=P,h.bits=M}},{}],49:[function(n,s,i){var c=n("../utils/common"),d=n("./adler32"),h=n("./crc32"),p=n("./inffast"),u=n("./inftrees"),A=1,y=2,x=0,S=-2,C=1,R=852,T=592;function D(W){return(W>>>24&255)+(W>>>8&65280)+((65280&W)<<8)+((255&W)<<24)}function P(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function M(W){var se;return W&&W.state?(se=W.state,W.total_in=W.total_out=se.total=0,W.msg="",se.wrap&&(W.adler=1&se.wrap),se.mode=C,se.last=0,se.havedict=0,se.dmax=32768,se.head=null,se.hold=0,se.bits=0,se.lencode=se.lendyn=new c.Buf32(R),se.distcode=se.distdyn=new c.Buf32(T),se.sane=1,se.back=-1,x):S}function O(W){var se;return W&&W.state?((se=W.state).wsize=0,se.whave=0,se.wnext=0,M(W)):S}function I(W,se){var L,ne;return W&&W.state?(ne=W.state,se<0?(L=0,se=-se):(L=1+(se>>4),se<48&&(se&=15)),se&&(se<8||15<se)?S:(ne.window!==null&&ne.wbits!==se&&(ne.window=null),ne.wrap=L,ne.wbits=se,O(W))):S}function Y(W,se){var L,ne;return W?(ne=new P,(W.state=ne).window=null,(L=I(W,se))!==x&&(W.state=null),L):S}var K,q,Q=!0;function V(W){if(Q){var se;for(K=new c.Buf32(512),q=new c.Buf32(32),se=0;se<144;)W.lens[se++]=8;for(;se<256;)W.lens[se++]=9;for(;se<280;)W.lens[se++]=7;for(;se<288;)W.lens[se++]=8;for(u(A,W.lens,0,288,K,0,W.work,{bits:9}),se=0;se<32;)W.lens[se++]=5;u(y,W.lens,0,32,q,0,W.work,{bits:5}),Q=!1}W.lencode=K,W.lenbits=9,W.distcode=q,W.distbits=5}function ge(W,se,L,ne){var le,pe=W.state;return pe.window===null&&(pe.wsize=1<<pe.wbits,pe.wnext=0,pe.whave=0,pe.window=new c.Buf8(pe.wsize)),ne>=pe.wsize?(c.arraySet(pe.window,se,L-pe.wsize,pe.wsize,0),pe.wnext=0,pe.whave=pe.wsize):(ne<(le=pe.wsize-pe.wnext)&&(le=ne),c.arraySet(pe.window,se,L-ne,le,pe.wnext),(ne-=le)?(c.arraySet(pe.window,se,L-ne,ne,0),pe.wnext=ne,pe.whave=pe.wsize):(pe.wnext+=le,pe.wnext===pe.wsize&&(pe.wnext=0),pe.whave<pe.wsize&&(pe.whave+=le))),0}i.inflateReset=O,i.inflateReset2=I,i.inflateResetKeep=M,i.inflateInit=function(W){return Y(W,15)},i.inflateInit2=Y,i.inflate=function(W,se){var L,ne,le,pe,J,ae,re,U,ee,Ee,Re,Ne,Ue,ot,lt,pt,Lt,qe,Dt,me,k,ce,de,G,j=0,$=new c.Buf8(4),ye=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!W||!W.state||!W.output||!W.input&&W.avail_in!==0)return S;(L=W.state).mode===12&&(L.mode=13),J=W.next_out,le=W.output,re=W.avail_out,pe=W.next_in,ne=W.input,ae=W.avail_in,U=L.hold,ee=L.bits,Ee=ae,Re=re,ce=x;e:for(;;)switch(L.mode){case C:if(L.wrap===0){L.mode=13;break}for(;ee<16;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}if(2&L.wrap&&U===35615){$[L.check=0]=255&U,$[1]=U>>>8&255,L.check=h(L.check,$,2,0),ee=U=0,L.mode=2;break}if(L.flags=0,L.head&&(L.head.done=!1),!(1&L.wrap)||(((255&U)<<8)+(U>>8))%31){W.msg="incorrect header check",L.mode=30;break}if((15&U)!=8){W.msg="unknown compression method",L.mode=30;break}if(ee-=4,k=8+(15&(U>>>=4)),L.wbits===0)L.wbits=k;else if(k>L.wbits){W.msg="invalid window size",L.mode=30;break}L.dmax=1<<k,W.adler=L.check=1,L.mode=512&U?10:12,ee=U=0;break;case 2:for(;ee<16;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}if(L.flags=U,(255&L.flags)!=8){W.msg="unknown compression method",L.mode=30;break}if(57344&L.flags){W.msg="unknown header flags set",L.mode=30;break}L.head&&(L.head.text=U>>8&1),512&L.flags&&($[0]=255&U,$[1]=U>>>8&255,L.check=h(L.check,$,2,0)),ee=U=0,L.mode=3;case 3:for(;ee<32;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}L.head&&(L.head.time=U),512&L.flags&&($[0]=255&U,$[1]=U>>>8&255,$[2]=U>>>16&255,$[3]=U>>>24&255,L.check=h(L.check,$,4,0)),ee=U=0,L.mode=4;case 4:for(;ee<16;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}L.head&&(L.head.xflags=255&U,L.head.os=U>>8),512&L.flags&&($[0]=255&U,$[1]=U>>>8&255,L.check=h(L.check,$,2,0)),ee=U=0,L.mode=5;case 5:if(1024&L.flags){for(;ee<16;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}L.length=U,L.head&&(L.head.extra_len=U),512&L.flags&&($[0]=255&U,$[1]=U>>>8&255,L.check=h(L.check,$,2,0)),ee=U=0}else L.head&&(L.head.extra=null);L.mode=6;case 6:if(1024&L.flags&&(ae<(Ne=L.length)&&(Ne=ae),Ne&&(L.head&&(k=L.head.extra_len-L.length,L.head.extra||(L.head.extra=new Array(L.head.extra_len)),c.arraySet(L.head.extra,ne,pe,Ne,k)),512&L.flags&&(L.check=h(L.check,ne,Ne,pe)),ae-=Ne,pe+=Ne,L.length-=Ne),L.length))break e;L.length=0,L.mode=7;case 7:if(2048&L.flags){if(ae===0)break e;for(Ne=0;k=ne[pe+Ne++],L.head&&k&&L.length<65536&&(L.head.name+=String.fromCharCode(k)),k&&Ne<ae;);if(512&L.flags&&(L.check=h(L.check,ne,Ne,pe)),ae-=Ne,pe+=Ne,k)break e}else L.head&&(L.head.name=null);L.length=0,L.mode=8;case 8:if(4096&L.flags){if(ae===0)break e;for(Ne=0;k=ne[pe+Ne++],L.head&&k&&L.length<65536&&(L.head.comment+=String.fromCharCode(k)),k&&Ne<ae;);if(512&L.flags&&(L.check=h(L.check,ne,Ne,pe)),ae-=Ne,pe+=Ne,k)break e}else L.head&&(L.head.comment=null);L.mode=9;case 9:if(512&L.flags){for(;ee<16;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}if(U!==(65535&L.check)){W.msg="header crc mismatch",L.mode=30;break}ee=U=0}L.head&&(L.head.hcrc=L.flags>>9&1,L.head.done=!0),W.adler=L.check=0,L.mode=12;break;case 10:for(;ee<32;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}W.adler=L.check=D(U),ee=U=0,L.mode=11;case 11:if(L.havedict===0)return W.next_out=J,W.avail_out=re,W.next_in=pe,W.avail_in=ae,L.hold=U,L.bits=ee,2;W.adler=L.check=1,L.mode=12;case 12:if(se===5||se===6)break e;case 13:if(L.last){U>>>=7&ee,ee-=7&ee,L.mode=27;break}for(;ee<3;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}switch(L.last=1&U,ee-=1,3&(U>>>=1)){case 0:L.mode=14;break;case 1:if(V(L),L.mode=20,se!==6)break;U>>>=2,ee-=2;break e;case 2:L.mode=17;break;case 3:W.msg="invalid block type",L.mode=30}U>>>=2,ee-=2;break;case 14:for(U>>>=7&ee,ee-=7ⅇee<32;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}if((65535&U)!=(U>>>16^65535)){W.msg="invalid stored block lengths",L.mode=30;break}if(L.length=65535&U,ee=U=0,L.mode=15,se===6)break e;case 15:L.mode=16;case 16:if(Ne=L.length){if(ae<Ne&&(Ne=ae),re<Ne&&(Ne=re),Ne===0)break e;c.arraySet(le,ne,pe,Ne,J),ae-=Ne,pe+=Ne,re-=Ne,J+=Ne,L.length-=Ne;break}L.mode=12;break;case 17:for(;ee<14;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}if(L.nlen=257+(31&U),U>>>=5,ee-=5,L.ndist=1+(31&U),U>>>=5,ee-=5,L.ncode=4+(15&U),U>>>=4,ee-=4,286<L.nlen||30<L.ndist){W.msg="too many length or distance symbols",L.mode=30;break}L.have=0,L.mode=18;case 18:for(;L.have<L.ncode;){for(;ee<3;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}L.lens[ye[L.have++]]=7&U,U>>>=3,ee-=3}for(;L.have<19;)L.lens[ye[L.have++]]=0;if(L.lencode=L.lendyn,L.lenbits=7,de={bits:L.lenbits},ce=u(0,L.lens,0,19,L.lencode,0,L.work,de),L.lenbits=de.bits,ce){W.msg="invalid code lengths set",L.mode=30;break}L.have=0,L.mode=19;case 19:for(;L.have<L.nlen+L.ndist;){for(;pt=(j=L.lencode[U&(1<<L.lenbits)-1])>>>16&255,Lt=65535&j,!((lt=j>>>24)<=ee);){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}if(Lt<16)U>>>=lt,ee-=lt,L.lens[L.have++]=Lt;else{if(Lt===16){for(G=lt+2;ee<G;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}if(U>>>=lt,ee-=lt,L.have===0){W.msg="invalid bit length repeat",L.mode=30;break}k=L.lens[L.have-1],Ne=3+(3&U),U>>>=2,ee-=2}else if(Lt===17){for(G=lt+3;ee<G;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}ee-=lt,k=0,Ne=3+(7&(U>>>=lt)),U>>>=3,ee-=3}else{for(G=lt+7;ee<G;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}ee-=lt,k=0,Ne=11+(127&(U>>>=lt)),U>>>=7,ee-=7}if(L.have+Ne>L.nlen+L.ndist){W.msg="invalid bit length repeat",L.mode=30;break}for(;Ne--;)L.lens[L.have++]=k}}if(L.mode===30)break;if(L.lens[256]===0){W.msg="invalid code -- missing end-of-block",L.mode=30;break}if(L.lenbits=9,de={bits:L.lenbits},ce=u(A,L.lens,0,L.nlen,L.lencode,0,L.work,de),L.lenbits=de.bits,ce){W.msg="invalid literal/lengths set",L.mode=30;break}if(L.distbits=6,L.distcode=L.distdyn,de={bits:L.distbits},ce=u(y,L.lens,L.nlen,L.ndist,L.distcode,0,L.work,de),L.distbits=de.bits,ce){W.msg="invalid distances set",L.mode=30;break}if(L.mode=20,se===6)break e;case 20:L.mode=21;case 21:if(6<=ae&&258<=re){W.next_out=J,W.avail_out=re,W.next_in=pe,W.avail_in=ae,L.hold=U,L.bits=ee,p(W,Re),J=W.next_out,le=W.output,re=W.avail_out,pe=W.next_in,ne=W.input,ae=W.avail_in,U=L.hold,ee=L.bits,L.mode===12&&(L.back=-1);break}for(L.back=0;pt=(j=L.lencode[U&(1<<L.lenbits)-1])>>>16&255,Lt=65535&j,!((lt=j>>>24)<=ee);){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}if(pt&&(240&pt)==0){for(qe=lt,Dt=pt,me=Lt;pt=(j=L.lencode[me+((U&(1<<qe+Dt)-1)>>qe)])>>>16&255,Lt=65535&j,!(qe+(lt=j>>>24)<=ee);){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}U>>>=qe,ee-=qe,L.back+=qe}if(U>>>=lt,ee-=lt,L.back+=lt,L.length=Lt,pt===0){L.mode=26;break}if(32&pt){L.back=-1,L.mode=12;break}if(64&pt){W.msg="invalid literal/length code",L.mode=30;break}L.extra=15&pt,L.mode=22;case 22:if(L.extra){for(G=L.extra;ee<G;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}L.length+=U&(1<<L.extra)-1,U>>>=L.extra,ee-=L.extra,L.back+=L.extra}L.was=L.length,L.mode=23;case 23:for(;pt=(j=L.distcode[U&(1<<L.distbits)-1])>>>16&255,Lt=65535&j,!((lt=j>>>24)<=ee);){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}if((240&pt)==0){for(qe=lt,Dt=pt,me=Lt;pt=(j=L.distcode[me+((U&(1<<qe+Dt)-1)>>qe)])>>>16&255,Lt=65535&j,!(qe+(lt=j>>>24)<=ee);){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}U>>>=qe,ee-=qe,L.back+=qe}if(U>>>=lt,ee-=lt,L.back+=lt,64&pt){W.msg="invalid distance code",L.mode=30;break}L.offset=Lt,L.extra=15&pt,L.mode=24;case 24:if(L.extra){for(G=L.extra;ee<G;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}L.offset+=U&(1<<L.extra)-1,U>>>=L.extra,ee-=L.extra,L.back+=L.extra}if(L.offset>L.dmax){W.msg="invalid distance too far back",L.mode=30;break}L.mode=25;case 25:if(re===0)break e;if(Ne=Re-re,L.offset>Ne){if((Ne=L.offset-Ne)>L.whave&&L.sane){W.msg="invalid distance too far back",L.mode=30;break}Ue=Ne>L.wnext?(Ne-=L.wnext,L.wsize-Ne):L.wnext-Ne,Ne>L.length&&(Ne=L.length),ot=L.window}else ot=le,Ue=J-L.offset,Ne=L.length;for(re<Ne&&(Ne=re),re-=Ne,L.length-=Ne;le[J++]=ot[Ue++],--Ne;);L.length===0&&(L.mode=21);break;case 26:if(re===0)break e;le[J++]=L.length,re--,L.mode=21;break;case 27:if(L.wrap){for(;ee<32;){if(ae===0)break e;ae--,U|=ne[pe++]<<ee,ee+=8}if(Re-=re,W.total_out+=Re,L.total+=Re,Re&&(W.adler=L.check=L.flags?h(L.check,le,Re,J-Re):d(L.check,le,Re,J-Re)),Re=re,(L.flags?U:D(U))!==L.check){W.msg="incorrect data check",L.mode=30;break}ee=U=0}L.mode=28;case 28:if(L.wrap&&L.flags){for(;ee<32;){if(ae===0)break e;ae--,U+=ne[pe++]<<ee,ee+=8}if(U!==(4294967295&L.total)){W.msg="incorrect length check",L.mode=30;break}ee=U=0}L.mode=29;case 29:ce=1;break e;case 30:ce=-3;break e;case 31:return-4;case 32:default:return S}return W.next_out=J,W.avail_out=re,W.next_in=pe,W.avail_in=ae,L.hold=U,L.bits=ee,(L.wsize||Re!==W.avail_out&&L.mode<30&&(L.mode<27||se!==4))&&ge(W,W.output,W.next_out,Re-W.avail_out)?(L.mode=31,-4):(Ee-=W.avail_in,Re-=W.avail_out,W.total_in+=Ee,W.total_out+=Re,L.total+=Re,L.wrap&&Re&&(W.adler=L.check=L.flags?h(L.check,le,Re,W.next_out-Re):d(L.check,le,Re,W.next_out-Re)),W.data_type=L.bits+(L.last?64:0)+(L.mode===12?128:0)+(L.mode===20||L.mode===15?256:0),(Ee==0&&Re===0||se===4)&&ce===x&&(ce=-5),ce)},i.inflateEnd=function(W){if(!W||!W.state)return S;var se=W.state;return se.window&&(se.window=null),W.state=null,x},i.inflateGetHeader=function(W,se){var L;return W&&W.state?(2&(L=W.state).wrap)==0?S:((L.head=se).done=!1,x):S},i.inflateSetDictionary=function(W,se){var L,ne=se.length;return W&&W.state?(L=W.state).wrap!==0&&L.mode!==11?S:L.mode===11&&d(1,se,ne,0)!==L.check?-3:ge(W,se,ne,ne)?(L.mode=31,-4):(L.havedict=1,x):S},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,s,i){var c=n("../utils/common"),d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],p=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];s.exports=function(A,y,x,S,C,R,T,D){var P,M,O,I,Y,K,q,Q,V,ge=D.bits,W=0,se=0,L=0,ne=0,le=0,pe=0,J=0,ae=0,re=0,U=0,ee=null,Ee=0,Re=new c.Buf16(16),Ne=new c.Buf16(16),Ue=null,ot=0;for(W=0;W<=15;W++)Re[W]=0;for(se=0;se<S;se++)Re[y[x+se]]++;for(le=ge,ne=15;1<=ne&&Re[ne]===0;ne--);if(ne<le&&(le=ne),ne===0)return C[R++]=20971520,C[R++]=20971520,D.bits=1,0;for(L=1;L<ne&&Re[L]===0;L++);for(le<L&&(le=L),W=ae=1;W<=15;W++)if(ae<<=1,(ae-=Re[W])<0)return-1;if(0<ae&&(A===0||ne!==1))return-1;for(Ne[1]=0,W=1;W<15;W++)Ne[W+1]=Ne[W]+Re[W];for(se=0;se<S;se++)y[x+se]!==0&&(T[Ne[y[x+se]]++]=se);if(K=A===0?(ee=Ue=T,19):A===1?(ee=d,Ee-=257,Ue=h,ot-=257,256):(ee=p,Ue=u,-1),W=L,Y=R,J=se=U=0,O=-1,I=(re=1<<(pe=le))-1,A===1&&852<re||A===2&&592<re)return 1;for(;;){for(q=W-J,V=T[se]<K?(Q=0,T[se]):T[se]>K?(Q=Ue[ot+T[se]],ee[Ee+T[se]]):(Q=96,0),P=1<<W-J,L=M=1<<pe;C[Y+(U>>J)+(M-=P)]=q<<24|Q<<16|V|0,M!==0;);for(P=1<<W-1;U&P;)P>>=1;if(P!==0?(U&=P-1,U+=P):U=0,se++,--Re[W]==0){if(W===ne)break;W=y[x+T[se]]}if(le<W&&(U&I)!==O){for(J===0&&(J=le),Y+=L,ae=1<<(pe=W-J);pe+J<ne&&!((ae-=Re[pe+J])<=0);)pe++,ae<<=1;if(re+=1<<pe,A===1&&852<re||A===2&&592<re)return 1;C[O=U&I]=le<<24|pe<<16|Y-R|0}}return U!==0&&(C[Y+U]=W-J<<24|64<<16|0),D.bits=le,0}},{"../utils/common":41}],51:[function(n,s,i){s.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,s,i){var c=n("../utils/common"),d=0,h=1;function p(j){for(var $=j.length;0<=--$;)j[$]=0}var u=0,A=29,y=256,x=y+1+A,S=30,C=19,R=2*x+1,T=15,D=16,P=7,M=256,O=16,I=17,Y=18,K=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ge=new Array(2*(x+2));p(ge);var W=new Array(2*S);p(W);var se=new Array(512);p(se);var L=new Array(256);p(L);var ne=new Array(A);p(ne);var le,pe,J,ae=new Array(S);function re(j,$,ye,Ce,Ae){this.static_tree=j,this.extra_bits=$,this.extra_base=ye,this.elems=Ce,this.max_length=Ae,this.has_stree=j&&j.length}function U(j,$){this.dyn_tree=j,this.max_code=0,this.stat_desc=$}function ee(j){return j<256?se[j]:se[256+(j>>>7)]}function Ee(j,$){j.pending_buf[j.pending++]=255&$,j.pending_buf[j.pending++]=$>>>8&255}function Re(j,$,ye){j.bi_valid>D-ye?(j.bi_buf|=$<<j.bi_valid&65535,Ee(j,j.bi_buf),j.bi_buf=$>>D-j.bi_valid,j.bi_valid+=ye-D):(j.bi_buf|=$<<j.bi_valid&65535,j.bi_valid+=ye)}function Ne(j,$,ye){Re(j,ye[2*$],ye[2*$+1])}function Ue(j,$){for(var ye=0;ye|=1&j,j>>>=1,ye<<=1,0<--$;);return ye>>>1}function ot(j,$,ye){var Ce,Ae,ze=new Array(T+1),Xe=0;for(Ce=1;Ce<=T;Ce++)ze[Ce]=Xe=Xe+ye[Ce-1]<<1;for(Ae=0;Ae<=$;Ae++){var Ie=j[2*Ae+1];Ie!==0&&(j[2*Ae]=Ue(ze[Ie]++,Ie))}}function lt(j){var $;for($=0;$<x;$++)j.dyn_ltree[2*$]=0;for($=0;$<S;$++)j.dyn_dtree[2*$]=0;for($=0;$<C;$++)j.bl_tree[2*$]=0;j.dyn_ltree[2*M]=1,j.opt_len=j.static_len=0,j.last_lit=j.matches=0}function pt(j){8<j.bi_valid?Ee(j,j.bi_buf):0<j.bi_valid&&(j.pending_buf[j.pending++]=j.bi_buf),j.bi_buf=0,j.bi_valid=0}function Lt(j,$,ye,Ce){var Ae=2*$,ze=2*ye;return j[Ae]<j[ze]||j[Ae]===j[ze]&&Ce[$]<=Ce[ye]}function qe(j,$,ye){for(var Ce=j.heap[ye],Ae=ye<<1;Ae<=j.heap_len&&(Ae<j.heap_len&&Lt($,j.heap[Ae+1],j.heap[Ae],j.depth)&&Ae++,!Lt($,Ce,j.heap[Ae],j.depth));)j.heap[ye]=j.heap[Ae],ye=Ae,Ae<<=1;j.heap[ye]=Ce}function Dt(j,$,ye){var Ce,Ae,ze,Xe,Ie=0;if(j.last_lit!==0)for(;Ce=j.pending_buf[j.d_buf+2*Ie]<<8|j.pending_buf[j.d_buf+2*Ie+1],Ae=j.pending_buf[j.l_buf+Ie],Ie++,Ce===0?Ne(j,Ae,$):(Ne(j,(ze=L[Ae])+y+1,$),(Xe=K[ze])!==0&&Re(j,Ae-=ne[ze],Xe),Ne(j,ze=ee(--Ce),ye),(Xe=q[ze])!==0&&Re(j,Ce-=ae[ze],Xe)),Ie<j.last_lit;);Ne(j,M,$)}function me(j,$){var ye,Ce,Ae,ze=$.dyn_tree,Xe=$.stat_desc.static_tree,Ie=$.stat_desc.has_stree,dt=$.stat_desc.elems,Jt=-1;for(j.heap_len=0,j.heap_max=R,ye=0;ye<dt;ye++)ze[2*ye]!==0?(j.heap[++j.heap_len]=Jt=ye,j.depth[ye]=0):ze[2*ye+1]=0;for(;j.heap_len<2;)ze[2*(Ae=j.heap[++j.heap_len]=Jt<2?++Jt:0)]=1,j.depth[Ae]=0,j.opt_len--,Ie&&(j.static_len-=Xe[2*Ae+1]);for($.max_code=Jt,ye=j.heap_len>>1;1<=ye;ye--)qe(j,ze,ye);for(Ae=dt;ye=j.heap[1],j.heap[1]=j.heap[j.heap_len--],qe(j,ze,1),Ce=j.heap[1],j.heap[--j.heap_max]=ye,j.heap[--j.heap_max]=Ce,ze[2*Ae]=ze[2*ye]+ze[2*Ce],j.depth[Ae]=(j.depth[ye]>=j.depth[Ce]?j.depth[ye]:j.depth[Ce])+1,ze[2*ye+1]=ze[2*Ce+1]=Ae,j.heap[1]=Ae++,qe(j,ze,1),2<=j.heap_len;);j.heap[--j.heap_max]=j.heap[1],(function(zt,pr){var Ye,ht,Nt,et,pn,Xn,it=pr.dyn_tree,st=pr.max_code,En=pr.stat_desc.static_tree,un=pr.stat_desc.has_stree,Ut=pr.stat_desc.extra_bits,Ea=pr.stat_desc.extra_base,Ra=pr.stat_desc.max_length,ps=0;for(et=0;et<=T;et++)zt.bl_count[et]=0;for(it[2*zt.heap[zt.heap_max]+1]=0,Ye=zt.heap_max+1;Ye<R;Ye++)Ra<(et=it[2*it[2*(ht=zt.heap[Ye])+1]+1]+1)&&(et=Ra,ps++),it[2*ht+1]=et,st<ht||(zt.bl_count[et]++,pn=0,Ea<=ht&&(pn=Ut[ht-Ea]),Xn=it[2*ht],zt.opt_len+=Xn*(et+pn),un&&(zt.static_len+=Xn*(En[2*ht+1]+pn)));if(ps!==0){do{for(et=Ra-1;zt.bl_count[et]===0;)et--;zt.bl_count[et]--,zt.bl_count[et+1]+=2,zt.bl_count[Ra]--,ps-=2}while(0<ps);for(et=Ra;et!==0;et--)for(ht=zt.bl_count[et];ht!==0;)st<(Nt=zt.heap[--Ye])||(it[2*Nt+1]!==et&&(zt.opt_len+=(et-it[2*Nt+1])*it[2*Nt],it[2*Nt+1]=et),ht--)}})(j,$),ot(ze,Jt,j.bl_count)}function k(j,$,ye){var Ce,Ae,ze=-1,Xe=$[1],Ie=0,dt=7,Jt=4;for(Xe===0&&(dt=138,Jt=3),$[2*(ye+1)+1]=65535,Ce=0;Ce<=ye;Ce++)Ae=Xe,Xe=$[2*(Ce+1)+1],++Ie<dt&&Ae===Xe||(Ie<Jt?j.bl_tree[2*Ae]+=Ie:Ae!==0?(Ae!==ze&&j.bl_tree[2*Ae]++,j.bl_tree[2*O]++):Ie<=10?j.bl_tree[2*I]++:j.bl_tree[2*Y]++,ze=Ae,Jt=(Ie=0)===Xe?(dt=138,3):Ae===Xe?(dt=6,3):(dt=7,4))}function ce(j,$,ye){var Ce,Ae,ze=-1,Xe=$[1],Ie=0,dt=7,Jt=4;for(Xe===0&&(dt=138,Jt=3),Ce=0;Ce<=ye;Ce++)if(Ae=Xe,Xe=$[2*(Ce+1)+1],!(++Ie<dt&&Ae===Xe)){if(Ie<Jt)for(;Ne(j,Ae,j.bl_tree),--Ie!=0;);else Ae!==0?(Ae!==ze&&(Ne(j,Ae,j.bl_tree),Ie--),Ne(j,O,j.bl_tree),Re(j,Ie-3,2)):Ie<=10?(Ne(j,I,j.bl_tree),Re(j,Ie-3,3)):(Ne(j,Y,j.bl_tree),Re(j,Ie-11,7));ze=Ae,Jt=(Ie=0)===Xe?(dt=138,3):Ae===Xe?(dt=6,3):(dt=7,4)}}p(ae);var de=!1;function G(j,$,ye,Ce){Re(j,(u<<1)+(Ce?1:0),3),(function(Ae,ze,Xe,Ie){pt(Ae),Ee(Ae,Xe),Ee(Ae,~Xe),c.arraySet(Ae.pending_buf,Ae.window,ze,Xe,Ae.pending),Ae.pending+=Xe})(j,$,ye)}i._tr_init=function(j){de||((function(){var $,ye,Ce,Ae,ze,Xe=new Array(T+1);for(Ae=Ce=0;Ae<A-1;Ae++)for(ne[Ae]=Ce,$=0;$<1<<K[Ae];$++)L[Ce++]=Ae;for(L[Ce-1]=Ae,Ae=ze=0;Ae<16;Ae++)for(ae[Ae]=ze,$=0;$<1<<q[Ae];$++)se[ze++]=Ae;for(ze>>=7;Ae<S;Ae++)for(ae[Ae]=ze<<7,$=0;$<1<<q[Ae]-7;$++)se[256+ze++]=Ae;for(ye=0;ye<=T;ye++)Xe[ye]=0;for($=0;$<=143;)ge[2*$+1]=8,$++,Xe[8]++;for(;$<=255;)ge[2*$+1]=9,$++,Xe[9]++;for(;$<=279;)ge[2*$+1]=7,$++,Xe[7]++;for(;$<=287;)ge[2*$+1]=8,$++,Xe[8]++;for(ot(ge,x+1,Xe),$=0;$<S;$++)W[2*$+1]=5,W[2*$]=Ue($,5);le=new re(ge,K,y+1,x,T),pe=new re(W,q,0,S,T),J=new re(new Array(0),Q,0,C,P)})(),de=!0),j.l_desc=new U(j.dyn_ltree,le),j.d_desc=new U(j.dyn_dtree,pe),j.bl_desc=new U(j.bl_tree,J),j.bi_buf=0,j.bi_valid=0,lt(j)},i._tr_stored_block=G,i._tr_flush_block=function(j,$,ye,Ce){var Ae,ze,Xe=0;0<j.level?(j.strm.data_type===2&&(j.strm.data_type=(function(Ie){var dt,Jt=4093624447;for(dt=0;dt<=31;dt++,Jt>>>=1)if(1&Jt&&Ie.dyn_ltree[2*dt]!==0)return d;if(Ie.dyn_ltree[18]!==0||Ie.dyn_ltree[20]!==0||Ie.dyn_ltree[26]!==0)return h;for(dt=32;dt<y;dt++)if(Ie.dyn_ltree[2*dt]!==0)return h;return d})(j)),me(j,j.l_desc),me(j,j.d_desc),Xe=(function(Ie){var dt;for(k(Ie,Ie.dyn_ltree,Ie.l_desc.max_code),k(Ie,Ie.dyn_dtree,Ie.d_desc.max_code),me(Ie,Ie.bl_desc),dt=C-1;3<=dt&&Ie.bl_tree[2*V[dt]+1]===0;dt--);return Ie.opt_len+=3*(dt+1)+5+5+4,dt})(j),Ae=j.opt_len+3+7>>>3,(ze=j.static_len+3+7>>>3)<=Ae&&(Ae=ze)):Ae=ze=ye+5,ye+4<=Ae&&$!==-1?G(j,$,ye,Ce):j.strategy===4||ze===Ae?(Re(j,2+(Ce?1:0),3),Dt(j,ge,W)):(Re(j,4+(Ce?1:0),3),(function(Ie,dt,Jt,zt){var pr;for(Re(Ie,dt-257,5),Re(Ie,Jt-1,5),Re(Ie,zt-4,4),pr=0;pr<zt;pr++)Re(Ie,Ie.bl_tree[2*V[pr]+1],3);ce(Ie,Ie.dyn_ltree,dt-1),ce(Ie,Ie.dyn_dtree,Jt-1)})(j,j.l_desc.max_code+1,j.d_desc.max_code+1,Xe+1),Dt(j,j.dyn_ltree,j.dyn_dtree)),lt(j),Ce&&pt(j)},i._tr_tally=function(j,$,ye){return j.pending_buf[j.d_buf+2*j.last_lit]=$>>>8&255,j.pending_buf[j.d_buf+2*j.last_lit+1]=255&$,j.pending_buf[j.l_buf+j.last_lit]=255&ye,j.last_lit++,$===0?j.dyn_ltree[2*ye]++:(j.matches++,$--,j.dyn_ltree[2*(L[ye]+y+1)]++,j.dyn_dtree[2*ee($)]++),j.last_lit===j.lit_bufsize-1},i._tr_align=function(j){Re(j,2,3),Ne(j,M,ge),(function($){$.bi_valid===16?(Ee($,$.bi_buf),$.bi_buf=0,$.bi_valid=0):8<=$.bi_valid&&($.pending_buf[$.pending++]=255&$.bi_buf,$.bi_buf>>=8,$.bi_valid-=8)})(j)}},{"../utils/common":41}],53:[function(n,s,i){s.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,s,i){(function(c){(function(d,h){if(!d.setImmediate){var p,u,A,y,x=1,S={},C=!1,R=d.document,T=Object.getPrototypeOf&&Object.getPrototypeOf(d);T=T&&T.setTimeout?T:d,p={}.toString.call(d.process)==="[object process]"?function(O){process.nextTick(function(){P(O)})}:(function(){if(d.postMessage&&!d.importScripts){var O=!0,I=d.onmessage;return d.onmessage=function(){O=!1},d.postMessage("","*"),d.onmessage=I,O}})()?(y="setImmediate$"+Math.random()+"$",d.addEventListener?d.addEventListener("message",M,!1):d.attachEvent("onmessage",M),function(O){d.postMessage(y+O,"*")}):d.MessageChannel?((A=new MessageChannel).port1.onmessage=function(O){P(O.data)},function(O){A.port2.postMessage(O)}):R&&"onreadystatechange"in R.createElement("script")?(u=R.documentElement,function(O){var I=R.createElement("script");I.onreadystatechange=function(){P(O),I.onreadystatechange=null,u.removeChild(I),I=null},u.appendChild(I)}):function(O){setTimeout(P,0,O)},T.setImmediate=function(O){typeof O!="function"&&(O=new Function(""+O));for(var I=new Array(arguments.length-1),Y=0;Y<I.length;Y++)I[Y]=arguments[Y+1];var K={callback:O,args:I};return S[x]=K,p(x),x++},T.clearImmediate=D}function D(O){delete S[O]}function P(O){if(C)setTimeout(P,0,O);else{var I=S[O];if(I){C=!0;try{(function(Y){var K=Y.callback,q=Y.args;switch(q.length){case 0:K();break;case 1:K(q[0]);break;case 2:K(q[0],q[1]);break;case 3:K(q[0],q[1],q[2]);break;default:K.apply(h,q)}})(I)}finally{D(O),C=!1}}}}function M(O){O.source===d&&typeof O.data=="string"&&O.data.indexOf(y)===0&&P(+O.data.slice(y.length))}})(typeof self>"u"?c===void 0?this:c:self)}).call(this,typeof kp<"u"?kp:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Hm)),Hm.exports}var uS=cS();const ex=oA(uS);function Ha(t,e,n,s){function i(c){return c instanceof n?c:new n(function(d){d(c)})}return new(n||(n=Promise))(function(c,d){function h(A){try{u(s.next(A))}catch(y){d(y)}}function p(A){try{u(s.throw(A))}catch(y){d(y)}}function u(A){A.done?c(A.value):i(A.value).then(h,p)}u((s=s.apply(t,[])).next())})}const Tt=914400,Lf=12700,Cr=`\r
|
|
41
41
|
`,dS=2147483649,Wm=/^[0-9a-fA-F]{6}$/,fS=1.67,hS=27,hu={type:"solid",color:"666666",pt:1},tx=[.05,.1,.05,.1],pu={color:"363636",pt:1},Nl={color:"888888",style:"solid",size:1,cap:"flat"},wa="000000",hi=12,pS=18,Au="LAYOUT_16x9",hg="DEFAULT",nx="333333",Dl={type:"outer",blur:3,offset:23e3/12700,angle:90,color:"000000",opacity:.35,rotateWithShape:!0},Ef=[.5,.5,.5,.5],Qy={color:"000000"},AS={size:8,color:"FFFFFF",opacity:.75},qs="2094734552",Kp="2094734553",df="2094734554",pg="2094734555",rx="2094734556",rf="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),ff=["C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360","C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360"],mS=["5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7","5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7"];var bu;(function(t){t.left="left",t.center="center",t.right="right",t.justify="justify"})(bu||(bu={}));var Su;(function(t){t.b="b",t.ctr="ctr",t.t="t"})(Su||(Su={}));const ax="{F7021451-1387-4CA6-816F-3879F97B5CBC}";var Ag;(function(t){t.arraybuffer="arraybuffer",t.base64="base64",t.binarystring="binarystring",t.blob="blob",t.nodebuffer="nodebuffer",t.uint8array="uint8array"})(Ag||(Ag={}));var mg;(function(t){t.area="area",t.bar="bar",t.bar3d="bar3D",t.bubble="bubble",t.bubble3d="bubble3D",t.doughnut="doughnut",t.line="line",t.pie="pie",t.radar="radar",t.scatter="scatter"})(mg||(mg={}));var gg;(function(t){t.accentBorderCallout1="accentBorderCallout1",t.accentBorderCallout2="accentBorderCallout2",t.accentBorderCallout3="accentBorderCallout3",t.accentCallout1="accentCallout1",t.accentCallout2="accentCallout2",t.accentCallout3="accentCallout3",t.actionButtonBackPrevious="actionButtonBackPrevious",t.actionButtonBeginning="actionButtonBeginning",t.actionButtonBlank="actionButtonBlank",t.actionButtonDocument="actionButtonDocument",t.actionButtonEnd="actionButtonEnd",t.actionButtonForwardNext="actionButtonForwardNext",t.actionButtonHelp="actionButtonHelp",t.actionButtonHome="actionButtonHome",t.actionButtonInformation="actionButtonInformation",t.actionButtonMovie="actionButtonMovie",t.actionButtonReturn="actionButtonReturn",t.actionButtonSound="actionButtonSound",t.arc="arc",t.bentArrow="bentArrow",t.bentUpArrow="bentUpArrow",t.bevel="bevel",t.blockArc="blockArc",t.borderCallout1="borderCallout1",t.borderCallout2="borderCallout2",t.borderCallout3="borderCallout3",t.bracePair="bracePair",t.bracketPair="bracketPair",t.callout1="callout1",t.callout2="callout2",t.callout3="callout3",t.can="can",t.chartPlus="chartPlus",t.chartStar="chartStar",t.chartX="chartX",t.chevron="chevron",t.chord="chord",t.circularArrow="circularArrow",t.cloud="cloud",t.cloudCallout="cloudCallout",t.corner="corner",t.cornerTabs="cornerTabs",t.cube="cube",t.curvedDownArrow="curvedDownArrow",t.curvedLeftArrow="curvedLeftArrow",t.curvedRightArrow="curvedRightArrow",t.curvedUpArrow="curvedUpArrow",t.custGeom="custGeom",t.decagon="decagon",t.diagStripe="diagStripe",t.diamond="diamond",t.dodecagon="dodecagon",t.donut="donut",t.doubleWave="doubleWave",t.downArrow="downArrow",t.downArrowCallout="downArrowCallout",t.ellipse="ellipse",t.ellipseRibbon="ellipseRibbon",t.ellipseRibbon2="ellipseRibbon2",t.flowChartAlternateProcess="flowChartAlternateProcess",t.flowChartCollate="flowChartCollate",t.flowChartConnector="flowChartConnector",t.flowChartDecision="flowChartDecision",t.flowChartDelay="flowChartDelay",t.flowChartDisplay="flowChartDisplay",t.flowChartDocument="flowChartDocument",t.flowChartExtract="flowChartExtract",t.flowChartInputOutput="flowChartInputOutput",t.flowChartInternalStorage="flowChartInternalStorage",t.flowChartMagneticDisk="flowChartMagneticDisk",t.flowChartMagneticDrum="flowChartMagneticDrum",t.flowChartMagneticTape="flowChartMagneticTape",t.flowChartManualInput="flowChartManualInput",t.flowChartManualOperation="flowChartManualOperation",t.flowChartMerge="flowChartMerge",t.flowChartMultidocument="flowChartMultidocument",t.flowChartOfflineStorage="flowChartOfflineStorage",t.flowChartOffpageConnector="flowChartOffpageConnector",t.flowChartOnlineStorage="flowChartOnlineStorage",t.flowChartOr="flowChartOr",t.flowChartPredefinedProcess="flowChartPredefinedProcess",t.flowChartPreparation="flowChartPreparation",t.flowChartProcess="flowChartProcess",t.flowChartPunchedCard="flowChartPunchedCard",t.flowChartPunchedTape="flowChartPunchedTape",t.flowChartSort="flowChartSort",t.flowChartSummingJunction="flowChartSummingJunction",t.flowChartTerminator="flowChartTerminator",t.folderCorner="folderCorner",t.frame="frame",t.funnel="funnel",t.gear6="gear6",t.gear9="gear9",t.halfFrame="halfFrame",t.heart="heart",t.heptagon="heptagon",t.hexagon="hexagon",t.homePlate="homePlate",t.horizontalScroll="horizontalScroll",t.irregularSeal1="irregularSeal1",t.irregularSeal2="irregularSeal2",t.leftArrow="leftArrow",t.leftArrowCallout="leftArrowCallout",t.leftBrace="leftBrace",t.leftBracket="leftBracket",t.leftCircularArrow="leftCircularArrow",t.leftRightArrow="leftRightArrow",t.leftRightArrowCallout="leftRightArrowCallout",t.leftRightCircularArrow="leftRightCircularArrow",t.leftRightRibbon="leftRightRibbon",t.leftRightUpArrow="leftRightUpArrow",t.leftUpArrow="leftUpArrow",t.lightningBolt="lightningBolt",t.line="line",t.lineInv="lineInv",t.mathDivide="mathDivide",t.mathEqual="mathEqual",t.mathMinus="mathMinus",t.mathMultiply="mathMultiply",t.mathNotEqual="mathNotEqual",t.mathPlus="mathPlus",t.moon="moon",t.noSmoking="noSmoking",t.nonIsoscelesTrapezoid="nonIsoscelesTrapezoid",t.notchedRightArrow="notchedRightArrow",t.octagon="octagon",t.parallelogram="parallelogram",t.pentagon="pentagon",t.pie="pie",t.pieWedge="pieWedge",t.plaque="plaque",t.plaqueTabs="plaqueTabs",t.plus="plus",t.quadArrow="quadArrow",t.quadArrowCallout="quadArrowCallout",t.rect="rect",t.ribbon="ribbon",t.ribbon2="ribbon2",t.rightArrow="rightArrow",t.rightArrowCallout="rightArrowCallout",t.rightBrace="rightBrace",t.rightBracket="rightBracket",t.round1Rect="round1Rect",t.round2DiagRect="round2DiagRect",t.round2SameRect="round2SameRect",t.roundRect="roundRect",t.rtTriangle="rtTriangle",t.smileyFace="smileyFace",t.snip1Rect="snip1Rect",t.snip2DiagRect="snip2DiagRect",t.snip2SameRect="snip2SameRect",t.snipRoundRect="snipRoundRect",t.squareTabs="squareTabs",t.star10="star10",t.star12="star12",t.star16="star16",t.star24="star24",t.star32="star32",t.star4="star4",t.star5="star5",t.star6="star6",t.star7="star7",t.star8="star8",t.stripedRightArrow="stripedRightArrow",t.sun="sun",t.swooshArrow="swooshArrow",t.teardrop="teardrop",t.trapezoid="trapezoid",t.triangle="triangle",t.upArrow="upArrow",t.upArrowCallout="upArrowCallout",t.upDownArrow="upDownArrow",t.upDownArrowCallout="upDownArrowCallout",t.uturnArrow="uturnArrow",t.verticalScroll="verticalScroll",t.wave="wave",t.wedgeEllipseCallout="wedgeEllipseCallout",t.wedgeRectCallout="wedgeRectCallout",t.wedgeRoundRectCallout="wedgeRoundRectCallout"})(gg||(gg={}));var Ga;(function(t){t.text1="tx1",t.text2="tx2",t.background1="bg1",t.background2="bg2",t.accent1="accent1",t.accent2="accent2",t.accent3="accent3",t.accent4="accent4",t.accent5="accent5",t.accent6="accent6"})(Ga||(Ga={}));var vg;(function(t){t.left="left",t.center="center",t.right="right",t.justify="justify"})(vg||(vg={}));var yg;(function(t){t.top="top",t.middle="middle",t.bottom="bottom"})(yg||(yg={}));var jo;(function(t){t.ACTION_BUTTON_BACK_OR_PREVIOUS="actionButtonBackPrevious",t.ACTION_BUTTON_BEGINNING="actionButtonBeginning",t.ACTION_BUTTON_CUSTOM="actionButtonBlank",t.ACTION_BUTTON_DOCUMENT="actionButtonDocument",t.ACTION_BUTTON_END="actionButtonEnd",t.ACTION_BUTTON_FORWARD_OR_NEXT="actionButtonForwardNext",t.ACTION_BUTTON_HELP="actionButtonHelp",t.ACTION_BUTTON_HOME="actionButtonHome",t.ACTION_BUTTON_INFORMATION="actionButtonInformation",t.ACTION_BUTTON_MOVIE="actionButtonMovie",t.ACTION_BUTTON_RETURN="actionButtonReturn",t.ACTION_BUTTON_SOUND="actionButtonSound",t.ARC="arc",t.BALLOON="wedgeRoundRectCallout",t.BENT_ARROW="bentArrow",t.BENT_UP_ARROW="bentUpArrow",t.BEVEL="bevel",t.BLOCK_ARC="blockArc",t.CAN="can",t.CHART_PLUS="chartPlus",t.CHART_STAR="chartStar",t.CHART_X="chartX",t.CHEVRON="chevron",t.CHORD="chord",t.CIRCULAR_ARROW="circularArrow",t.CLOUD="cloud",t.CLOUD_CALLOUT="cloudCallout",t.CORNER="corner",t.CORNER_TABS="cornerTabs",t.CROSS="plus",t.CUBE="cube",t.CURVED_DOWN_ARROW="curvedDownArrow",t.CURVED_DOWN_RIBBON="ellipseRibbon",t.CURVED_LEFT_ARROW="curvedLeftArrow",t.CURVED_RIGHT_ARROW="curvedRightArrow",t.CURVED_UP_ARROW="curvedUpArrow",t.CURVED_UP_RIBBON="ellipseRibbon2",t.CUSTOM_GEOMETRY="custGeom",t.DECAGON="decagon",t.DIAGONAL_STRIPE="diagStripe",t.DIAMOND="diamond",t.DODECAGON="dodecagon",t.DONUT="donut",t.DOUBLE_BRACE="bracePair",t.DOUBLE_BRACKET="bracketPair",t.DOUBLE_WAVE="doubleWave",t.DOWN_ARROW="downArrow",t.DOWN_ARROW_CALLOUT="downArrowCallout",t.DOWN_RIBBON="ribbon",t.EXPLOSION1="irregularSeal1",t.EXPLOSION2="irregularSeal2",t.FLOWCHART_ALTERNATE_PROCESS="flowChartAlternateProcess",t.FLOWCHART_CARD="flowChartPunchedCard",t.FLOWCHART_COLLATE="flowChartCollate",t.FLOWCHART_CONNECTOR="flowChartConnector",t.FLOWCHART_DATA="flowChartInputOutput",t.FLOWCHART_DECISION="flowChartDecision",t.FLOWCHART_DELAY="flowChartDelay",t.FLOWCHART_DIRECT_ACCESS_STORAGE="flowChartMagneticDrum",t.FLOWCHART_DISPLAY="flowChartDisplay",t.FLOWCHART_DOCUMENT="flowChartDocument",t.FLOWCHART_EXTRACT="flowChartExtract",t.FLOWCHART_INTERNAL_STORAGE="flowChartInternalStorage",t.FLOWCHART_MAGNETIC_DISK="flowChartMagneticDisk",t.FLOWCHART_MANUAL_INPUT="flowChartManualInput",t.FLOWCHART_MANUAL_OPERATION="flowChartManualOperation",t.FLOWCHART_MERGE="flowChartMerge",t.FLOWCHART_MULTIDOCUMENT="flowChartMultidocument",t.FLOWCHART_OFFLINE_STORAGE="flowChartOfflineStorage",t.FLOWCHART_OFFPAGE_CONNECTOR="flowChartOffpageConnector",t.FLOWCHART_OR="flowChartOr",t.FLOWCHART_PREDEFINED_PROCESS="flowChartPredefinedProcess",t.FLOWCHART_PREPARATION="flowChartPreparation",t.FLOWCHART_PROCESS="flowChartProcess",t.FLOWCHART_PUNCHED_TAPE="flowChartPunchedTape",t.FLOWCHART_SEQUENTIAL_ACCESS_STORAGE="flowChartMagneticTape",t.FLOWCHART_SORT="flowChartSort",t.FLOWCHART_STORED_DATA="flowChartOnlineStorage",t.FLOWCHART_SUMMING_JUNCTION="flowChartSummingJunction",t.FLOWCHART_TERMINATOR="flowChartTerminator",t.FOLDED_CORNER="folderCorner",t.FRAME="frame",t.FUNNEL="funnel",t.GEAR_6="gear6",t.GEAR_9="gear9",t.HALF_FRAME="halfFrame",t.HEART="heart",t.HEPTAGON="heptagon",t.HEXAGON="hexagon",t.HORIZONTAL_SCROLL="horizontalScroll",t.ISOSCELES_TRIANGLE="triangle",t.LEFT_ARROW="leftArrow",t.LEFT_ARROW_CALLOUT="leftArrowCallout",t.LEFT_BRACE="leftBrace",t.LEFT_BRACKET="leftBracket",t.LEFT_CIRCULAR_ARROW="leftCircularArrow",t.LEFT_RIGHT_ARROW="leftRightArrow",t.LEFT_RIGHT_ARROW_CALLOUT="leftRightArrowCallout",t.LEFT_RIGHT_CIRCULAR_ARROW="leftRightCircularArrow",t.LEFT_RIGHT_RIBBON="leftRightRibbon",t.LEFT_RIGHT_UP_ARROW="leftRightUpArrow",t.LEFT_UP_ARROW="leftUpArrow",t.LIGHTNING_BOLT="lightningBolt",t.LINE_CALLOUT_1="borderCallout1",t.LINE_CALLOUT_1_ACCENT_BAR="accentCallout1",t.LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR="accentBorderCallout1",t.LINE_CALLOUT_1_NO_BORDER="callout1",t.LINE_CALLOUT_2="borderCallout2",t.LINE_CALLOUT_2_ACCENT_BAR="accentCallout2",t.LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR="accentBorderCallout2",t.LINE_CALLOUT_2_NO_BORDER="callout2",t.LINE_CALLOUT_3="borderCallout3",t.LINE_CALLOUT_3_ACCENT_BAR="accentCallout3",t.LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR="accentBorderCallout3",t.LINE_CALLOUT_3_NO_BORDER="callout3",t.LINE_CALLOUT_4="borderCallout4",t.LINE_CALLOUT_4_ACCENT_BAR="accentCallout3=4",t.LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR="accentBorderCallout4",t.LINE_CALLOUT_4_NO_BORDER="callout4",t.LINE="line",t.LINE_INVERSE="lineInv",t.MATH_DIVIDE="mathDivide",t.MATH_EQUAL="mathEqual",t.MATH_MINUS="mathMinus",t.MATH_MULTIPLY="mathMultiply",t.MATH_NOT_EQUAL="mathNotEqual",t.MATH_PLUS="mathPlus",t.MOON="moon",t.NON_ISOSCELES_TRAPEZOID="nonIsoscelesTrapezoid",t.NOTCHED_RIGHT_ARROW="notchedRightArrow",t.NO_SYMBOL="noSmoking",t.OCTAGON="octagon",t.OVAL="ellipse",t.OVAL_CALLOUT="wedgeEllipseCallout",t.PARALLELOGRAM="parallelogram",t.PENTAGON="homePlate",t.PIE="pie",t.PIE_WEDGE="pieWedge",t.PLAQUE="plaque",t.PLAQUE_TABS="plaqueTabs",t.QUAD_ARROW="quadArrow",t.QUAD_ARROW_CALLOUT="quadArrowCallout",t.RECTANGLE="rect",t.RECTANGULAR_CALLOUT="wedgeRectCallout",t.REGULAR_PENTAGON="pentagon",t.RIGHT_ARROW="rightArrow",t.RIGHT_ARROW_CALLOUT="rightArrowCallout",t.RIGHT_BRACE="rightBrace",t.RIGHT_BRACKET="rightBracket",t.RIGHT_TRIANGLE="rtTriangle",t.ROUNDED_RECTANGLE="roundRect",t.ROUNDED_RECTANGULAR_CALLOUT="wedgeRoundRectCallout",t.ROUND_1_RECTANGLE="round1Rect",t.ROUND_2_DIAG_RECTANGLE="round2DiagRect",t.ROUND_2_SAME_RECTANGLE="round2SameRect",t.SMILEY_FACE="smileyFace",t.SNIP_1_RECTANGLE="snip1Rect",t.SNIP_2_DIAG_RECTANGLE="snip2DiagRect",t.SNIP_2_SAME_RECTANGLE="snip2SameRect",t.SNIP_ROUND_RECTANGLE="snipRoundRect",t.SQUARE_TABS="squareTabs",t.STAR_10_POINT="star10",t.STAR_12_POINT="star12",t.STAR_16_POINT="star16",t.STAR_24_POINT="star24",t.STAR_32_POINT="star32",t.STAR_4_POINT="star4",t.STAR_5_POINT="star5",t.STAR_6_POINT="star6",t.STAR_7_POINT="star7",t.STAR_8_POINT="star8",t.STRIPED_RIGHT_ARROW="stripedRightArrow",t.SUN="sun",t.SWOOSH_ARROW="swooshArrow",t.TEAR="teardrop",t.TRAPEZOID="trapezoid",t.UP_ARROW="upArrow",t.UP_ARROW_CALLOUT="upArrowCallout",t.UP_DOWN_ARROW="upDownArrow",t.UP_DOWN_ARROW_CALLOUT="upDownArrowCallout",t.UP_RIBBON="ribbon2",t.U_TURN_ARROW="uturnArrow",t.VERTICAL_SCROLL="verticalScroll",t.WAVE="wave"})(jo||(jo={}));var Oe;(function(t){t.AREA="area",t.BAR="bar",t.BAR3D="bar3D",t.BUBBLE="bubble",t.BUBBLE3D="bubble3D",t.DOUGHNUT="doughnut",t.LINE="line",t.PIE="pie",t.RADAR="radar",t.SCATTER="scatter"})(Oe||(Oe={}));var nA;(function(t){t.TEXT1="tx1",t.TEXT2="tx2",t.BACKGROUND1="bg1",t.BACKGROUND2="bg2",t.ACCENT1="accent1",t.ACCENT2="accent2",t.ACCENT3="accent3",t.ACCENT4="accent4",t.ACCENT5="accent5",t.ACCENT6="accent6"})(nA||(nA={}));var Io;(function(t){t.chart="chart",t.image="image",t.line="line",t.rect="rect",t.text="text",t.placeholder="placeholder"})(Io||(Io={}));var Et;(function(t){t.chart="chart",t.hyperlink="hyperlink",t.image="image",t.media="media",t.online="online",t.placeholder="placeholder",t.table="table",t.tablecell="tablecell",t.text="text",t.notes="notes"})(Et||(Et={}));var yf;(function(t){t.title="title",t.body="body",t.image="pic",t.chart="chart",t.table="tbl",t.media="media"})(yf||(yf={}));var Cu;(function(t){t.DEFAULT="•",t.CHECK="✓",t.STAR="★",t.TRIANGLE="▶"})(Cu||(Cu={}));const wu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAB3CAYAAAD1oOVhAAAGAUlEQVR4Xu2dT0xcRRzHf7tAYSsc0EBSIq2xEg8mtTGebVzEqOVIolz0siRE4gGTStqKwdpWsXoyGhMuyAVJOHBgqyvLNgonDkabeCBYW/8kTUr0wsJC+Wfm0bfuvn37Znbem9mR9303mJnf/Pb7ed95M7PDI5JIJPYJV5EC7e3t1N/fT62trdqViQCIu+bVgpIHEo/Hqbe3V/sdYVKHyWSSZmZm8ilVA0oeyNjYmEnaVC2Xvr6+qg5fAOJAz4DU1dURGzFSqZRVqtMpAFIGyMjICC0vL9PExIRWKADiAYTNshYWFrRCARAOEFZcCKWtrY0GBgaUTYkBRACIE4rKZwqACALR5RQAqQCIDqcASIVAVDsFQCSAqHQKgEgCUeUUAPEBRIVTAMQnEBvK5OQkbW9vk991CoAEAMQJxc86BUACAhKUUwAkQCBBOAVAAgbi1ykAogCIH6cAiCIgsk4BEIVAZJwCIIqBVLqiBxANQFgXS0tLND4+zl08AogmIG5OSSQS1gGKwgtANAIRcQqAaAbCe6YASBWA2E6xDyeyDUl7+AKQMkDYYevm5mZHabA/Li4uUiaTsYLau8QA4gLE/hU7wajyYtv1hReDAiAOxQcHBymbzark4BkbQKom/X8dp9Npmpqasn4BIAYAYSnYp+4BBEAMUcCwNOCQsAKZnp62NtQOw8WmwT09PUo+ijaHsOMx7GppaaH6+nolH0Z10K2tLVpdXbW6UfV3mNqBdHd3U1NTk2rtlMRfW1uj2dlZAFGirkRQAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAGHqrm8caPzQ0WC1logbeiC7X3xJm0PvUmRzh45cuki1588FAmVn9BO6P3yF9utrqGH0MtW82S8UN9RA9v/4k7InjhcJFTs/TLVXLwmJV67S7vD7tHF5pKi46fYdosdOcOOGG8j1OcqefbFEJD9Q3GCwDhqT31HklS4A8VRgfYM2Op6k3bt/BQJl58J7lPvwg5JYNccepaMry0LPqFA7hCm39+NNyp2J0172b19QysGINj5CsRtpij57musOViH0QPJQXn6J9u7dlYJSFkbrMYolrwvDAJAC+WWdEpQz7FTgECeUCpzi6YxvvqXoM6eEhqnCSgDikEzUKUE7Aw7xuHctKB5OYU3dZlNR9syQdAaAcAYTC0pXF+39c09o2Ik+3EqxVKqiB7hbYAxZkk4pbBaEM+AQofv+wTrFwylBOQNABIGwavdfe4O2pg5elO+86l99nY58/VUF0byrYsjiSFluNlXYrOHcBar7+EogUADEQ0YRGHbzoKAASBkg2+9cpM1rV0tK2QOcXW7bLEFAARAXIF4w2DrDWoeUWaf4hQIgDiA8GPZ2iNfi0Q8UACkAIgrDbrJ385eDxaPLLrEsFAB5oG6lMPJQPLZZZKAACBGVhcG2Q+bmuLu2nk55e4jqPv1IeEoceiBeX7s2zCa5MAqdstl91vfXwaEGsv/rb5TtOFk6tWXOuJGh6KmnhO9sayrMninPx103JBtXblHkice58cINZP4Hyr5wpkgkdiChEmc4FWazLzenNKa/p0jncwDiqcD6BuWePk07t1asatZGoYQzSqA4nFJ7soNiP/+EUyfc25GI2GG53dHPrKo1g/1Cw4pIXLrzO+1c+/wg7tBbFDle/EbQcjFCPWQJCau5EoBoFpzXHYDwFNJcDiCaBed1ByA8hTSXA4hmwXndAQhPIc3lAKJZcF53AMJTSHM5gGgWnNcdgPAU0lwOIJoF53UHIDyFNJcfSiCdnZ0Ui8U0SxlMd7lcjubn561gh+Y1scFIU/0o/3sgeLO12E2k7UXKYumgFoAYdg8ACIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6ZQ4JB6PKzviYthnNy4d9h+1M5mMlVckkUjsG5dhiBMCEMPg/wuOfrZZ/RSywQAAAABJRU5ErkJggg==",gS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAVnCAYAAACzfHDVAAAAYHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjaVcjJDYAwDEXBu6ughBfH+YnLQSwSHVA+Yrkwx7HtPHabHuEWrQ+lBBAZ6TMweBWoCwUH8quZH6VWFXVT696zxp12ARkVFEqn8wB8AAAACXBIWXMAAC4jAAAuIwF4pT92AADZLklEQVR42uzdd5hV9Z0/8M+dmcsUZmDovYOhKCiKYhR7JJuoSTCWGFI0WUxijBoTTXazVlyza4maYm9rTRSJigVsqCDNQhHBAogKCEgRMjMMU+7vj93sL8kqClLmnPt6PY+PeXZM9vP9vO8jZ+Y955xMfJLjorBrRMuSgmiViyjN1Ee2oSCyucbIBAAAAAAAAADbXaYgcoWNUZcrirpMbdRsysa69wbF+rggGrf439vSF7seF12aFUTnxvoosGIAAAAAAACAXacgoqEgF++/VRgr4r5o+Kh/pvD//F8uiII+LaPrum/EXzqui2b1ddHGKgEAAAAAAAB2rVxEQWMmWrQtjHZlA6N2w2tR84//zP8pgHu3ib6NBdG+zdqorK6KVUXZaB85j3sGAAAAAAAAaAoaG6OwIBdtyneP2PBabPzbr/1dAdx3VHRtyESHiIhcYzQrLo7WmVzkcjmPgAYAAAAAAABoSgpy0eIfS+D/LYD7fy3abC6Inn/7X2hsjELlLwAAAAAAAEDT9D8lcM1fHwddFBFxyAVR9M686PVp/gfqayKiJiLqLBMAAAAAAABgh8hGRGlEUekn/6PFEb3ikNgQk6O+KCJi6dzoksv83/cB/1X9xoiaJdmoWxlRV1dk2QAAAAAAAAA7QTZbH9muERX96v7n9t7/q6Exinq3i86LI94pjOOisHUu+uYykfmof7h+Y8Sa6aVRt74gGhs9DRoAAAAAAABgZ2lsLIi69QWxeUUmSjs0/vedwR8hk4uydSfE+wVd6qOyMfMx7/mtj9jwUtbjngEAAAAAAAB2obrqolg7IxtR/9Ffb4wo7P5GtCwobRaVH/c/UvNmNuqqPfIZAAAAAAAAYFerqy6KmjezH/v1ktpoVZBr/PgCeMN7yl8AAAAAAACApmJLHW5jUVQWNDSP+Q3ZeLco4i9/+8X6teHRzwAAAAAAAABNSd3/dLn/oLAoqqIuVhXFxhhSGB/xqGjlLwAAAAAAAECTU1eTjaK/KXSLIv7SWB+bc5ko9YxnAAAAAAAAgATJFv393bz1EeV//c8F1gMAAAAAAACQDgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKREkRUAAACwrUpLSwuGDRvWfMCAAS26du3avKysrLiioqKkZcuWzZs1a1bcvHnz0tLS0rJsNtusuLi4ebNmzUoLCgo+8/eijY2N9Zs3b66pra2tqqur21xTU1NdVVVVs2nTptqNGzdWbdiwoeYvf/nL5hUrVlQtWLBgw6xZs6pqamoaJQYAAEDaKYABAACIiIghQ4aUHnTQQW379u3bql27dq3at2/fpkWLFq2bN29eWVpa2qpZs2bNCwsLm2ez2fLCwsLyoqKi8sLCwtKknK+hoaG6vr6+qqGh4S91dXV/aWhoqNq8eXNVTU3NuqqqqvUbNmxYu2rVqjWrV69e99Zbb6177rnnPpgzZ06NTwYAAABJogAGAADIA8OGDWt+xBFHdBwwYECnLl26dGjdunXHFi1adCgtLe1YUlLSvlmzZq0KCgqK07yDwsLCssLCwrKIaPdp/zuNjY21mzdvXrdp06ZVNTU172/YsGHl2rVr31+2bNnKBQsWrHjyySffnzVrVpVPGAAAAE1Fpuexsd9HfaF+ZcSal0ptCAAAIAE6deqUPf744zvtueeeXbp3796lbdu2XSorKzuXlpZ2KS0t7VBYWFhhSztGQ0PDxpqampU1NTXL169fv+yDDz5Y9s477yybPXv2sj/96U8rVqxYUWdLAAAAbE9t9q6Jog4f/TUFMAAAQEJks9nMt7/97Y4jRozo1bdv397t2rXrXl5e3rWsrKxzcXFx+4gosKUmp7G2tnZVTU3Nso0bNy5btWrV0tdff/2tJ598cvG999672noAAADYFgpgAACAhPne977X6a9Fb/v27Xu1bNmyV1lZWa8kvXOXLauvr9/wl7/8ZdG6desWL1u2bNHChQsX/fGPf1w8derUjbYDAADAliiAAQAAmqhsNps59dRTuxx66KH9+/Tp87n27dv3Ly8v719UVOSRzXlq06ZNKzZu3Pj6+++//8abb775xqOPPvrG3XffvcpmAAAA+CsFMAAAQBNx6qmndvniF784qHfv3v3btWv3uYqKis8VFhaW2wxbUl9fv37Dhg1vfPDBB68vXrz4jccee2z+jTfeuNxmAAAA8pMCGAAAYBc45phjWn/rW9/aq3///kPatGnTv6Kiop9HOLO9NDQ0VG/cuPGtNWvWLFy4cOGcO+6445WHHnporc0AAACknwIYAABgJzjjjDO6f+lLX9qrV69eg1u3bj2orKysR0RkbIadJFddXb103bp18xcvXjz30UcffeXqq69+x1oAAADSRwEMAACwnZWWlhb86le/2u3QQw8d1r17931btmw5qLCwsMxmaEoaGhqqP/zww/nvvPPOzGeeeWbW2LFj36ipqWm0GQAAgGRTAAMAAGwHP/7xj7t+9atf3bdXr15D27Ztu1c2m21jKyRJXV3dmg8++OCVRYsWvfznP/95xh/+8IdltgIAAJA8CmAAAIBtcOKJJ7Y75ZRTDujXr9+w1q1bD81ms61shTSpq6tbt3bt2pfffPPNWbfccsvUe++9d7WtAAAANH0KYAAAgE+hoqKi4IILLhg0YsSI/bp27bpfy5YtB2YymUKbIR/kcrmGDz/8cP6777474/nnn59x4YUXvrZx40aPiwYAAGiCFMAAAAAf4/jjj2/7/e9//8D+/fsf2Lp1630KCgpKbAUiGhsbN61fv37eW2+9NeWGG2545u67715lKwAAAE2DAhgAAOB/ZLPZzAUXXPC5I4888sDu3bsfWFFRsVtEFNgMbFl1dfWSd999d8qsWbNmnnvuuS+vW7euwVYAAAB2DQUwAACQ10pLSwsuvfTSQYcccsjBXbt2HVFWVtbDVmDb1dbWrnr//fdfmDp16uRf/vKXL65evbreVgAAAHYeBTAAAJB3Bg0aVHrBBRd8fs899zywQ4cOBxQVFbWwFdj+Ghsba9euXTtrzpw5T59//vmTX3755WpbAQAA2LEUwAAAQF4YNmxY8/POO+/gIUOGHOZ9vrDz/W0ZfNFFFz07a9asKlsBAADY/hTAAABAarVq1arwyiuv3HfEiBEjO3TocFBhYWGZrcCu19DQUP3+++8/O2XKlIk/+clPZm7cuLHRVgAAALYPBTAAAJAqrVq1Kvztb3+7/3777Xd4x44dRxQWFpbbCjRdDQ0NG99///0pM2bMeOqHP/zhC8pgAACAz0YBDAAApMJZZ53V45vf/OaRvXr1GllaWtrVRiB5ampq3l28ePHEO++8c9LVV1/9jo0AAABsPQUwAACQWMOHDy+/6KKLvjB48OCjW7RoMdBGID0+/PDDV+fNmzfhvPPOe3L69Ol/sREAAIBPRwEMAAAkSqtWrQpvuOGGQ/bbb79/atOmzX6ZTCZrK5BeuVyubs2aNTNmzJjx2JgxYyavW7euwVYAAAA+ngIYAABIhB//+Mddv/e9732lZ8+e/1RcXNzWRiD/1NbWfvD2228/dssttzz029/+9l0bAQAA+L8UwAAAQJNVUVFRcO21137+4IMPPrZ169b7ZTKZAlsBIqJxzZo1M59//vnxp5122hR3BQMAAPx/CmAAAKDJOeWUUzqefvrpx/bu3ftL2Wy2jY0AH6e+vn7j0qVLH/vd7373x+uvv36ZjQAAAPlOAQwAADQJ2Ww2c+uttx5wyCGHnNC6deu9I8LdvsDWaFy7du1L06ZN+/OPfvSjZ1evXl1vJQAAQD5SAAMAALtU//79S6655pp/2nPPPY8tLy/vayPAZ1VTU7NswYIF488999wHp06dutFGAACAfKIABgAAdomf//znPU855ZQTu3btemRhYWGZjQDbW2NjY92KFSuevOWWW+689NJLF9kIAACQDxTAAADATuMxz8Cusn79+rlPP/30f5188slT6+rqcjYCAACklQIYAADY4fr27Vv8hz/84a+Pee5nI8CuUlNT8+68efPu/8EPfvDgwoULN9kIAACQNgpgAABghxkyZEjpNddc89XBgwefWFxc3MFGgKaitrZ21dy5c+/5yU9+8uc5c+bU2AgAAJAWWyqAPYoNAADYJqNHj+4wb968n06ZMuXRYcOGnaH8BZqa4uLi9sOGDTtjypQpj86bN++nJ510UntbAQAA0s4dwAAAwFY599xze33/+9//dufOnY/IZDJZGwGSIpfL1S1fvvzJG2644fbLLrvsbRsBAACSyiOgAQCAz+y8887r+53vfOfbHTt2PDyTyRTaCJBUuVyuYcWKFU/cdNNN//XrX/96sY0AAABJowAGAAC22WWXXTboG9/4xg9at249zDaAtFm7du2su++++9pzzjnnNdsAAACSQgEMAABsNcUvkE8UwQAAQJIogAEAgE9N8Qvks7Vr18665557rvv5z38+3zYAAICmaksFcGHlwOj6UV9orIqoWZG1PQAAyBO/+MUvet9xxx3nHHrooT8pLS3tYiNAPiotLe2y7777HvP973+/X1lZ2ZIpU6assxUAAKCpKetcHwXlH/01BTAAAOS5M844o/u99957zpe//OWflZeX94qIjK0AeS5TXl7e8+CDDx71/e9/v3dEvDVjxowPrQUAAGgqFMAAAMD/ceKJJ7a77777fjJq1Kh/KS8v7xOKX4B/lCkvL+99+OGHj/rWt77VfvXq1Qvnz59fbS0AAMCutqUC2DuAAQAgzwwdOrTs+uuvP6l///4nFRYWltkI20NjY2Ns2rQpqquro6amJurr62PTpk2xefPmqK+vj+rq6qivr4/NmzfHpk2boqGhYZv/fxUWFkZJSUk0a9YsioqKoqysLIqKiqJZs2ZRUlISRUVFUVpa+r9/FRQUCIjtoqGhoeq11167a8yYMffMmTOnxkYAAIBdZUvvAFYAAwBAnujUqVP2nnvuGbXXXnudnM1mK22Ej9PQ0BAbN26MDRs2/J+/Nm7cGBs3boyamprYtGlTbNq0KWpqaqK2trbJnqe4uDhKSkqitLT0f/9eUVERFRUV0aJFi//zV0VFRRQWFvog8LHq6urWvvjii7eceOKJf169enW9jQAAADubAhgAAPLcXXfdddAXv/jF00tLS7vZRn7L5XKxYcOGWLt2baxbty7Wrl37d3+tW7cuNmzYkPd7atGiRbRu3TpatWoVrVu3jjZt2vzvf27dunW0aNHCh4morq5e+sgjj1zzne98Z6ptAAAAO5MCGAAA8tTVV189+MQTTzyzoqJioG3kj8bGxli5cmUsX748Pvjgg1i9evX//n3t2rXR2NhoSZ9RYWFhtGrVKtq1axdt27b937937tw5OnTo4LHTeWbDhg3z77333qvOPPPMebYBAADsDApgAADIM1/72tfaXHrppad27979qIjQRKVUQ0NDrFq1KlasWBHvv//+//595cqVTfqRzGlXXFwcHTp0iI4dO0bnzp2jY8eO0alTp2jXrp1HS6dYLpdrfOeddx76+c9/fv2ECRPW2QgAALAjKYABACBP9OrVq9ldd931jT322OM7hYWFZTaSHh9++GG88847sXTp0njvvfdixYoVsXr16mhoaLCchCgsLIz27dtHp06dolu3btG9e/fo3r27x0mnTENDQ9W8efNu++Y3v/nHJUuWbLYRAABgR1AAAwBAHrjrrrtG/NM//dOZJSUlXWwj2davXx9Lly6Nd955539L3w8//NBiUqqysvJ/y+C//tWqVSuLSbiamppljz322G9Gjx49xTYAAIDtTQEMAAAp9qtf/arPD3/4w5+1atVqL9tIno0bN8aSJUvirbfeikWLFsV7770XmzZtspg8V1JSEl27do0+ffpE3759o3fv3lFeXm4xCbRu3bqXr7322ivGjh27yDYAAIDtRQEMAAApNGjQoNI77rjju7vttttJBQUFWRtJhtWrV8ebb74ZixcvjiVLlsTy5cujsbHRYtiigoKC6Ny5c/Tu3Tt69+4d/fr1i7Zt21pMQjQ2Nta98cYbd33rW9+6ff78+TU2AgAAfFYKYAAASJHS0tKCBx988Jj99tvvn7PZbBsbaboaGhri7bffjrfeeisWLFgQS5YscXcv201FRUX06tUr+vbtG3379o2ePXtGYWGhxTRhdXV1a2bMmHHjV77ylYdqamr85gcAALDNFMAAAJASp59+erdf/vKX51ZWVu5jG03T6tWr47XXXouFCxfGm2++GRs3brQUdooWLVpE3759Y8CAATFw4EB3CDdh69evf/E//uM//vPqq69+xzYAAIBtoQAGAICEGzRoUOm99977w969ex+byWTc4teErF+/PubNmxcLFiyIN954Q+FLk9GiRYvo169fDBgwIPbYY4+orKy0lCYkl8s1LF68eNyJJ554rcdCAwAAW0sBDAAACXbNNdcMOemkk35RVlbWyzZ2vVwuF++++27MnTs3XnvttViyZIl3+NLkFRQURK9evWLQoEExePDg6Natm6U0EdXV1UvuvvvuX//kJz+ZYxsAAMCnpQAGAIAEOuqoo1r99re//VmHDh0Ot41da9OmTTF79uyYO3duLFy4MKqqqiyFRGvevHn0798/Bg8eHHvuuWeUlJRYyi62cuXKp04//fTLJ0yYsM42AACAT6IABgCAhBk3btwRRxxxxFnZbLaNbewaVVVVMXfu3Jg7d27Mnz8/amtrLYVUKi4ujoEDB8bgwYNj8ODBUV5ebim7SF1d3ZqnnnrqqlGjRj1hGwAAwJYogAEAICFOOeWUjhdddNEvW7duvZ9t7HwrV66MWbNmxdy5c+Odd96JXC5nKeSdzp07x9577x3Dhg2LDh06WMgusHbt2hnnnXfepbfccsv7tgEAAHwUBTAAADRxpaWlBU899dQ3Bw8e/L2CggLPYt2JVqxYES+99FK89NJLsXz5cguBv/HXMnjvvfeOTp06WchO1NjYuGnu3Lk3H3744XfV1NR40TgAAPB3FMAAANCEjR49usOll176yzZt2gy3jZ1j/fr18eKLL8bMmTNj6dKlFgKfQs+ePWPfffeNYcOGRYsWLSxkJ1mzZs0L55577q/vvvvuVbYBAAD8lQIYAACaoIqKioKJEyd+c/Dgwd8vKCgotpEda8OGDfHiiy/G9OnTlb7wGfXo0SOGDx8ew4YNi4qKCgvZwdwNDAAA/CMFMAAANDGnnHJKx7Fjx/5rZWXlMNvYcerr6+PVV1+NGTNmxLx586Kurs5SYDvKZrMxZMiQ2HfffWP33XePwsJCS9mB1q5dO+MXv/jFv995550rbQMAAPKbAhgAAJqIbDabeeKJJ47fZ599fuSu3x0jl8vFwoULY/r06TF79uzYtGmTpcBOUFpaGkOGDInhw4fHgAEDLGQHaWhoqJ42bdo1Rx555J9tAwAA8pcCGAAAmoDjjz++7ZVXXvmr1q1be9fvDrBmzZqYNm1azJw5M1audHMc7EodO3aMz3/+87H//vt7X/CO+3fetDPPPPOScePGfWAbAACQfxTAAACwi9100037HXvssf9WXFzc1ja2n1wuF6+99lo8//zzMW/evKivr7cUaEKKiopizz33jBEjRsTnPve5yGQylrId1dbWrvrjH/948Q9+8INZtgEAAPlFAQwAALvIkCFDSu+///5zunTp8k+2sf2sXbs2Jk+eHNOnT48PP/zQQiABKisrY8SIEXHIIYdEeXm5hWxHy5Yte+zrX//6f86ZM6fGNgAAID9sqQAurBwYXT/qC41VETUrsrYHAADb6IILLtjt97///VVt2rQZZhvbx+LFi2P8+PFx9913xxtvvBG1tbWWAgmxadOmeOONN+LZZ5+NtWvXRps2bTweejtp0aJFv5NOOumg0tLSuc8+++xaGwEAgPQr61wfBR/zu7XuAAYAgO0sm81mJk2a9PVhw4b9pKCgwG9VfkZ1dXUxY8aMeOaZZ+K9996zEEiRfv36xSGHHBJDhw6NgoICC/mMGhsbN8+YMeOaL37xi+Pq6upyNgIAAOnlEdAAALCTHH/88W2vuuqqCyorK/exjc9mzZo18dRTT8XUqVNj06ZNFgIpVlFREZ///OfjsMMOi8rKSgv5jNavXz/r9NNPv3DcuHEf2AYAAKSTAhgAAHaC22677fNf+9rXzstms5W2se0WLVoUjz/+eMybNy9yOTewQT4pKiqKIUOGxBFHHBG9e/e2kM+grq5u3QMPPHDRySefPM02AAAgfRTAAACwA1VUVBQ8/fTTpwwcOPCUTCbjGabbIJfLxauvvhpPPvlkLFy40EIgz2UymRgwYEAcccQRMWjQIAvZ9n+3Ns6fP/+Www8//JaNGzc22ggAAKTHlgrgwsqB0fWjvtBYFVGzwuvKAABgS0488cR2EyZMuLx79+5fzmQyGRvZOo2NjTFr1qy49dZb48knn4wPPvC0UuC/rV69OmbMmBFz5syJ0tLS6NSpU/jX7NbJZDKZ9u3bD/3+978/dPny5TNfffXValsBAIB0KOtcHwXlH/O9gDuAAQBg29x66637H3vssRcWFRW1sI2tU1NTE0899VQ8++yzsWHDBgsBPlGLFi3i4IMPjsMPPzxKS/28YmvV19d/OG7cuPNPPvnk6bYBAADJ5xHQAACwHWWz2cyzzz77rSFDhvzAI5+3zqZNm2Ly5Mnx1FNPKX6BbdKiRYs47LDD4pBDDlEEb6VcLtfwyiuvXHfooYfeWVdX5yXrAACQYApgAADYTo455pjW11133cWVlZV728ant2HDhnj88cdjypQpUVtbayHAZ1ZcXBwHHnhgfPGLX4wWLTyIYWusWbNm2re//e3zn3nmGb+JAwAACeUdwAAAsB1cfvnlu1900UW/LS8v72cbn05VVVVMmDAhbrnllnjzzTejoaHBUoDtoqGhIZYsWRLPPfdc1NTURI8ePSKb9XOMT6OsrKzb17/+9SPbtm0774knnlhtIwAAkMDreu8ABgCAz+bhhx/+8qGHHnpOQUFBsW18sk2bNsUzzzwTTzzxRFRVVVkIsMOVl5fHkUceGYccckgUF/tX9afR2Ni46emnn/71Mccc87htAABAsngENAAAbKN27doVTZ48+YxevXodZxufrK6uLp5++umYOHGi4hfYJSoqKuKLX/xiHHzwwe4I/pQWLVr0x4MOOuiadevWeUwDAAAkhEdAAwDANjj22GPbPvzww7/p2LHjobaxZXV1dfHkk0/GddddF3Pnzo26ujpLAXaJzZs3x2uvvRbPPfdcRET06NEjCgsLLWYLWrduvfv3vve9fd9+++1pCxYsqLYRAABo+rb0CGgFMAAAfITLL7989wsuuOB3zZs372UbH6+xsTGmTJkS119/fbzyyiuKX6DJ2Lx5cyxYsCCmT58excXF0a1bt8hkMhbzMUpKSjp8+ctfPrJt27ZzvBcYAACaPu8ABgCArTB+/Pgjv/CFL/xLQUFBiW18vAULFsT48eNj6dKllgE0eT169IivfOUrMWjQIMvYgsbGxpqJEydecuyxxz5pGwAA0HR5BzAAAHwK7dq1K3ruued+1qNHj6/axsdbtGhR3H///bF48WLLABKnV69ecdxxx0WfPn0sYwuWLl3654MOOujy1atX19sGAAA0Pd4BDAAAn2DYsGHNn3766V936tTpC7bx0TZs2BD33Xdf/PGPf4y1a9daCJBI69evj2nTpsW6deuiZ8+eUVLiYQ8fpbKysv+3v/3t/lOmTJmyfPlyz/cHAIAmxjuAAQBgC372s5/1uP76669t0aKF54J+hJqamhg/fnzcfPPN8fbbb0cul7MUINFyuVy888478cwzz0RVVVX07t07slk/A/lHZWVl3U488cTD6+rqZkyfPv1DGwEAgCZ0va4ABgCAj3bFFVfscdZZZ11dXFzcwTb+Xi6XixkzZsR1110XCxYsiMbGRksBUqWxsTGWLFkSM2bMiPLy8ujSpUtkMhmL+RvZbLbFQQcddHibNm1mP/HEE6ttBAAAmoYtFcDeAQwAQN6aNGnSqAMOOODsTCZTaBt/b9GiRXHPPffEu+++axlA3ujWrVucdNJJ0bt3b8v4B7lcrm7y5Mm//vKXv/yIbQAAwK63pXcAK4ABAMg7paWlBTNnzjyzT58+x9vG39uwYUOMGzcuZsyY4VHPQF7KZDKx3377xde//vWoqKiwkH+waNGiP+27775X1dTUeCwEAADsQgpgAAD4H926dctOnjz5V506dRppG/9fLpeLqVOnxp///OfYuHGjhQB5r6KiIkaNGhX777+/x0L/g+XLlz9+6KGHXvLuu+/W2QYAAOwaWyqAvQMYAIC8MXz48PInnnjiynbt2o2wjf/vnXfeiWuvvTaee+652Lx5s4UARMTmzZtjzpw58dprr0XPnj2jRYsWlvI/Kioq+n7rW98aMnXq1Ofee+89f3AAAMAusKV3ACuAAQDIC9/+9rc73n777X9o0aLFANv4b1VVVXHXXXfFvffeG+vXr7cQgI+wbt26eP7552P9+vWx2267RVFRkaVERElJSefjjjvuoA8++GDKK6+88hcbAQCAnUsBDABAXjv//PP7XXzxxX8oKSnpbBv/bfr06XHttdfGokWLLAPgU3jnnXdi2rRp0bp16+jc2R8nERHZbLbyC1/4whElJSUvTp48eY2NAADAzqMABgAgb/3ud7/b60c/+tFVRUVFrWwjYs2aNXHzzTfHpEmTora21kIAtkJtbW289NJL8c4770Tfvn2jtLQ073dSWFhYNnz48C/26dNn4UMPPbTMpwQAAHYOBTAAAHnp1ltv3f+b3/zmfxYWFjbP913kcrl4/vnn4/rrr4/ly5f7cAB8BitXroxp06ZFRUVFdOvWLTKZTF7vo6CgIDto0KBDBw0atOiBBx54xycEAAB2vC0VwJmex8Z+H/WF+pURa17ym6wAACTTww8//KXDDjvsXzKZTN6/rPGDDz6I22+/Pd544w0fDIDtbMCAAfGtb30r2rRpk/e7yOVyjVOmTPn1yJEjH/LJAACAHavN3jVR1OGjv6YABgAgdV555ZXTPve5z30r3/fQ0NAQjz32WDz++ONRV1fngwGwg2Sz2Tj66KPjC1/4QhQUFOT9Pl5//fU79tprr9/7ZAAAwI6jAAYAIC9ks9nMyy+/fFafPn2Oz/ddvPvuu3HbbbfFe++954MBsJN069YtvvOd70S3bt3yfhdLliy5f5999rmypqam0ScDAAC2PwUwAACpV1paWjBr1qyzevfufVw+7yGXy8WTTz4ZDz74oLt+AXaBbDYbxxxzTBxxxBF5fzfw0qVLHxg6dOjlSmAAANj+FMAAAKRar169mk2ePHlsu3btDsrnPaxcuTJuueWWePvtt30oAHaxnj17ximnnBIdOnTI6z2sXr16yiGHHPIvS5Ys2exTAQAA28+WCuDCyoHR9aO+0FgVUbMia3sAADRpQ4cOLXvqqacub9Omzf75uoNcLhfPPPNMXH/99bF27VofCoAmYP369TFlypQoKSmJnj17RiaTycs9NG/evPtJJ500ZPLkyc+sWLHCoykAAGA7KetcHwXlH/01BTAAAIk1ZMiQ0kceeeSKVq1a7Z2vO6iuro7bb789nnjiiWhs9IRNgKaksbEx5s+fH++//34MGDAgstn8/DlLaWlpp6997WuDn3rqqadXrlxZ75MBAACfnQIYAIDUOfTQQ1s8+OCDv2/ZsuUe+bqDOXPmxNVXX+2RzwBN3PLly+OFF16Ijh075u0joUtLSzudcMIJ+7/00ktPv/3227U+FQAA8NkogAEASJVhw4Y1v++++37TsmXLQfl4/vr6+hg/fnz88Y9/jNpaP0MHSILNmzfHiy++GJs3b47ddtstCgoK8m4HxcXFbY866qg9n3vuuaeXL1/ucdAAAPAZKIABAEiNI488snLcuHG/b9GixcB8PP97770XV111VcyZM8eHASCBFi1aFC+//HL069cvWrRokXfnLykp6XDcccftP2fOnGcWLVq0yScCAAC2jQIYAIBUOPLIIyvvvPPO35aXl++Wj+d/+umn48Ybb4wPP/zQhwEgwf7yl7/ECy+8ECUlJdGrV6+8O3+zZs3aHHXUUfspgQEAYNspgAEASLxjjz227W233faH5s2b98m3s1dVVcXNN98cTz31VDQ2NvowAKRAY2NjzJ8/P5YtWxYDBgyIZs2a5dX5mzVr1uaYY4458M0333xm4cKFNT4RAACwdRTAAAAk2qGHHtritttuuzofy9+33347rrnmmli8eLEPAkAKvf/++/HKK69Enz59orKyMq/Ons1mK4888sh9Zs6c+dTSpUs3+zQAAMCnpwAGACCxjjjiiJb33nvvteXl5f3y6dy5XC4mTZoUN998c1RVVfkgAKRYVVVVTJ06NbLZbPTp0ycymUzenL24uLjtV7/61c+/8sorTy1evLjWpwEAAD4dBTAAAIl06KGHtrj33nt/l2/lb3V1ddx0000xefLkyOVyPggAeSCXy8WCBQvi3Xffjd133z2y2fz5mUyzZs1aH3300fvNmDHjSXcCAwDAp6MABgAgcYYOHVo2fvz4qysqKgbk07mXLVsWV111lUc+A+SplStXxiuvvBKf+9znoqKiIm/O3axZszZHH3300GeeeebJFStW1PkkAADAlimAAQBIlCFDhpQ++uij17Rs2XL3fDr31KlT49prr42NGzf6EADksaqqqpg+fXq0bds2unTpkjfnLikpaT9q1KihTz755JMrV66s90kAAICPt6UCuMB6AABoSjp16pSdMGHCv1dWVu6RL2dubGyMcePGxR133BF1dW56AiCitrY2br755hg/fnw0NjbmzbkrKyv3mDBhwr9369bNXQkAALCNFMAAADQZrVq1Kpw+ffolbdq02T9fzlxdXR2/+93vYtKkSd73C8DfyeVy8fjjj8fvf//7qK6uzptzt2nTZv8pU6Zc0qpVq0KfAgAA2HoKYAAAmoSKioqC2bNnX9KuXbuD8uXMS5cujYsuuijmz5/vAwDAx3r11VfjoosuiqVLl+bNmdu1a3fQ7Nmz/72iosLPrgAAYCu5iAYAoEmYOXPmz9q1a3dIvpz35ZdfjiuuuCLWrVsnfAA+0bp16+KKK66Il19+OW/O3K5du4Nnzpz5M+kDAMDWUQADALDLvfjii2N69OgxKh/Omsvl4oEHHogbbrghamtrhQ/Ap1ZbWxs33HBDPPDAA3nz2oAePXqMevHFF8dIHwAAPj0FMAAAu9SkSZO+NnDgwFPy4ax1dXVx8803x8SJE73vF4BtksvlYuLEiXHLLbdEXV1dXpx54MCBJ0+aNOlr0gcAgE9HAQwAwC7z6KOPHnXggQeekw9nXbduXfz617+OWbNmCR6Az2zmzJnx61//Ol9eJZA58MADz3n00UePkjwAAHyywsqB0fWjvtBYFVGzImtDAADsEDfeeOO+Rx999EWZTKYw7Wddvnx5XHXVVbFy5UrBA7DdbNiwIWbPnh0DBw6MioqKtB8307179/179uz56sMPP7xc+gAA5LuyzvVRUP7RX1MAAwCw011xxRV7fPe7372qoKCgWdrPOmfOnPjtb38bGzduFDwA2111dXVMmzYtOnfuHB07dkz1WTOZTOHuu+9+eJs2bV6aNGnSKukDAJDPFMAAADQZZ5xxRvef/exnvy0sLCxP+1knTJgQd999d9TX1wsegB2moaEhXnrppchms9G3b99UnzWTyRTttddeB/3lL395dubMmRukDwBAvlIAAwDQJBx00EEVf/jDH64pLi7ulOZz5nK5eOCBB+Kxxx4TOgA77c+eBQsWRF1dXfTv3z8ymUxqz1pQUFBywAEHDJs+ffqkpUuXbpY+AAD5aEsFcIH1AACwMwwaNKj0vvvuu7qsrKxXms9ZV1cX1113XUyaNEnoAOx0EydOjOuvvz7q6upSfc6ysrJef/rTn67u379/idQBAODvKYABANjhKioqCh577LGLKyoqBqb5nNXV1XHNNdfE7NmzhQ7ALvPKK6/ElVdeGVVVVak+Z4sWLQZOnDhxbEVFhZ9vAQDA33CBDADADjdz5syftW3b9sA0n3HdunVx2WWXxRtvvCFwAHa5xYsXx2WXXRZr165N9TnbtWt34MyZM38mcQAA+P8UwAAA7FBPPvnkqB49eoxK8xlXrVoVV1xxRSxfvlzgADQZK1asiCuuuCJWrlyZ6nP26NFj1KRJk0ZJHAAA/lth5cDo+lFfaKyKqFmRtSEAALbZjTfeuO+XvvSlCzOZTGp/8fDdd9+NK6+8MtatWydwAJqc6urqmDVrVvTv3z8qKytTe85u3boN79mz57yHH37Yb2MBAJAXyjrXR0H5R39NAQwAwA5x3nnn9T311FOvLigoKE7rGV977bW45pprorq6WuAANFmbN2+OGTNmRI8ePaJ9+/apPGMmkykYNGjQIYWFhVOee+45v5UFAEDqKYABANipjjrqqFb/8R//8YdmzZq1SusZX3755bj++uujrq5O4AA0eQ0NDfHSSy9Fp06dolOnTqk8Y0FBQXbYsGGfnz9//qQ33nhjk9QBAEizLRXA3gEMAMB21a1bt+wNN9zwnyUlJR3TesYpU6bEjTfeGPX19QIHIDHq6+vjxhtvjKlTp6b2jCUlJZ1uuOGG/+jWrZu7GgAAyFsKYAAAtqunn376XyorK/dI6/kmTZoUd955ZzQ2NgobgMRpbGyMO+64I5588snUnrGysnLw008//UtpAwCQrxTAAABsN88///w3unTp8k9pPd/EiRNj3LhxkcvlhA1AYuVyubj//vtTXQJ36dLlS88+++yJ0gYAIB95BzAAANvFTTfdNPzII488L5PJZNJ4vsceeyzGjx8vaABS47XXXotmzZpF3759U3m+zp0779urV695Dz/88DJpAwCQNlt6B7ACGACAz+wXv/hF7x/+8IdXFxQUNEvj+R544IF45JFHBA1A6ixYsCDq6upiwIABqTtbJpPJDBo06ODGxsbnpk6dul7aAACkiQIYAIAd5oADDqj43e9+99tmzZq1TeP5xo0bF5MmTRI0AKm1aNGi2Lx5cwwcODB1ZysoKMjut99+w5577rnH33vvvc3SBgAgLbZUAHsHMAAA2yybzWbuvPPOfyktLe2exvNNmDBB+QtAXpg0aVI89NBDqTxbaWlpj3vuuedfstlsRtIAAOQDBTAAANvs+eef/06HDh0OTePZHn744Xj44YeFDEDeeOSRR+LPf/5zKs/WoUOHw5599tlvSxkAgHygAAYAYJvcd999hw8ePPjUNJ7t/vvvjwkTJggZgLzz2GOPxX333ZfKs+25554/+NOf/nSYlAEASDvvAAYAYKudccYZ3ceMGXN5QUFBcdrONnHixHjkkUeEDEDeWrx4cWSz2ejbt2/ajpbp06fPvn/5y18mz5w5c4OkAQBIsi29A1gBDADAVhk2bFjzG2+88Q/NmjVrl7azPfroo6l99CUAbI2FCxdGUVFR9OvXL1XnKigoKD7wwAP3e/LJJx9dsWJFnaQBAEiqLRXAHgENAMBWuffee39ZWlraPW3nevzxx+PBBx8UMAD8jz//+c8xceLE1J2rtLS0x3333fdLCQMAkFYKYAAAPrVJkyaN6tSp0xEpPFeMHz9ewADwD8aPHx+TJ09O3bk6der0hUmTJn1VwgAApJFHQAMA8Kmcd955fU888cR/z2QyRWk618yZM+Puu+8WMAB8jNdeey06duwYnTt3TtW5unbtuk9BQcHzzz333DopAwCQNN4BDADAZ3LEEUe0vOKKK67NZrOVaTrXyy+/HDfffHPkcjkhA8DHyOVyMXv27OjSpUt06tQpNefKZDJF++yzz/CpU6c+9u67726WNAAASeIdwAAAbLNsNpu55ZZb/q2kpKRjms61YMGCuPnmm6OxsVHIAPAJGhsb4+abb44333wzVecqLS3tcvfdd5+fzWYzUgYAIC0UwAAAbNGkSZO+3rZt2wPTdKZly5bFDTfcEPX19QIGgE+prq4urr322li+fHmqztWuXbsDH3/88VESBgAgLTwCGgCAj3XZZZcN+upXvzo2k8mk5hcH33///bjyyiujqqpKwACwlerq6uLll1+OIUOGRHl5eWrO1aVLl31LS0unPvPMM2ukDABAEngENAAAW61///4lJ5988q8ymUxRWs60YcOG+P3vfx8bN24UMABso40bN8bvfve7VP15WlBQkP3hD394ft++fYslDABA4q9vrQAAgI/y4IMPnl1WVtYrLeeprq6O3/zmN7Fq1SrhAsBntGrVqrjyyiujuro6NWcqKyvr8/DDD58lXQAAkk4BDADA/zF+/Pgju3XrdnRazlNfX5/KdxYCwK60fPnyuO6666K+vj41Z+rRo8dXx40bd4R0AQBIMgUwAAB/53vf+16nI4444py0nCeXy8Vtt90Wb7zxhnABYDt7/fXX47bbbotcLpeaMx155JHnfvvb3+4oXQAAkkoBDADA/6qoqCi4+OKLLywsLCxPy5nGjx8fs2bNEi4A7CCzZs2Khx56KDXnKSwsrPj1r399QUVFhZ+bAQCQSC5kAQD4XxMnThxdWVk5OC3nef7552PixImCBYAd7LHHHosXXnghNeeprKzc89FHHz1RsgAAJFFh5cDo+lFfaKyKqFmRtSEAgDxxwQUX7DZq1KgLM5lMYRrO8+qrr8Ytt9ySqkdSAkBT/7O3d+/e0a5du1Scp2PHjkNzudxzU6ZMWSddAACamrLO9VHwMc/wcwcwAADRt2/f4h//+McXZzKZVPwG4HvvvRc33HBDNDY2ChcAdpKGhoa47rrrYtmyZak4T0FBQfbss88e27dv32LpAgCQqGtZKwAAYPz48T8qKyvrkYazbNiwIX7/+99HbW2tYAFgJ9u0aVP8/ve/j40bN6biPGVlZb3GjRs3RrIAACSJAhgAIM/ddNNNw/v06XN8Gs5SX18f1157baxdu1awALCLrFmzJq699tqor69PxXn69ev3jd///vdDJQsAQFIogAEA8thBBx1Uceyxx/5rRGTScJ477rgjFi9eLFgA2MUWLVoUd955Z1qOU/CNb3zj34YNG9ZcsgAAJOIC1goAAPLXzTfffFZxcXG7NJxl4sSJMX36dKECQBMxbdq0mDRpUirOUlJS0unOO+88Q6oAACSBAhgAIE/913/914FdunT5UhrO8tprr8Wf//xnoQJAEzN+/PhYsGBBKs7SrVu3o2+66abhUgUAoKlTAAMA5KEvfelLlV/5yld+lYazrFixIq6//vpobGwULAA0MY2NjXHdddfFihUr0nCczHHHHfergw46qEKyAAA0ZQpgAIA8dPXVV5+ezWYrk36OmpqauPbaa2PTpk1CBYAmatOmTXHttddGTU1N4s+SzWbb3njjjT+RKgAATZkCGAAgz9x6663Du3Tp8uWknyOXy8Utt9wSK1euFCoANHErV66MW2+9NXK5XOLP4lHQAAA0dQpgAIA8MnTo0LKvfvWrv0jDWSZMmBBz584VKgAkxJw5c+Kxxx5LxVlGjRr1i6FDh5ZJFQCApkgBDACQR+64444fFRcXd0z6OV5++eV45JFHBAoACfPQQw+l4he4SkpKOt5xxx0/lCgAAE2RAhgAIE9cfvnlu/fs2XNU0s/xwQcfxB133JGKR0gCQL7J5XJx2223xZo1axJ/lp49ex57+eWX7y5VAACaGgUwAEAe6NatW/a73/3uv2YymURf/9XX18cNN9wQ1dXVQgWAhKqqqoobb7wx6uvrE32OTCZT8N3vfvdX3bp1y0oVAICmRAEMAJAHxo8ff0pZWVmvpJ/jnnvuiaVLlwoUABJuyZIlcd999yX+HGVlZT3Hjx9/ikQBAGhKFMAAACn385//vOeAAQNGJ/0c06dPjylTpggUAFJi8uTJMWPGjMSfY8CAAaN//vOf95QoAABNhQIYACDFstls5qyzzjo3k8kk+tGEK1asiLvvvlugAJAyd911V6xYsSLRZ8hkMtmzzjrr3Gw2m5EoAABNgQIYACDFxo0b98XKysq9knyG2trauOGGG6K2tlagAJAyf/1zfvPmzYk+R2Vl5V7jxo0bKVEAAJoCBTAAQEoNHz68/OCDDz4t6ee4//77Y/ny5QIFgJRavnx5jBs3LvHnGDFixI+HDRvWXKIAAOxqCmAAgJS69dZbT8tms22TfIYZM2bEc889J0wASLnJkyfHzJkzE32G4uLitrfffvtp0gQAYFdTAAMApNBVV121R48ePb6S5DOsXLky7rrrLmECQJ64++6744MPPkj0GXr27PnVK664Yg9pAgCwKymAAQBSprS0tOAb3/jGT5N8rdfY2Bi333679/4CQB6pqamJ2267LRobG5N8jIJvfvObZ5aWlvqZGwAAu+6i1AoAANJlwoQJX6uoqBiQ5DOMHz8+Fi1aJEwAyDNvvvlmPPjgg4k+Q4sWLQY9+OCDx0gTAIBdRQEMAJAiRx55ZOWwYcN+kOQzzJ07N5544glhAkCemjhxYixYsCDRZxg+fPiPjjjiiJbSBABgV1AAAwCkyBVXXHFyUVFRRVLnr6qqijvvvDNyuZwwASBP5XK5uP3226O6ujqxZygqKmrxm9/85mRpAgCwKyiAAQBS4vzzz+/Xu3fv45J8httvvz0+/PBDYQJAnlu3bl3cfvvtiT5D7969jz///PP7SRMAgJ1NAQwAkALZbDZz6qmn/jyTyST2+m769OkxZ84cYQIAERExe/bsmDFjRmLnz2QyBaeeeurPs9lsRpoAAOxMCmAAgBT44x//eERlZeXgpM6/du3auPfeewUJAPyde+65J9atW5fY+SsrKwf/6U9/+oIkAQDYmRTAAAAJ17dv3+JDDjnkR0k+w9133x01NTXCBAD+Tk1NTdx9992JPsPBBx/8o759+xZLEwCAnUUBDACQcHfdddc3S0pKOiV1/smTJ8e8efMECQB8pLlz58azzz6b2PlLSko63nPPPd+SJAAAO4sCGAAgwb70pS9VDhw48KSkzr9mzZoYP368IAGALXrggQdizZo1iZ2/f//+Jx111FGtJAkAwM6gAAYASLArrrji1MLCwvIkzp7L5eK2226LTZs2CRIA2KJNmzbFbbfdFrlcLpHzFxYWll1++eU/kCQAADuDAhgAIKF+8Ytf9O7evftXkjr/s88+G2+88YYgAYBP5Y033ojnn38+sfN369bt6F/96ld9JAkAwI6mAAYASKgf/vCHP8pkMom8nvvggw/igQceECIAsFXGjRsX69atS+TsmUym4NRTT/2xFAEA2NEUwAAACXTdddcNa9eu3YFJnD2Xy8Udd9wRtbW1ggQAtsqmTZvizjvvTOz8bdq02f+mm27aT5IAAOxICmAAgIQpLS0t+NrXvnZ6Uud/4YUXYuHChYIEALbJq6++GjNmzEjs/Mccc8zpFRUVfiYHAMAO42ITACBhbr/99oMrKip2S+LsGzZsiHHjxgkRAPhM7r///qiqqkrk7OXl5X3/67/+6wgpAgCwoyiAAQASpKKiouCwww47Nanz33vvvYn9YS0A0HRs2LAh7r///sTOf9BBB/1zq1atCiUJAMCOoAAGAEiQ+++//+iysrKeSZx9zpw58dJLLwkRANguXnjhhViwYEEiZy8tLe32xz/+8StSBABgR1AAAwAkRN++fYv33Xfff07i7LW1tXHvvfcKEQDYru6+++6oq6tL5Oz77bffKf379y+RIgAA25sCGAAgIW6++eZRxcXFbZM4+yOPPBJr164VIgCwXa1atSoee+yxRM6ezWbb3njjjV+TIgAA25sCGAAgAYYOHVq21157fSeJs7/33nvxxBNPCBEA2CEmTpwYK1asSOTsQ4YM+c7QoUPLpAgAwPakAAYASIBrr732xKKiosqkzZ3L5eKee+6JxsZGIQIAO0R9fX3cddddkcvlEjd7UVFR5bXXXnuCFAEA2J4UwAAATdwBBxxQMWDAgG8kcfYZM2bEW2+9JUQAYId6880348UXX0zk7AMGDPjG8OHDy6UIAMD2ogAGAGjirrrqqhOKiooqkjb3pk2b4oEHHhAgALBT3H///VFbW5u4uYuKilpcffXV7gIGAGC7UQADADRhBx10UEX//v0Teffvww8/HB9++KEQAYCdYv369TFhwoREzj5w4MBvHHDAARVSBABge1AAAwA0Yf/5n/95bGFhYfOkzb1q1aqYPHmyAAGAnerpp5+O1atXJ27uwsLC8ssuu2yUBAEA2B4UwAAATdQBBxxQMWjQoNFJnP3uu++O+vp6IQIAO1V9fX3cddddiZx99913/+bQoUPLpAgAwGelAAYAaKIuv/zyYwsLC8uTNvfcuXNjwYIFAgQAdokFCxbE3LlzEzd3UVFRi9/97ndflyAAAJ+VAhgAoAkaOnRo2aBBgxL37t+6urr405/+JEAAYJf605/+FHV1dYmbe/fdd//mkCFDSiUIAMBnoQAGAGiCfvOb33ylqKioZdLmfu655xL53j0AIF1Wr14dzz33XOLmLioqann11VcfLUEAAD4LBTAAQBPTq1evZoMHD/5m0uaurq6ORx55RIAAQJPwyCOPRHV1deLmHjJkyLe6deuWlSAAANtKAQwA0MTcdNNNxxQXF7dN2twTJkyIqqoqAQIATUJVVVUifzmtuLi43a233uouYAAAtpkCGACgCWnVqlXhXnvtdVLS5l61alU8++yzAgQAmpTJkyfHqlWrEjf30KFDR7dq1apQggAAbAsFMABAE3LLLbccXlJS0jlpcz/44INRX18vQACgSamvr48HH3wwcXOXlJR0vummmw6VIAAA20IBDADQRGSz2cwBBxzw7aTNvWjRonjppZcECAA0SS+99FIsXrw4cXOPGDHiO9lsNiNBAAC2lgIYAKCJuOaaa/YuLy/vm7S5H3roocjlcgIEAJqkXC6XyLuAy8vL+1111VV7SRAAgK2lAAYAaCK+8pWvfDdpM8+bNy8WLlwoPACgSVu4cGG8+uqrrg8BAMgLCmAAgCbgsssuG1RZWblPkmbO5XIxfvx44QEAifDAAw8k7qklrVu33veSSy7pLz0AALaGAhgAoAkYNWrUCUmbefbs2bFs2TLhAQCJsGzZsnjllVcSN/cJJ5xwovQAANgaCmAAgF3sn//5nzt37NjxiCTN3NjYGA888IDwAIBEGT9+fDQ0NCRq5k6dOn1h9OjRHaQHAMCnpQAGANjFfvSjH30tk8kk6rps2rRpsWrVKuEBAImyatWqeOGFFxI1cyaTKfzpT386SnoAAHxaCmAAgF1o0KBBpX369Plqkmaur6+PCRMmCA8ASKQJEyZEXV1dombu27fvV/r27VssPQAAPg0FMADALnTZZZcdXlRUVJGkmadOnRpr164VHgCQSOvXr48pU6YkauaioqLK3/zmN0dIDwCAT0MBDACwi2Sz2cy+++57UpJmrqurc/cvAJB4jz76aOLuAt5///1PymazGekBAPBJFMAAALvI1VdfPbSsrKx3kmaeMmVKbNiwQXgAQKJt2LAhnn/++UTNXFZW1ueqq67aS3oAAHwSBTAAwC7y5S9/+bgkzVtfXx8TJ04UHACQCo8//nji7gL+0pe+dLzkAAD4JApgAIBdYPTo0R3atm07IkkzT5s2LdatWyc8ACAVPvzww5g+fXqiZm7fvv2I0aNHd5AeAABbogAGANgFfvrTn47KZDKFSZm3vr4+HnnkEcEBAKnyyCOPRH19fWLmzWQyhT/96U+/JjkAALZEAQwAsJN16tQp26dPn6OTNLO7fwGANFq3bl1MmzYtUTP36dPnmE6dOmWlBwDAx1EAAwDsZFddddUB2Wy2dVLmbWxsjEmTJgmOVOvYsWN06OCJmgD5aNKkSdHY2JiYebPZbOurrrrqAMkBAPBxFMAAADvZiBEjvp6keV988cVYtWqV4Ei1Ll26xIUXXhinnXZadO3a1UIA8siqVavipZdecj0JAEBqKIABAHaiM844o3tlZeXeSZk3l8vFxIkTBUdeyGQyMXjw4PjVr34VY8aMcUcwQB55/PHHI5fLJWbeysrKvc8444zukgMA4KMogAEAdqJTTjnlqxGRScq8CxYsiPfee09w5JVMJhN77713XHjhhTFmzJho3769pQCk3HvvvRcLFy5M1B9X/3NdCQAA/4cCGABgJ+nVq1ezXr16fTlJM3v3L/nsr0XwBRdcECeffHK0bdvWUgBSLGnXPb169fpyr169mkkOAIB/pAAGANhJrrjiioOLiopaJmXeBN4JAztEYWFhDB8+PC688MIYPXp0VFZWWgpACi1YsCCWLVuWmHmLiopaXnnllYdIDgCAf6QABgDYSYYPH/6VJM2btHfhwY5WVFQUI0aMiEsuuSRGjx4dLVu2tBSAFMnlcvH4448naub99tvvK5IDAOAfKYABAHaC0aNHd6isrByalHnXrl0bL7/8suDgI/y1CL744ovjhBNOiBYtWlgKQEq89NJLsW7dusTMW1lZudfo0aM7SA4AgL+lAAYA2AlOP/30o5J07fXMM89EQ0OD4GALiouL47DDDouxY8fGqFGjoqyszFIAEq6hoSGeeeaZJI1c8D/XmQAA8P8vEq0AAGDHymazmX79+n05KfPW1tbGlClTBAefUnFxcYwcOTIuvfTSGDVqVJSWlloKQII9//zzUVtbm5h5+/Xr9+VsNpuRHAAAf6UABgDYwX7zm9/sWVJS0jkp886YMSOqq6sFB1uppKQkRo4cGZdcckkcffTRUVJSYikACVRdXR0zZ85M0p8/na+44orBkgMA4K8UwAAAO9gXvvCFLyVl1lwuF08//bTQ4DNo3rx5HHXUUXHJJZfEyJEjI5vNWgpAwjz11FORy+USM++RRx75ZakBAPBXCmAAgB1oyJAhpZ07dz4iKfO+/vrrsWLFCsHBdlBeXh6jRo2KSy+9VBEMkDArVqyI119/PTHzdunS5fD+/ft79AQAABGhAAYA2KHGjh17aGFhYWJeCOruX9j+KioqYtSoUXHxxRfH4YcfHkVFRZYC4LpouyosLGz+H//xHwdLDQCACAUwAMAOteeeex6ZlFnXrl0b8+bNExrsIK1atYrjjz8+LrroohgxYkQUFPh2DKApmzdvXqxZsyYx8+61115HSg0AgAgFMADADnPMMce0bt269b5Jmfe5556LxsZGwcEO1qZNmxg9enRcfPHFimCAJqyxsTGee+65JP35MvyYY45pLTkAAPykAQBgBznzzDMPz2Qyibjeqq+vj6lTpwoNdqK2bdvG6NGj47zzzovhw4crggGaoBdeeCHq6+sTMWsmkyk844wzDpUaAAB+wgAAsIP079//C0mZdc6cObFhwwahwS7QqVOnOPnkk+Pf/u3fYu+9945MJmMpAE3Ehg0bYvbs2YmZd8CAAR4DDQCAAhgAYEf43ve+16mysnKPpMybpMcbQlp17tw5xowZE7/61a8UwQBNyPPPP5+YWSsrKwd/73vf6yQ1AID8pgAGANgBTj755CMiIhHtzcqVK+P1118XGjQRXbt2jTFjxsQ555wTgwcPthCAXez111+PlStXJmXczMknn3y41AAA8psCGABgB+jXr19iHv88ZcqUyOVyQoMmpnfv3nHaaafFOeecE/3797cQgF0kl8vFlClTknQd6jHQAAB5TgEMALCdnX766d0qKip2S8Ks9fX1MW3aNKFBE9anT58466yz4pxzzonddtvNQgB2gWnTpkV9fX0iZq2oqNjt9NNP7yY1AID8pQAGANjORo8efURSZp03b15s3LhRaJAAffr0ibPPPjvOPPPM6Nmzp4UA7EQbN26MefPmuR4FACARFMAAANtZr169EvPetSQ9zhD4bwMGDIhf/vKXceaZZ0b37t0tBGAnmTp1apKuRw+TGABA/lIAAwBsR2eccUb38vLyvkmYdf369fHaa68JDRJqwIAB8S//8i9x2mmnRbdunvQJsKPNnz8/Pvzww0TMWl5e3u9HP/pRF6kBAOQnBTAAwHZ03HHHHZSUWWfMmBGNjY1CgwTLZDIxePDg+Nd//dcYM2ZMdOjQwVIAdpDGxsaYMWNGYub9xje+cYjUAADykwIYAGA76tOnz8FJmDOXyyXqMYbAlmUymdh7773jwgsvjDFjxkT79u0tBWAHeOGFF5J0XXqIxAAA8pMCGABgOznppJPat2zZcvckzLpkyZJYuXKl0CBl/loEX3DBBXHyySdH27ZtLQVgO1qxYkW8/fbbiZi1srJy0PHHH+8PAgCAPKQABgDYTr773e8eGBGZJMyapMcXAluvsLAwhg8fHhdeeGGMHj06KisrLQVgO5k+fXpSRi34/ve/f6DEAADyjwIYAGA72X333Q9Nwpz19fUxc+ZMgUEeKCoqihEjRsQll1wSo0ePjpYtW1oKwGc0c+bMqK+vT8SsAwcOPFRiAAD5RwEMALAdHHTQQRUtW7bcKwmzLly4MKqrq4UGeeSvRfDFF18cJ5xwQrRo0cJSALZRVVVVvP7664mYtVWrVkOHDx9eLjUAgPyiAAYA2A7OPvvsz2cymaIkzOrxz5C/iouL47DDDouxY8fGqFGjoqyszFIAtkFSnqaSyWSy55577uclBgCQXxTAAADbwe67735AEuasra2NOXPmCAzyXHFxcYwcOTIuvfRSRTDANpg9e3bU1dUlYtY99tjjAIkBAOQXBTAAwGfUqlWrwnbt2u2fhFnnzZsXtbW1QgMiIqKkpCRGjhwZY8eOjaOPPjpKSkosBeBT2LRpU8ybNy8Rs7Zv337/iooKPwMEAMgjLv4AAD6jCy+8cPeioqKKJMz64osvCgz4P5o3bx5HHXVUXHLJJTFy5MjIZrOWAvAJZs2alYg5i4qKWlx88cWDJAYAkD8UwAAAn9GBBx6YiMfqVVdXJ+ZOFWDXKC8vj1GjRsWll16qCAb4BPPmzYuamppEzHrQQQd5DDQAQB5RAAMAfEZdu3YdnoQ5582bF/X19QIDPlFFRUWMGjUqLr744jj88MOjqKjIUgD+QV1dXbz66quJmLVLly77SwwAIH8ogAEAPoNTTjmlY3l5+W5JmPXll18WGLBVWrVqFccff3xcdNFFMWLEiCgo8C0kwN966aWXEjFnRUXFbieddFJ7iQEA5AffvQMAfAYnnnji55MwZ21tbcyfP19gwDZp06ZNjB49OsaOHasIBvgb8+fPj9ra2iSMmvnud7/7eYkBAOQH37UDAHwGn/vc5/ZLwpwLFy6Muro6gQGfyV+L4PPOOy+GDx+uCAby3ubNm2PhwoWJmLVfv37DJQYAkB98tw4AsI1atWpV2Lp1672TMKvHPwPbU6dOneLkk0+Oc889NwYNGmQhQF6bPXt2IuZs06bN3hUVFX4WCACQB1z0AQBso/PPP39gYWFheVOfs76+PubMmSMwYLvr2bNn/OQnP4nzzjsv9t5778hkMpYC5J3Zs2dHfX19k5+zqKio4vzzzx8oMQCA9FMAAwBso/3333/fJMz5+uuvR01NjcCAHaZLly4xZsyYOOecc2Lw4MEWAuSV6urqeOONNxIx64EHHriPxAAA0k8BDACwjbp27ZqIxz/PnTtXWMBO0bt37zjttNPinHPOif79+1sIkDeScr3VvXv3vaUFAJB+CmAAgG0wZMiQ0srKyj2a+py5XM7jn4Gdrk+fPnHWWWfFOeecE7vttpuFAKk3e/bsyOVyTX7Oli1b7jlo0KBSiQEApJsCGABgG5x55pl7ZjKZbFOfc9myZbFu3TqBAbtEnz594uyzz44zzzwzevbsaSFAaq1bty6WL1/e5OfMZDLZs846a4jEAADSrcgKAAC23tChQ4clYc558+YJC9jlBgwYEAMGDIgFCxbE+PHjY+nSpZYCpM68efOiS5cuTX7OffbZZ5+ImC4xAID0cgcwAMA26Nix4z5JmHP+/PnCApqMAQMGxC9/+cs47bTTolu3bhYCpEpSrrs6deq0j7QAANJNAQwAsJWOOOKIlhUVFf2a+pxVVVWxaNEigQFNSiaTicGDB8e//uu/xpgxY6JDhw6WAqTCW2+9FVVVVU1+zoqKis8deuihLSQGAJBeCmAAgK108sknD46ITFOfc/78+dHY2CgwoEnKZDKx9957x4UXXhhjxoyJ9u3bWwqQaI2NjbFgwYJE/Cv4u9/97h4SAwBILwUwAMBW2n333fdMwpze/wskwV+L4AsuuCBOPvnkaNu2raUAiZWU66/BgwfvKS0AgPQqsgIAgK3Trl27wU19xlwul5Q7UAAiIqKwsDCGDx8e++yzT0ybNi0mTJgQ69evtxggURYsWBC5XC4ymab9sJgOHToMlhYAQHq5AxgAYCsMGjSotGXLlgOa+pzvvfdebNy4UWBA4hQVFcWIESPikksuidGjR0fLli0tBUiMDz/8MJYtW9bk52zZsuXA/v37l0gMACCdFMAAAFvhxz/+8aBMJtPkn6Li7l8g6f5aBI8dOzZOOOGEaNGihaUAibBw4cImP2Mmk8n+5Cc/GSAtAIB0UgADAGyFvffee88kzJmEHzwCfBrNmjWLww47LMaOHRujRo2KsrIySwGatKT8Il5SrmsBANh63gEMALAVunbtOqSpz1hfXx9vvvmmsIBUKS4ujpEjR8bBBx8czz77bDz++ONRXV1tMUCT8+abb0Z9fX0UFTXtH7t16dJlT2kBAKSTO4ABAD6lioqKgoqKikFNfc4lS5bE5s2bBQakUklJSYwcOTLGjh0bRx99dJSUeIUl0LTU1tbG0qVLm/ycLVu2HFRaWupngwAAKeQiDwDgUzr77LP7FhYWNvlnj7722mvCAlKvefPmcdRRR8Ull1wSI0eOjGbNmlkK4HpsKxQWFpafffbZvaQFAJA+CmAAgE9p//3375+EOV9//XVhAXmjvLw8Ro0aFf/+7/8eI0eOjGw2aymA67FP6fOf//xAaQEApI8CGADgU+rRo8fuTX3G2traePvtt4UF5J2KiooYNWpUXHzxxXH44Yc3+XdvAum2ePHiRLySo1evXoOkBQCQPgpgAIBPqXXr1k3+DoklS5ZEQ0ODsIC81apVqzj++OPj4osvjhEjRkRBgW97gZ2voaEhlixZ0uTnbNOmjQIYACCFfCcMAPApDBkypLR58+a9m/qcb775prAAIqJ169YxevToGDt2rCIYcF32MZo3b95n0KBBpdICAEgX3wEDAHwKp556av9MJtPkr53eeustYQH8jTZt2sTo0aPjvPPOi+HDhyuCAddlfyOTyRT84Ac/+Jy0AADSxXe+AACfwuDBg5v84/Hq6+tj0aJFwgL4CJ06dYqTTz45/u3f/i323nvvyGQylgLsUIsXL07Eqzn23HPPgdICAEgXBTAAwKfQpUuXAU19xnfeeSfq6uqEBbAFnTt3jjFjxiiCgR2utrY23n333SRc53oPMABAyiiAAQA+hZYtW/Zv6jN6/DPAp9elS5cYM2ZMnHvuuTF48GALAfL2+iwJ17kAAGwdBTAAwCcYPnx4eUlJSeemPqfHPwNsvV69esVpp50W55xzTvTvrwMB8u/6rLS0tPPw4cPLpQUAkB4KYACAT/Ctb31rt4ho8s8IXbx4sbAAtlGfPn3irLPOinPOOSd22203CwG2i4T8gl7m29/+dj9pAQCkhwIYAOAT7L777k2+CVi7dm1s2LBBWACfUZ8+feLss8+OM888M3r27GkhwGfy4Ycfxrp165r8nAMHDlQAAwCkSJEVAABsWadOnZr8D8TefvttQQFsRwMGDIgBAwbEggULYvz48bF06VJLAbb5Oq1Vq1audwEA2GkUwAAAn6CyslIBDJCnBgwYEP3794958+bFQw89FO+++66lAFtlyZIlsddeezX1613PvgcASBEFMADAFnTq1CnbvHnzXk19ziVLlggLYAfJZDIxePDg2GOPPeLll1+OBx98MFauXGkxQGqu05o3b967Xbt2RatXr66XGABA8nkHMADAFowZM6ZnJpPJNuUZGxsbPZoUYCfIZDKx9957x4UXXhhjxoyJ9u3bWwrwiZYuXRqNjY1NesaCgoLsqaee2kNaAADp4A5gAIAt2Hvvvfs29RlXrlwZtbW1wgLYSf5aBO+5554xa9asmDBhQqxevdpigI9UW1sb77//fnTu3LlJzzls2LC+EbFIYgAAyecOYACALejRo0eTL4DfeecdQQHsAoWFhTF8+PC48MILY/To0VFZWWkpQGKv15Jw3QsAwKejAAYA2ILWrVs3+ff/vvvuu4IC2IUKCwtjxIgRcckll8To0aOjZcuWlgIk7notCde9AAB8Oh4BDQCwBc2bN+/Z1GdUAAM0kW+wi4pixIgRsd9++8WUKVPiscceiw0bNlgMEO+9914SrnsVwAAAKeEOYACAj9G/f/+SkpKSjk19TgUwQNPSrFmzOOyww2Ls2LExatSoKCsrsxTIc0m4XistLe3Ut2/fYmkBACSfAhgA4GOccMIJ3Zr69dK6deuiqqpKWABNUHFxcYwcOTJ+/etfK4Ihz1VVVcX69eub+pgF3/zmN7tLCwAg+RTAAAAfY8iQIT2b+oxJeJwgQL77axE8duzYOProo6OkpMRSIA8l4botCde/AAB8MgUwAMDH6N69e8+mPqPHPwMkR/PmzeOoo46KSy65JEaOHBnNmjWzFMgjSbhuS8L1LwAAn0wBDADwMVq1atWjqc+4bNkyQQEkTHl5eYwaNSr+/d//PUaOHBnZbNZSIA8k4botCde/AAB8MgUwAMDHqKio6NXUZ1y+fLmgAJL750yMGjUqLr744jj88MOjqKjIUiDFknDd1rJly16SAgBIPgUwAMBHyGazmbKysq5NecbGxsZYtWqVsAASrlWrVnH88cfHxRdfHCNGjIiCAt+qQxqtWrUqGhsbm/SMJSUlXbPZbEZaAADJ5rtKAICPcNxxx7UrKCgobsozrl69Ourr64UFkBKtW7eO0aNHx9ixYxXBkEJ1dXXxwQcfNOkZCwoKio877rh20gIASDbfTQIAfITPf/7zXZr6jO+//76gAFKoTZs2MXr06Dj//PNj+PDhimBIkRUrVrgOBgBgh/NdJP+PvTuPr7I888d/nSwEkhD2HUQEUVRAoIiouCtq64Jabd1arVorbqO2tlXbaavTOu38Rqffdmpbu9rWpYogsqgFRXCttAIKArJDgAAJBLKQ5JzfH8WO4+DOcp6T9/v18jWvTv657ut6hNvnk/t+AICd2G+//bL+xVcSXiAC8PF17do1Lr300rj99ttj2LBhkUq5lRWSLgn7tyTsgwEAeH8FWgAA8H917txZAAxAVujevXtceeWVsXr16njiiSdi9uzZkclkNAYSKAn7tyTsgwEAeH8CYACAnWjXrp0roAHIKj169Igrr7wyli5dGpMmTYo5c+ZoCiRMEvZvSdgHAwDw/gTAAAA7UVxc3D3baxQAAzRPffr0ibFjx8aSJUti/PjxsWDBAk2BhEjC/i0J+2AAAN6fbwADAOxESUlJz2yur7q6Ourq6gwKoBnbb7/94l/+5V/ia1/7WhxwwAEaAglQV1cX1dXV9sEAAOxWAmAAgHc5/PDDSwsKCtpmc40VFRUGBUBERPTt2zduvPHGuOGGG2LffffVEMhy2b6PKygoaDt8+PASkwIASC4BMADAu5x44oldsr3GDRs2GBQA/8uAAQPiG9/4Rtxwww3Ru3dvDQH7uE+yH+5qUgAAyeUbwAAA79KvX7+sD4DXr19vUADs1IABA+LAAw+MuXPnxoQJE2LlypWaAlkkCTe5HHDAAV0i4i3TAgBIJgEwAMC7dO/evXO21+gEMADvJ5VKxaBBg2LgwIExe/bsGD9+fKxbt05jwD4uZ/bDAAC8NwEwAMC7tG/fvlO21ygABuDDSKVSMWzYsBg6dGjMnj07HnvsMbdIwF6WhBPASdgPAwDw3gTAAADv0rp166w/8ZCEF4cAZI+3g+BDDz00XnnllZg4caK/S8A+LtH7YQAA3psAGADgXUpKSrL6xENjY2Ns3rzZoAD4yPLz8+Pwww+P4cOHx/PPPx8TJ06MqqoqjYE9aPPmzdHY2BgFBdn7Wi7b98MAALw/ATAAwLu0bNmySzbXV1lZGZlMxqAA+Njy8/Nj1KhRMXLkyHjhhRcEwbAHZTKZqKqqio4dO9oPAwCwWwiAAQDepaioKKuvvKusrDQkAHaJgoKCGDVqVIwYMSJmzpwZkydPji1btmgM7IH9XDYHwNm+HwYA4P3laQEAwP8YPnx4SX5+fkk21ygABmBXa9GiRRx//PFxxx13xNlnnx0lJSWaAs14P5efn18yfPhwfxAAACSUABgA4B2OOOKIDtleo+//ArC7FBUVxejRo+P73/9+nH322VFcXKwpsBsk4cr1JOyLAQDYOQEwAMA79O3bt1221+gEMAC729tB8B133BGnn356tGrVSlOgme3n9ttvv7YmBQCQTAJgAIB36NSpkwAYAHYoKSmJz3zmM3HnnXfG6NGjo0WLFpoCzWQ/l4R9MQAAOycABgB4hw4dOrTN9hqTcGUgALmlpKQkzj777PjOd74To0aNivz8fE2BHN/PJWFfDADAzgmAAQDeoaysrG221ygABmBvad++fVx00UVx5513xgknnBCFhYWaAjm6nysrK3MCGAAgoQTAAADvUFJS0j6b68tkMlFdXW1QAOxV7dq1i/POOy+++93vxqhRoyIvz+sF+CiSsJ8rLS0VAAMAJJT/QgMAeIfi4uK22VxfXV1dNDY2GhQAWeHtE8F33HGHIBg+gsbGxqirq7MvBgBgt/BfZgAA79CqVausPung9C8A2ahDhw5x0UUXxbe//e04/PDDBcGQA/u6oqIiJ4ABABLKf5EBALxDQUGBABgAPqauXbvGpZdeGt/61rdi2LBhkUqlNAUSuq9r0aJFW1MCAEimAi0AAPgfhYWFZdlc39atWw0JgKzXrVu3uPLKK2P16tXxxBNPxOzZsyOTyWgMJGhfl+37YgAA3psAGADgnZujgoLW2VyfE8AAJEmPHj3iyiuvjKVLl8akSZNizpw5mgIJ2ddl+74YAID35gpoAIAdWrdunZefn98ym2sUAAOQRH369ImxY8fGLbfcEgMGDNAQSMC+Lj8/v1WrVq28OwQASCCbOACAHQYNGlQSEVn9scJt27YZFACJtd9++8UNN9wQX/va1+KAAw7QEJq1BOzr8gYPHlxsUgAAySMABgDY4YADDijJ9hpramoMCoDE69u3b9x4441xww03xL777qshNEu1tbVZX2P//v1LTQoAIHl8AxgAYIeePXtm/QuuJLwoBIAPa8CAATFgwICYP39+jBs3LpYvX64pNBtJ2Nf16NGjxKQAAJJHAAwAsEOnTp0EwACwFwwYMCAOPPDAmDt3bkyYMCFWrlypKeS8JOzrunbtKgAGAEggATAAwA5lZWVZ/4Krrq7OoADISalUKgYNGhQDBw6M2bNnx4QJE2Lt2rUaQ85KQgDcpk0bV0ADACSQABgAYIeysjIngAFgL0ulUjFs2LAYOnRozJ49O8aPHx/r1q3TGHKOABgAgN1FAAwAsENJSUlxttfoBDAAzcXbQfCQIUPi5ZdfjokTJ0ZFRYXGkDOSEAAnYX8MAMD/JQAGANihqKioKNtrrKmpMSgAmpW8vLw4/PDDY/jw4fH888/HE088EZWVlRpD4iUhAG7RokWRSQEAJI8AGABgh8LCwhbZXF86nY7t27cbFADNUn5+fowaNSpGjhwZL7zwQkycODGqqqo0hsTavn17ZDKZSKVSWVtjixYtWpgUAEDyCIABAHbI9gC4oaHBkABo9goKCmLUqFExYsSImDlzZkyePDm2bNmiMSROJpOJhoaGyOaMtbCw0AlgAIAk/neTFgAA7NgYFRRk9QuuxsZGQwKAHVq0aBHHH398HHnkkfHMM8/E1KlTY9u2bRpDomR7AJzt+2MAAN5jH6cFAAA7NkZZ/oLL9c8A8H8VFRXF6NGj49hjj41nnnkmpkyZEjU1NRpDImT7DS8FBQWugAYASCABMADA2xujLH/B5QpoAHhvbwfBRx11VEyfPj2efvrpqK2t1RiymgAYAIDdIU8LAAD+QQAMAMlXUlISn/nMZ+LOO++M0aNHZ/X1uiAABgBgdxAAAwDskO1XQAuAAeDDKykpibPPPjv+7d/+LUaPHh2FhYWagv3dR5Sfn9/SlAAAkkcADADw9sYoL88JYADIMa1bt46zzz47vve978UJJ5wgCMb+7iPIz8/3LwwAQAIJgAEAdkilUlm9N2psbDQkAPiY2rVrF+edd15897vfjRNOOCEKCgo0Bfu7D94f55sSAEDyCIABAHbI9gA4nU4bEgB8Qu3bt/9nEDxq1KjIy/NqBPu799kfp0wJACB5/FcOAMAOXnABQPPRoUOHuOiii+J73/ueIJi9JpPJZHuJ/sUAAEggmzgAgP+R1QFwAl4QAkDidOzYMS666KL41re+FYcffnj4fTDs796xOc7yG3IAANg5mzgAgITsjQTAALD7dOvWLS699NL41re+FcOGDRMEs0dk+xXQeXl5/kUAAEigAi0AAPiHbH/BJQAGgN2ve/fuceWVV8ayZcviiSeeiDlz5mgKzXl/5/AIAEACCYABAHbIZDJOAAMAERGx7777xtixY2PJkiUxYcKEmD9/vqZgfwwAQCIIgAEA/ocr7gCA/2W//faLG264Id56660YP358vPnmm5rCLpPtV0Cn3IUOAJBIAmAAgB2y/QVXtr8gBIBc1rdv37jxxhvjrbfeinHjxsWiRYs0hU/MFdAAANjEAQDsXln9Bs4BDADY+/r27Rs333xz3HDDDdG7d28NIdf3d75BAgCQQE4AAwDskO0nMATAAJA9BgwYEAMGDIj58+fHI488EitXrtQUcnF/5woaAIAEcgIYAGCHVCqVzvL6DAkAssyAAQPi1ltvjbFjx0bPnj01hJza32UScEc1AAD/lxPAAAD/QwAMAHysv6MHDRoUBx98cDz//PMxadKk2LRpk8aQ+P1dtv+CJAAAO+cEMADADul0dr/fEgADQHarr6+PioqK2LZtm2aQE/u7dDrtBDAAQAI5AQwA8D+cAAYAPrK6urp4+umnY9q0acJfcm1/5wQwAEACCYABAP6HEw4AwIfW0NAQ06ZNiyeffDK2bt2qIXxkCfgGsAAYACCBBMAAADtkMpmsDoDz8ny9AwCywdvB71NPPRXV1dUaQs7u7wTAAADJJAAGANgh219wCYABYO9qbGyMGTNmxJNPPhmVlZUawieWn5+f9VtkUwIASB4BMADADplMpiGb6yssLDQkANgL0ul0zJo1KyZPnhwbN27UEHaZgoLsfjXX1NTUaEoAAAncZ2oBAMA/NDY2bs/m+gTAALBnpdPpePnll2Py5Mmxdu1aDWGXa9GiRbb/O1BvSgAAySMABgDYoampSQAMAEQmk4nZs2fH448/HuXl5RpCs93fNTY2CoABABJIAAwAsENDQ0NWv+ASAAPA7vV28PvEE0/E6tWrNYTdLtuvgM72G3IAAHiPfaYWAAD8gyugAaD5mjNnTkyaNCmWLl2qGewx2X4FtAAYACCZBMAAADs0NTU5AQwAzcyCBQtiwoQJ8dZbb2kG9nfv0tDQIAAGAEggATAAwA7Z/oJLAAwAu87ChQtj/PjxsXjxYs1gr8n2K6Cz/RckAQB4j32mFgAA/EO2B8AFBQWRl5cX6XTasADgY1q+fHmMGzcu5s+frxnsVXl5eVkfAG/fvt0JYACABBIAAwDs0NDQkPUnHFq1ahXbtm0zLAD4iFauXBmPPPKI4Jes2tclYH8sAAYASCABMADADrW1tXXZXqMAGAA+mnXr1sX48eNj9uzZkclkNISs2tdlu7q6ulqTAgBIHgEwAMAOW7du3ZrtNSbhRSEAZIP169fHY489JvjFvu4TqK6u3mpSAADJIwAGANihqqpKAAwACbdhw4Z4/PHH45VXXommpiYNwb7uE6isrHT1DABAAgmAAQB22LRpU9a/4GrZsqVBAcBOVFVVxcSJE+OFF16IxsZGDSHrJSEA3rRpkxPAAAAJJAAGANhh3bp1WR8AOwEMAP/bli1bYsKECYJfEicJ+7ry8nIBMABAAgmAAQB2WLZsmSugASAhqqurY/LkyTFz5syor6/XEBInCfu6pUuXCoABABJIAAwAsMP8+fOz/gRwcXGxQQHQrNXU1MSUKVPimWeeEfySaEnY173++uu+AQwAkEACYACAHRYsWFCXyWQaUqlUYbbW2Lp1a4MCoFmqq6uLp59+OqZNmxbbtsmkSL5s39el0+mGpUuXbjcpAIDkEQADALxDU1PTtoKCgrbZWp8AGIDmZvv27TF9+vR48sknY+tWt9GSO7J9X9fU1ORfOACAhBIAAwC8Q0NDw9ZsDoBLS0sNCYDm8ndyTJs2LZ566qmorq7WEHJOtu/rGhsb/YsHAJBQAmAAgHeor6+vbNWqVc9src8JYAByXWNjY8yYMSOefPLJqKys1BByVrbv6+rr66tMCQAgmQTAAADv0NDQkNVvmgXAAOSqdDods2bNismTJ8fGjRs1hJyX7fu6bN8XAwDw3gTAAADvUFdXV5XN9ZWWlkYqlYpMJmNYAOSETCYTr732Wjz++OOxatUqDaFZSKVSUVJSktU11tbWVpkUAEAyCYABAN5h27Ztm7K5vvz8/GjVqlXU1NQYFgCJlslkYvbs2fH4449HeXm5htCstGrVKvLz87O6xq1btzoBDACQUAJgAIB3qK6u3pztNZaVlQmAAUist4PfiRMnxpo1azSEZqmsrCzra9y2bVuVSQEAJJMAGADgHaqqqjZle43t2rWLtWvXGhYAiTNnzpyYNGlSLF26VDNo1tq1a5f1NW7atMkJYACALNbQWBgFjQ0REZFKRSavMJre/pkAGADgHSoqKqqyvcYkvDAEgHdasGBBTJgwId566y3NgITs5zZs2CAABgDIYoUFDf9MejMRqab0/+S+AmAAgHdYtWpV1r/oatu2rUEBkAgLFy6M8ePHx+LFizUD3iEJAfDq1aurTAoAIJkEwAAA77BgwYKsD4CdAAYg2y1fvjzGjRsX8+fP1wzYiST8Ql8S9sUAAOycABgA4B2eeOKJjZlMpimVSuVna41OAAOQrVauXBmPPPKI4Bc+QLb/Ql8mk2l64oknNpoUAEAyCYABAN6huro6vX379g1FRUVdsrVGJ4AByDZr166NCRMmxOzZsyOTyWgIJHw/t3379g3V1dVpkwIASCYBMADAu9TV1a0XAAPAB1u/fn089thjgl/Isf1cXV3delMCAEguATAAwLvU1dVVtGnTJmvrKykpiRYtWsT27dsNC4C9oqKiIiZOnBivvPJKNDU1aQh8BEVFRVFcXJz1+2GTAgBILgEwAMC7bN26dV2XLll7ADhSqVR07Ngx1qxZY1gA7FFVVVUxceLEeP755wW/8DF17NgxUqlU1u+HTQoAILkEwAAA71JVVZX1Jx46deokAAZgj9m8eXM8/vjj8cILL0RjY6OGwCfcx9kPAwCwOwmAAQDeZf369Vn/zbMkvDgEIPm2bNkSU6ZMiZkzZ0Z9fb2GwC7QsWNH+2EAAHYrATAAwLusXr066088JOHFIQDJVVNTE1OmTIlnnnlG8Au7WBJ+kW/VqlUCYACABBMAAwC8y9///ves/+aZABiA3aG2tjYmT54czz77bNTV1WkINNN93KuvvioABgBIMAEwAMC7PPzww+t//OMfN6RSqcJsrbFz584GBcAus3379pg+fXpMnTo1tm3bpiGwG2X7CeB0Ot3w8MMPC4ABABJMAAwA8C7V1dXpurq68latWu2TrTV26NAh8vLyIp1OGxgAH1tDQ0NMmzYtnnrqqaiurtYQ2M3y8vKiQ4cOWV1jfX39mtraWptMAIAEEwADAOxEbW3tmmwOgAsKCqJdu3axceNGwwLgI2tsbIwZM2bEk08+GZWVlRoCe0j79u2joCC7X8fV1NSUmxQAQLIJgAEAdmLz5s2r2rdvn9U1duvWTQAMwEeSTqdj1qxZMXnyZH+HwF7av2W7LVu2rDQpAIBkEwADAOzEpk2bVvfp0yera+zWrVvMmzfPsAD4QG8Hv1OmTIkNGzZoCOzF/Vu227BhwxqTAgBINgEwAMBOrFixYvWwYcOyusYkvEAEYO/KZDLx0ksvxZQpU6K83K2usLd17do162tctWrVKpMCAEg2ATAAwE7Mnz9/9ZgxY7K6xiS8QARg78hkMjF79uyYOHFirFnjMB9kiyT8At+8efP8oQEAkHACYACAnRg3btyab37zm5mISGVrjU4AA7Azc+bMiSeeeCKWLVumGZBlEvALfJlx48atNikAgGQTAAMA7MTrr79e29DQsKmwsLBDttZYXFwcZWVlsWXLFgMDIBYsWBDjx4+PJUuWaAZkobKysiguLs7qGhsaGjYuWLCgzrQAAJJNAAwA8B62bt26vF27dh2yucauXbsKgAGauYULF8b48eNj8eLFmgFZLAm3t2zbtm25SQEAJJ8AGADgPVRVVS1t167d0GyusWfPnrFw4ULDAmiGli1bFo899ljMnz9fMyABevbsmfU1VlZWLjUpAIDkEwADALyHdevWLevTp09W15iEF4kA7ForVqyIRx99VPALCZOEfdvatWuXmRQAQPIJgAEA3sPChQuXHX744VldY69evQwKoJlYtWpVjB8/PubOnRuZTEZDIGGSsG9buHDhMpMCAEg+ATAAwHuYNm3a0ksuuSSra+zevXvk5+dHU1OTgQHkqHXr1sX48eNj9uzZgl9IqIKCgkR8A/jpp59eZloAADmw/9QCAICde+ihhzbcd999W/Pz80uzdjNXUBBdunSJNWvWGBhAjqmoqIiJEyfGyy+/HOl0WkMgwbp27RoFBdn9Gq6xsbH6kUce2WBaAADJJwAGAHgf27ZtW15WVnZwNtfYq1cvATBADqmqqoqJEyfG888/74YHyBFJ+P7vtm3blpsUAEBuEAADALyPLVu2LMv2ALhnz57x0ksvGRZAwm3evDkef/zxeOGFF6KxsVFDIIck4fu/W7ZsWWpSAAC5QQAMAPA+1q9fvyzbT2z06NHDoAASbMuWLTFlypSYOXNm1NfXawjkoCTs19avX7/MpAAAcoMAGADgfSxYsGDh0KFDs7rGfffdN1KpVGQyGQMDSJCampqYMmVKPPPMM4JfyGGpVCr23XffrK9z/vz5C00LACA3CIABAN7Ho48++uYFF1yQ1TWWlJRE586dY926dQYGkAC1tbUxefLkePbZZ6Ourk5DIMd17do1WrVqlfV1/vnPf15kWgAAuUEADADwPiZNmlRVX1+/oaioqGM217nvvvsKgAGy3Pbt22P69OkxderU2LZtm4ZAM9GnT5+sr7G+vr7iySefrDItAIDcIAAGAPgAW7duXZTtAXCfPn3ipZdeMiyALNTQ0BDTpk2Lp556KqqrqzUEmpkkXP+8detWp38BAHKIABgA4ANUVFQs7NChw8hsrjEJLxYBmpvGxsaYMWNGPPnkk1FZWakh0EwlYZ9WUVHh+78AADlEAAwA8AGWLl266MADD8zqGnv16hUFBQXR2NhoYAB7WTqdjlmzZsWkSZNi06ZNGgLNWGFhYfTs2TMR+13TAgDIHQJgAIAPMHPmzEWnnnpqdm/qCgqiZ8+esWzZMgMD2EveDn4nT54cGzdu1BAg9tlnn8jPz0/CfnexaQEA5I48LQAAeH+//OUvV6bT6bpsr7NPnz6GBbAXZDKZePHFF+O73/1u3H///cJf4J+ScP1zOp2u++Uvf7nStAAAcocTwAAAH6C6ujpdXV29uE2bNodkc539+vWL6dOnGxjAHpLJZGL27NkxceLEWLNmjYYAO92fJWCvu7i6ujptWgAAuUMADADwIWzYsGFetgfA/fv3NyiAPeTVV1+NSZMmxapVqzQD2KlUKpWI/dmGDRvmmhYAQG4RAAMAfAiLFy9+o2/fvlldY1lZWXTu3DnWr19vYAC7yYIFC2L8+PGxZMkSzQDeV5cuXaK0tDQJ+9z5pgUAkFsEwAAAH8JTTz31+ujRo7O+zv33318ADLAbLFy4MMaPHx+LFy/WDOBD78uSYMqUKa+bFgBAbsnTAgCAD/aLX/xiTWNjY1W215mUF40ASbFs2bK4++674z/+4z+Ev8BHkoTv/zY0NFTee++9q00LACC3OAEMAPAhNDQ0ZDZv3jy/Q4cOI7O5TgEwwK6xYsWKePTRR2P+fDejArm7L9uyZYs/5AAAcpAAGADgQ1q3bl3WB8AdO3aMNm3axObNmw0M4GNYtWpVjB8/PubOnRuZTEZDgI+lbdu20aFDh0Tsb00LACD3CIABAD6kefPmzTvooIOyvs4DDzwwXnrpJQMD+AjWrVsX48ePj9mzZwt+gV2yH0uCuXPnzjMtAIDcIwAGAPiQ/vznP88/77zzsr7OAw44QAAM8CFVVFTEuHHjBL/ALt+PJcHDDz/sBDAAQA4SAAMAfEgTJ06srK2tXdGqVat9srnOgw8+2LAAPkBVVVVMnDgxnn/++WhqatIQYJdKwq0xNTU1yydNmlRlWgAAuUcADADwEWzYsOHvvXr1yuoAuG3bttG1a9dYu3atgQG8y+bNm+Pxxx+PF154IRobGzUE2OW6desWbdu2TcS+1rQAAHKTABgA4CNYuHDha7169Toj2+scMGCAABjgHbZs2RJTpkyJ5557LrZv364hwG6TlO//Lly48O+mBQCQmwTAAAAfwcSJE/9+wgknZH2dBx54YEyfPt3AgGavpqYmpkyZEs8880zU19drCLDbDRgwIBF1jh8//u+mBQCQmwTAAAAfwb333rv6Bz/4wfqioqLO2VznAQccEHl5eZFOpw0NaJZqa2tj8uTJ8eyzz0ZdXZ2GAHtEXl5e9O/fP+vrrK+vX3ffffeVmxgAQG4SAAMAfESVlZVzu3btmtXHgFu1ahX77LNPLFu2zMCAZqWuri6efvrpmDZtWmzbtk1DgD1qn332iVatWmV9nZs2bZpjWgAAuUsADADwES1dunR2tgfAERGDBg0SAAPNRkNDQ0ybNi2eeuqpqK6u1hBgr+2/kuCtt976m2kBAOQuATAAwEc0ffr0v48cOTLr6xw4cGBMmDDBwICc1tDQEM8991w8+eSTUVlZqSHAXt9/JcG0adP+bloAALlLAAwA8BH9x3/8x9JbbrmlOj8/v3U219mrV68oKyuLLVu2GBqQc9LpdMyaNSsmTZoUmzZt0hBgrysrK4tevXplfZ2NjY1b7rnnnmUmBgCQuwTAAAAfUW1tbXrDhg1/7dKly3HZXGcqlYqBAwfGrFmzDA3IGW8Hv5MnT46NGzdqCJA1Bg4cGKlUKuvr3Lhx4yu1tbVpEwMAyF0CYACAj+Gtt956JdsD4IgQAAM5I51Ox8svvxxTpkyJ8vJyDQGyct+VBIsWLXrFtAAAcpsAGADgYxg/fvwrRxxxRNbXedBBB0VBQUE0NjYaGpBImUwmZs+eHRMnTow1a9ZoCJCVCgoK4qCDDkpErY888ogAGAAgx+VpAQDAR/fjH/94ZX19/fpsr7OoqCj69etnYEAivfrqq3HHHXfEz3/+c+EvkNX69esXRUVFWV9nXV1d+b333rvaxAAAcpsTwAAAH9OGDRte6dGjx6ezvc5BgwbFggULDAxIjCVLlsSECRNi/vz5mgEkwuDBgxNR5/r1653+BQBoBgTAAAAf07x5815OQgA8bNiwePjhhyOTyRgakNXefPPNmDBhQixevFgzgMRIpVIxdOjQRNQ6d+7cl0wMACD3CYABAD6m++677+XRo0dnIiKVzXW2bds2evfuHcuWLTM0ICstW7YsHnvsMSd+gUTq06dPtG3bNgmlpu+9996/mhgAQO4TAAMAfEwTJ06s3Lp165LS0tK+2V7rkCFDBMBA1lmxYkU8+uijgl8g0YYMGZKIOqurqxc+/fTTm00MACD3CYABAD6B8vLyl/fff/+sD4AHDx4c48aNMzAgK6xcuTImTJgQc+fOdT09kHhJ+f7vmjVrfP8XAKCZEAADAHwCM2fOfG7//ff/fLbX2a1bt+jWrVuUl5cbGrDXrFu3LsaPHx+zZ88W/AI5oWfPntGlS5dE1DpjxoznTAwAoHkQAAMAfAK33Xbba5dcckl1fn5+62yvdciQIQJgYK9Yv359PPbYY4JfIOck5frnxsbGzbfddts8EwMAaB4EwAAAn0BlZWXThg0b/tqlS5fjsr3WQw89NCZNmmRowJ78MzKeeOKJeP7556OpqUlDgJxz6KGHJqLOioqKV6qrq9MmBgDQPAiAAQA+oXnz5s1MQgDcu3dv10ADe0RVVVVMnDgxXnjhhWhsbNQQICd17949evbsmZT9quufAQCakTwtAAD4ZP77v/97VkQk4kTFpz71KQMDdpstW7bEQw89FLfffns899xzwl8gpw0fPjwRdWYymfTdd9/9gokBADQfTgADAHxCkyZNqtqyZcuCsrKyg7K91uHDh8fjjz9uaMAuVVNTE1OmTIlnnnkm6uvrNQTIealUKg477LBE1Lply5bXp0+fvsXUAACaDwEwAMAusHz58lkDBw7M+gC4S5cu0atXr1i5cqWhAZ9YbW1tTJ48OZ599tmoq6vTEKDZ6N27d3Ts2DEx+1QTAwBoXgTAAAC7wLPPPvvCwIEDr0hCrcOGDRMAA59IXV1dPP300zFt2rTYtm2bhgDNzrBhwxJT61/+8pcXTQwAoHnxDWAAgF3g1ltvnV9fX782CbUefvjhkUqlDA34yBoaGmLq1Klx6623xuOPPy78BZqlJF3/XFdXt/rWW29dYGoAAM2LE8AAALtAQ0NDZs2aNc/16dPns9lea7t27aJPnz6xZMkSgwM+7J9xMW3atHjqqaeiurpaQ4Bmbb/99ou2bdsmotbVq1fPNDEAgOZHAAwAsIs8++yz05IQAEdEHHHEEQJg4AOl0+mYNWtWTJo0KTZt2qQhABFx5JFHJqbW6dOnTzMxAIDmxxXQAAC7yC233PJaQ0NDZRJqHT58eLRo0cLQgJ1Kp9Px3HPPxW233Rb333+/8Bdgh6KiovjUpz6ViFobGho23HLLLXNNDQCg+XECGABgF6murk6Xl5c/t88++5yR7bW2bNkyDj300Hj55ZcNDvindDodL7/8ckyZMiXKy8s1BOBdhgwZEkVFRYmodc2aNc/V1tamTQ0AoPkRAAMA7EIvvvjiM0kIgCMiRo4cKQAGIiIik8nE7NmzY+LEibFmzRoNAXif/VNSzJo161kTAwBongTAAAC70O233/7KOeecszU/P78022sdMGBAtG/f3tWu0My9+uqrMWnSpFi1apVmALyPjh07xgEHHJCIWhsbG6u/8Y1v/NXUAACaJwEwAMAutHLlyob169fP6tat2+hsrzWVSsXhhx8ekyZNMjhohubMmROTJ0+OJUuWaAbAh3D44YdHKpVKRK3r16+fVVFR0WhqAADNU54WAADsWq+++mpirts77LDDDAyamTfffDP+/d//PX7yk58IfwE+pFQqFSNGjEhMva+88sozpgYA0Hw5AQwAsIvddNNNz5166qnV+fn5rbO91m7dukX//v1j4cKFBgc5btmyZfHYY4/F/PnzNQPgIzrggAOic+fOiai1sbFxy4033jjL1AAAmi8BMADALrZy5cqG8vLyGT179vx0Euo9+uijBcCQw5YvXx7jxo0T/AJ8wv1SUpSXlz9TXl7eYGoAAM2XABgAYDeYMWPGUxdccEEiAuAhQ4ZE69ato7q62uAgh6xcuTImTJgQc+fOjUwmoyEAH1ObNm3i0EMPTUy9zz777FOmBgDQvPkGMADAbvDVr371lYaGhk1JqLWgoCCOOOIIQ4McsW7duvj5z38ed955Z8yZM0f4C/AJjRw5MvLz8xNRa0NDw8abbrrpVVMDAGjenAAGANgNKisrm1atWjW9T58+5ySh3qOPPjqefPJJQREk2Pr16+Oxxx6L2bNn+3cZYBdJpVIxatSoxNS7cuXKadXV1WmTAwBo3pwABgDYTaZNm5aY6/c6duwYAwYMMDRIoA0bNsSvf/3r+Nd//dd49dVXhb8Au9CAAQOiY8eOian36aefftLUAAAQAAMA7CZf+9rX5tTX11ckpd6jjjrK0CBBqqqq4v77749vf/vb8eKLL0ZTU5OmAOxiRx55ZGJqra+vX/eNb3zjdVMDAMAV0AAAu0ltbW16xYoVT++///6fT0K9hx56aLRt2zaqqqoMD7LYli1bYsqUKfHcc8/F9u3bNQRgN2nbtm0MGTIkMfUuX778qdraWtc/AwDgBDAAwO70xz/+cUJSas3Pz4/jjjvO0CBL1dTUxKOPPhq33XZb/OUvfxH+Auxmxx57bOTn5yel3Myvf/3rCaYGAECEABgAYLe66667llZXV89PSr1HH310tGjRwuAgi7wd/H7jG9+IqVOnRn19vaYA7GYtWrSIo48+OjH1btmy5Y177rlnhckBABDhCmgAgN3u9ddfn3T44YcPSEKtxcXFcdhhh8XMmTMNDvayurq6ePrpp2PatGmxbds2DQHYgw477LAoKSlJTL3z5s17wtQAAHibE8AAALvZ9773vanpdLohKfWecMIJkUqlDA72koaGhpg6dWrceuut8fjjjwt/AfawVCoVJ5xwQmLqTafT27/73e8+ZXIAALzNCWAAgN1s+vTpWyoqKmZ26dIlER/Y7d69e/Tv3z/efPNNw4M9qKGhIaZNmxZPPfVUVFdXawjAXnLAAQdE9+7dE1NvRUXFczNmzPAXBwAA/+QEMADAHjBr1qxEXcuXpFMvkHTpdDqee+65uP322+PRRx8V/gLsZccff3yi6p0xY8YkUwMA4J2cAAYA2AO++tWvvnT66adXFRYWtk1CvQMHDoyOHTvGhg0bDA92k3Q6HbNmzYrJkyfHxo0bNQQgC3Ts2DEGDhyYmHobGhoqb7755pdMDgCAd3ICGABgDygvL29YsWLF1MRsEvPy4sQTTzQ42A3S6XS8+OKL8Z3vfCfuv/9+4S9AFjnppJMiLy85r8tWrFgxpaKiotHkAAB4JwEwAMAe8qtf/erRiMgkpd6jjjoqysrKDA52kUwmE6+++mp873vfi1//+texdu1aTQHIImVlZXHUUUcl6q+W//7v//6zyQEA8G4CYACAPeQ///M/l1dWVv4tKfUWFhbGMcccY3CwC7wd/P785z+PNWvWaAhAFjruuOOioCA5X0urqqqa/dOf/nS1yQEA8G4CYACAPeill14al6R6jzvuuCgqKjI4+JjmzJkTd911V/z85z+P1au9owfIVkVFRYn7xbcXXnhhnMkBALAzBVoAALDnjB079pkFCxZUFhYWtktCvSUlJXHEEUfE9OnTDQ8+gjfffDPGjx8fb731lmYAJMCRRx4ZJSUliam3oaFh0zXXXPOsyQEAsDMCYACAPai8vLxh6dKlE/v3739xUmo+8cQT49lnn410Om2A8AEWLVoUjz32WCxevFgzABIiLy8vTjzxxETVvGTJkifKy8sbTA8AgJ3ucbUAAGDP+u1vfzsxIjJJqbdjx44xdOhQg4P3sXz58rj77rvjRz/6kfAXIGGGDRsWHTp0SFLJmd/85jePmxwAAO9FAAwAsIf953/+5/JNmza9kqSaTz/99EilUoYH77Jy5cr4yU9+Et///vdj/vz5GgKQMHl5eXHGGWckquZNmza9fM8996wwPQAA3osroAEA9oKXXnpp/KmnnnpYUurt2rVrDBkyJGbPnm14EBHr1q2L8ePHx+zZsyOTyWgIQEINHTo0OnfunKiaX3jhhQkmBwDA+xEAAwDsBZdffvkzS5YsWVdUVNQlKTWfccYZ8be//U3YRbO2fv36eOyxxwS/ADkglUrF6aefnqia6+rq1lx22WXTTQ8AgPcjAAYA2AsqKyub5s+f/8ihhx56dVJq7tatm1PANFsbNmyIxx9/PF555ZVoamrSEIAc8KlPfSq6du2aqJrfeOONcdXV1WnTAwDg/fgGMADAXvL1r399XDqdrktSzb4FTHNTVVUV999/f3z729+OF198UfgLkCNSqVR8+tOfTlTN6XS69pvf/OZjpgcAwAdxAhgAYC+ZMWNG9Zo1a/7Ss2fPxLx97N69ewwcODDmzJljgOS0LVu2xIQJE+KFF16IxsZGDQHIMYceemh069YtUTWvXr36qRkzZlSbHgAAH8QJYACAvejXv/71HyMiUR8SPeuss5wCJmdt27YtHn300bjtttviueeeE/4C5KC8vLwYM2ZM0srO/OpXv/qT6QEA8KH2vFoAALD3fP/733+rqqoqUR/V7dGjR3zqU58yPHJKfX19TJ06Nb71rW/F1KlTo76+XlMActSIESOiS5cuiap506ZNf73rrruWmh4AAB+GABgAYC975plnHkpazWeccUbk5dlKkjvmzZsXjz76aGzdulUzAHJYQUFBnH766Ymre9q0aQ+aHgAAH5a3dgAAe9nYsWNn1tfXr01SzZ07d47DDjvM8ACARBk5cmR06NAhUTXX1dWtHjt27POmBwDAhyUABgDYyyorK5tee+21Pyat7jPPPDMKCgoMEABIhBYtWiTy9O/s2bP/UF1dnTZBAAA+LAEwAEAWuOqqqyY0NjZWJanm9u3bx9FHH214AEAiHHfccdGmTZtE1dzQ0LDxiiuumGh6AAB8FAJgAIAssGDBgrqFCxc+lrS6R48eHYWFhQYIAGS1li1bxsknn5y4uhcuXDhu6dKl200QAICPQgAMAJAlvv71r/8pnU7XJqnmtm3bximnnGJ4AEBWO+2006K0tDRRNTc1NdV+7Wtfe8j0AAD4qATAAABZ4umnn968fPnyxF3xN3r06GjXrp0BAgBZqUOHDnH88ccnru5ly5ZNmD59+hYTBADgoxIAAwBkkbvvvvtPmUymKUk1FxYWxumnn254AEBWOvPMMxP3yYpMJtN41113/dH0AAD4OATAAABZ5Be/+MWatWvXTkta3UcccUT06tXLAAGArNK7d+847LDDEld3eXn5X+6///51JggAwMchAAYAyDIPP/zwn5JWcyqVijPPPNPwAICsMmbMmEilUomr+8EHH/yT6QEA8HEJgAEAsszXv/71NzZs2DAraXUPHDgwDj74YAMEALLCoEGDYsCAAYmru6KiYuatt966wAQBAPi4BMAAAFlo3Lhxv01i3WPGjIm8PFtMAGDvysvLizFjxiSy9j//+c+/NUEAAD7RflgLAACyz/XXXz+nqqrqr0mru1evXnHUUUcZIACwVx1zzDHRvXv3xNW9adOmV2666aa5JggAwCchAAYAyFJ/+tOf7k1i3WPGjInS0lIDBAD2ijZt2sRZZ52VyNofeOCBe00QAIBPSgAMAJClbrrpprlJPAVcXFwcZ555pgECAHvFWWedFS1btkxc3Zs2bXrl5ptvnmeCAAB8UgJgAIAsNm7cuF8lse5Ro0ZF7969DRAA2KP69OkTI0eOTGTtjz322K9MEACAXUEADACQxcaOHTu7qqrqb0mrO5VKxfnnnx+pVMoQAYA9tv/4/Oc/n8j9R2Vl5d+uueaav5kiAAC7ggAYACDLTZ069bdJrLtv374xZMgQAwQA9ojDDjsssTeQTJ48+TcmCADAriIABgDIcpdeeumLVVVVryax9s9//vNRXFxsiADAblVaWhrnn39+Imuvqqr66+WXX/6SKQIAsKsIgAEAEuChhx76WRLrLisri9NPP90AAYDd6qyzzoqSkpIklp753e9+91MTBABgVxIAAwAkwA033DB3w4YNs5JY+3HHHRd9+vQxRABgt+jbt28cddRRiay9oqJi1te//vU3TBEAgF1JAAwAkBA///nPfxoR6aTVnUql4vOf/3zk5dl6AgC7Vn5+flx00UWRSqWSWH76F7/4xX+bIgAAu5q3cAAACXHHHXe8tW7duulJrL13795xzDHHGCIAsEudcMIJ0b1790TWXl5e/pc77rjjLVMEAGBXEwADACTI3XfffW8mk2lKYu1nnXVWtG3b1hABgF2iQ4cOcfrppyey9kwm03T33Xf/3BQBANgdBMAAAAlyzz33rCgvL386ibW3bNkyzj33XEMEAHaJc889N1q0aJHI2tesWTP1xz/+8UpTBABgdxAAAwAkzA9/+MOfZzKZhiTWPnz48Bg0aJAhAgCfyKGHHhpDhw5NZO3pdLrhBz/4wS9MEQCA3UUADACQMPfee+/qRYsWPZDU+i+++OIoKSkxSADgY2ndunVcfPHFia1/4cKFf7jvvvvKTRIAgN1FAAwAkECXXXbZrxsaGjYlsfaysjJXQQMAH9u5554bpaWliay9oaFh4+WXX/47UwQAYHcSAAMAJNDs2bNrXn311V8ntf4jjjgiDj74YIMEAD6SwYMHx+GHH57Y+l955ZX7Zs+eXWOSAADsTgJgAICEOueccx6tqalZmtT6L7roomjZsqVBAgAfSsuWLeNzn/tcYuuvqalZMmbMmMdMEgCA3U0ADACQUJWVlU3Tpk37RVLrb9++fZx++ukGCQB8KGeccUa0b98+sfU/+eST91ZXV6dNEgCA3U0ADACQYOedd960qqqqV5Ja/wknnOAqaADgAx188MFx/PHHJ7b+TZs2vXzBBRc8a5IAAOwJAmAAgIT74x//eG9EZJJYeyqVigsuuMBV0ADAe2rZsmVccMEFkUqlkrqEzP333/8zkwQAYE8RAAMAJNzNN988b9WqVU8ktf6OHTsm+nt+AMDudcEFF0THjh0TW/+KFSse//rXv/6GSQIAsKcIgAEAcsCNN974k6ampq1JrX/kyJExdOhQgwQA/pdPfepTMWLEiMTW39TUVH3zzTf/t0kCALAnCYABAHLAxIkTK//+97//KslruPDCC6OsrMwwAYCIiGjTpk18/vOfT/QaZs+efd/EiRMrTRMAgD1JAAwAkCPOPvvsh2pqapYntf7S0tK46KKLDBIAiFQqFV/84hejtLQ0sWuoqal566yzznrYNAEA2NMEwAAAOaKioqJx0qRJP07yGgYPHhwjR440TABo5o444og46KCDEr2GJ5544qeVlZVNpgkAwJ4mAAYAyCGXXHLJzIqKihlJXsMFF1wQ3bp1M0wAaKZ69uyZ+KufKyoqZnzhC1+YZZoAAOwNAmAAgBzzb//2b/ek0+ntSa2/RYsWceWVV0ZhYaFhAkAzU1hYGF/60pcSvQ9Ip9Pb/+3f/u0e0wQAYG8RAAMA5Jh777139aJFix5M8hq6d+8eZ555pmECQDNzxhlnRPfu3RO9hsWLFz947733rjZNAAD2FgEwAEAO+uxnP/vL2traRL94PPHEE2Pw4MGGCQDNxKBBg+Kkk05K9Bpqa2tXn3vuub80TQAA9iYBMABADlq8eHH9uHHj/j3Ja0ilUnHJJZdE27ZtDRQAclybNm3ikksuiVQqleh1jBs37t8XL15cb6IAAOxNAmAAgBx1+eWXv1RRUTEjyWsoLS2NL3zhC4l/GQwAvLe3f+mrdevWiV5HRUXFM5dffvlLJgoAwN4mAAYAyGE33HDDXU1NTVuTvIaDDjrI94ABIId95jOfiUMOOSTRa2hqaqq+4YYbfmiaAABkAwEwAEAOGzdu3MbZs2cn/jt0p5xyiu8BA0AOOuSQQ+LTn/504tfx17/+9efjxo3baKIAAGQDATAAQI77zGc+81B1dfXCJK8hlUrFF7/4xejQoYOBAkCO6NixY3zpS19K/KceNm/ePO+00057xEQBAMgWAmAAgBxXXV2dfuCBB34UEekkr6O4uDguvfTSyMuzhQWApMvPz4/LLrssiouLk76U9P333/+ftbW1aVMFACBbeHsGANAMXH/99XMWLVr0YNLXsf/++8e5555roACQcOedd1707ds38etYuHDhH7/61a++bqIAAGQTATAAQDNxySWX/Lyurq486es4/vjjfQ8YABJs2LBhccwxxyR+HXV1dWsuvPDC+0wUAIBsIwAGAGgmXnvttdoHHnjguxGRSfI6UqlUfOlLX4oePXoYKgAkTO/evePSSy9N/Hd/IyLzwAMPfO/111+vNVUAALKNABgAoBm5+uqr/7Z06dJHk76OoqKiGDt2bJSWlhoqACRE69at46qrrorCwsLEr2X58uXjrr766r+ZKgAA2UgADADQzJx33nn/r66ubnXS19GhQ4e4/PLLIy/PlhYAsl1eXl5cfvnl0b59+8Svpb6+ft0ll1zyE1MFACBr999aAADQvLz++uu1Dz744Pcj4VdBR0QMGDAgzjrrLEMFgCw3ZsyYOPDAA3NiLY899tgPXnnllW2mCgBAthIAAwA0Q1/5ylf+umbNmqm5sJaTTz45Dj30UEMFgCw1ZMiQOOmkk3JiLWvXrv3LpZde+oKpAgCQzQTAAADN1GWXXfYf9fX1FUlfRyqViksvvTS6d+9uqACQZXr06BFf/OIXI5VKJX4tDQ0Nm6655pofmioAANlOAAwA0EzNmDGj+oEHHvhO5MBV0C1btozrr78+2rZta7AAkCXatWsX1113XbRs2TIXlpN56KGH/nXSpElVJgsAQLYTAAMANGNf+cpX/rpkyZI/58Ja2rZtG1dffXW0aNHCYAFgL2vRokVcffXVOfPLWUuXLn30iiuueNlkAQBIAgEwAEAzd+655/6ktrZ2eS6spXfv3jlzzSQAJNXbn2fYZ599cmI9tbW1y88555wfmywAAEkhAAYAaOYWLFhQ97Of/ezbmUymMRfWM2zYsDjllFMMFgD2kk9/+tMxdOjQnFhLJpNp/NnPfvbtBQsW1JksAABJIQAGACBuvfXWBfPnz78/V9Zz5plnxuDBgw0WAPaw4cOHx2c+85mcWc/8+fN/d+utty4wWQAAkkQADABARESMGTPmvpqamrdyYS2pVCouu+yy6Nmzp8ECwB7Su3fvuPjii3PmUwxbt25ddPrpp//aZAEASBoBMAAAERGxcuXKhh/+8Ie3pdPpnLjisGXLlvEv//Iv0aVLF8MFgN2sS5cucf3110dRUVFOrKepqanmu9/97jfKy8sbTBcAgKQRAAMA8E933XXX0ueff/6eXFlPaWlpXHvttVFWVma4ALCblJWVxXXXXRclJSU5s6aZM2fe/f/+3/9bZboAACSRABgAgP/l5JNPHldeXv50rqynU6dOMXbs2Jw5kQQA2aSoqCiuueaa6NixY86sqby8/MlTTz11gukCAJBUAmAAAP6PSy655K66urq1ubKefffdN6644orIy7P9BYBdJS8vL6688sro3bt3zqyprq6u/JJLLvmh6QIAkOi9uhYAAPBus2bNqn7ooYfujIh0rqxp4MCBcd555xkuAOwi559/fhxyyCG5tKT0gw8+eOesWbOqTRcAgCTLb3tQ9NzpjndbRG15oQ4BADRTEydOXDNmzJi8Tp06Dc2VNfXp0yfy8/PjzTffNGAA+ATOOuusOOmkk3JqTa+//vp9Z5555kTTBQAgCYq7N0Ze6c5/5gQwAADv6dRTT/31li1bXs+lNZ122mlx9NFHGy4AfEzHHntsnHrqqTm1pi1btrxx2mmn/cZ0AQDIBQJgAADeU0VFReONN974jcbGxqpcWtcFF1wQRx55pAEDwEd05JFHxuc+97mcWlNjY2PVzTff/I2KiopGEwYAIBcIgAEAeF9//OMf1z/yyCPfiRz6HnAqlYqLLroohgwZYsAA8CENHTo0LrrookilUrm0rPQjjzzynfvvv3+dCQMAkCsEwAAAfKBLL730hQULFvwupzbCeXnxpS99Kfbff38DBoAPcNBBB8WXvvSlyMvLrVdJCxYs+N2ll176ggkDAJBLBMAAAHwoo0eP/mVVVdXcXFpTYWFhfOUrX4kePXoYMAC8h169esUVV1wRBQUFObWuqqqqOaNHj/6lCQMAkGsEwAAAfCgVFRWNV1111S0NDQ0bcmldJSUlcfPNN8c+++xjyADwLr17946bbropiouLc2pdDQ0NG6666qqv++4vAAC5SAAMAMCHNmHChE3333//tzKZTDqX1lVcXBzXXXdddO/e3ZABYIfu3bvHtddeG61atcqpdWUymfT999//rQkTJmwyZQAAcpEAGACAj2Ts2LGz58+f/9tcW1fr1q3juuuuiw4dOhgyAM1ehw4d4rrrrovWrVvn3Nrmz5//m7Fjx842ZQAAcpUAGACAj+y44477xaZNm17MtXW1a9cubrzxxmjXrp0hA9BstW3bNmf/Pty4ceOLxx13nO/+AgCQ0wTAAAB8ZNXV1emLL774W3V1datzbW0dO3aMG2+8Mdq0aWPQADQ7ZWVlceONN0bHjh1zbm21tbWrL7zwwturq6vTJg0AQC7Lb3tQ9NzZD9LbImrLC3UIAICdWrZsWf327dtfOvbYY0/Ny8trkUtrKykpiaFDh8Zrr70WNTU1hg1As9ChQ4f42te+Fp06dcq5tTU1NW39zne+M/bBBx9cb9IAAOSC4u6NkVe6858JgAEA+NhefPHFzYcccsiyAQMGnBgRqZzaRBcXx5AhQ4TAADQLHTt2jJtuuik6dOiQi8tLjx8//ravfvWrc0waAIBc8X4BsCugAQD4RC688MIZb7zxxm9ycW3t27ePm266KSdPQgHA2zp16pTL4W+88cYbv77wwgufM2kAAJoLATAAAJ/YqFGjfrFhw4aZubi2t0Pgzp07GzQAOadz585x0003Rfv27XNyfRs2bJg5atSo+0waAIDmRAAMAMAnVltbm77sssu+V1dXtzoX19euXbu44YYbomPHjoYNQM7o0KFDXH/99dGuXbtc3Z+s/sIXvvDd2tratGkDANCc+AYwAAC7xJIlS+oj4pVRo0admpeX1yLX1ldcXBxDhw6NuXPnxrZt2wwcgETr0qVL3HjjjTl77XNTU1P1nXfeec0f/vCHdaYNAEAuer9vAAuAAQDYZWbNmlXVo0ePuYceeujoVCqVn2vra9WqVYwYMSIWLVoUlZWVBg5AIu23335x0003RVlZWU6uL51ON/z617++4fbbb3/TtAEAyFUCYAAA9phJkyatPeqoozbsu+++R+fi+goLC2P48OGxbNmy2LBhg4EDkCgDBgyIa6+9Nlq1apWza5w2bdq/XXLJJc+ZNgAAuez9AmDfAAYAYJc77bTTHn/rrbcezNX1FRUVxTXXXBNDhgwxbAASY8iQIXHNNddEUVFRzq5xwYIFvzv99NOfMG0AAJozATAAALvFEUcccc+GDRtm5ur6CgoK4sorr4wjjjjCsAFIwt/LceWVV0ZBQUHOrrG8vPypESNG/LdpAwDQ3AmAAQDYLaqrq9MXXXTRd2pra1fk7GY6Ly8uvvjiOPLIIw0cgKw1atSouPjiiyMvL3dfA23dunXxZz/72e83NDRkTBwAgObON4ABANhtli9fvr2mpuaFY4899uT8/PyWubjGVCoVgwYNikwmE4sWLTJ0ALLK6aefHueee26kUqmcXWN9fX3FDTfccM3UqVOrTBwAgObi/b4BLAAGAGC3evnll7cUFBS8cMQRR4zOy8trkYtrTKVSccABB0SnTp1i7ty5kck4fATA3lVYWBhXXHFFHHPMMTm9zsbGxuo777zzKz/72c9WmzoAAM2JABgAgL1qxowZlb169Xp98ODBJ6dSqfxcXWfPnj2jb9++8fe//z0aGxsNHoC9olWrVnH11VfHwIEDc3qd6XS64be//e2Nt9122wJTBwCguREAAwCw1z3xxBPlw4cPX9OvX79jIyJn76Hs2LFjDBw4MObMmRN1dXUGD8Ae1a5du7jxxhujT58+ub7U9JQpU779xS9+8XlTBwCgOXq/ADhPewAA2FPGjBkz9Y033vh1rq+zZ8+eceONN0bHjh0NHYA9pkuXLnHTTTdF9+7dc36tc+fO/eU555zzF1MHAID/SwAMAMAe9alPfernS5cufTjX19mlS5e49dZb48ADDzR0AHa7gQMHxje/+c3o1KlTzq/1rbfeemjEiBG/MnUAANg5ATAAAHvcsccee8/GjRtfyPV1FhcXx7XXXhsjRowwdAB2m8MPPzyuuuqqaNmyZc6vdePGjc8fffTR95g6AAC8NwEwAAB7XEVFReNxxx339crKyr/l+loLCgrisssui/PPPz9SqZThA7DLpFKpOP/88+PSSy+NgoKCnF/vpk2bXj7ssMNuqaysbDJ9AAB4bwJgAAD2isWLF9efddZZN1dXV7/ZHNZ7/PHHx5e//OUoKioyfAA+sRYtWsSXv/zlOP7445vFequrq98cM2bMN8rLyxtMHwAA3l9+24Oi585+kN4WUVteqEMAAOw2a9asaVi1atWs0aNHH1dQUNA619fbrVu3OOCAA2LevHlRX1/vAQDgYykrK4trrrkmDjrooGax3rq6uvKxY8de89RTT202fQAA+Ifi7o2RV7rznwmAAQDYq+bNm1ezevXqZ04++eTjCwoKSnN9ve3atYuRI0fG8uXLY+PGjR4AAD6S/v37x0033RRdu3ZtFuutr69fd9111335T3/6U4XpAwDA/xAAAwCQ1ebMmbMtlUq9fOSRR56Ul5eX83ckt2jRIkaMGBG1tbWxdOlSDwAAH8rxxx8fX/rSl5rN5wQaGxu33HXXXdf99Kc/XWn6AADwvwmAAQDIejNnzqzs2bPn64MHDz4plUrl5/p6U6lUHHLIIdGqVatYsGBBZDIZDwEAO5WXlxef/exn4/TTT49UKtUs1pxOp7f//ve//+o3vvGN1z0BAADwfwmAAQBIhEmTJpXvs88+8wYOHHhCKpUqaA5r3m+//WLAgAExd+5c3wUG4P8oKyuL6667LoYNG9Zs1pxOp7f/8Y9/vOmqq676qycAAAB2TgAMAEBiTJw4cc3BBx+85MADDzwulUrlNYc1t2/fPoYOHRqLFi2KLVu2eAgAiIiIffbZJ66//vro2bNns1lzJpNpnDBhwm1f/OIXn/cEAADAexMAAwCQKI8++ujy/fff/42DDjrohOZwHXRERHFxcRx11FHR2NgYb731locAoJkbPXp0XHHFFVFSUtJs1pxOpxsefvjhr15yySWzPAEAAPD+BMAAACTO+PHjVw0cOHDpAQcccGxzOQmcSqViwIAB0aVLl3jjjTeiqanJgwDQzBQVFcWll14aJ554YrP53m/EP07+Pv7447dffPHFMz0FAADwwQTAAAAk0iOPPLLs0EMPXbb//vs3mxA4IqJHjx4xZMiQePPNN2Pr1q0eBIBmonv37vEv//IvccABBzSrdWcymaYnnnji9s997nPPeAoAAODDEQADAJBYDz/88NJjjjlmY+/evY+KiGZzFKq0tDSGDx8eq1evjvXr13sQAHLcwIED45prrol27do1t6VnZsyY8YOzzjprqqcAAAA+PAEwAACJdv/99795zDHHVO6zzz5HRDMKgVu0aBGHHXZYtGzZMhYuXBjpdNrDAJBjCgoK4pxzzonzzz8/WrRo0dyWn37uuefuOuWUUyZ4EgAA4KMRAAMAkHi///3v5w8bNmxF3759j2lO10GnUqno27dvDB06NBYvXhxbtmzxMADkiJ49e8YNN9wQgwcPblbf+434x7XPU6ZM+fbpp58+2ZMAAAAfnQAYAICc8OCDDy4ZNmzYin79+jWrEDgionXr1nHEEUdEfX19LF261MMAkGCpVCpOOOGEuOKKK6JNmzbNbv07wt9vnXPOOX/xNAAAwMcjAAYAIGc89NBDS4YNG7a8X79+xza3EDg/Pz8OPvjg6NWrV8yfPz8aGho8EAAJU1JSEpdffnmccMIJkZ+f3+zWn8lkGp944olvffazn53maQAAgI9PAAwAQE556KGHlo4cOXJdnz59RqWa252ZEdG1a9cYNmxYLFu2LCorKz0QAAnRt2/fuO6662K//fZrluvPZDLpp59++rvnnHPO054GAAD4ZATAAADknD/96U+LDj300KX7779/s7sOOiKiuLg4jjzyyCgpKYk333wz0um0hwIgSxUUFMRnP/vZuPDCC6OkpKRZ9iCdTjc88sgjt5x//vnTPREAAPDJCYABAMhJDz/88NId3wQelUqlmt09mqlUKvr06RMHH3xwLFy4MLZt2+ahAMgynTt3jrFjx8bQoUOjGV5aERH/CH+feOKJ2y+88MLnPBEAALBrCIABAMhZDz300JIePXq8NmjQoGPz8vJaNMcetG3bNkaNGhVNTU2xZMkSDwVAFkilUjF69Oi48soro0OHDs22D01NTdt++9vf/stll132oqcCAAB2HQEwAAA5bdKkSeXdu3efM3jw4GYbAufn58eAAQOiV69esWDBgti+fbsHA2Avad26dVx66aVx/PHHR35+frPtQ2NjY/WvfvWrf7nuuute81QAAMCuJQAGACDnTZ48eW1jY+OMI4444uiCgoKS5tqHrl27xqhRo2Lbtm2xcuVKDwbAHpRKpWLUqFExduzY6NWrV7PuRX19/fo77rjjK9/61rcWejIAAGDXEwADANAsPP/881UbNmx45rjjjjuqsLCwrLn2obCwMAYNGhT77bdfLF68OGpraz0cALtZ+/bt44orrogTTzwxCgub9/uU2tralTfffPPVP/nJT1Z7MgAAYPcQAAMA0Gz87W9/27p27doZJ5xwwsjCwsK2zbkXnTp1ipEjR0Z1dbXTwAC70ciRI+Pqq6+OHj16NPte1NTULL/hhhuu/e1vf7vOkwEAALuPABgAgGbltdde2zpv3rynTznllKFFRUWdmnMvCgsL49BDD4399tsvFi1a5DQwwC709qnfk08+udmf+o2I2Lx587yLL774unHjxm30dAAAwO71fgFwat9zYsTOftC4LmLjq610DwCAxOrVq1fhs88++69du3Y9QTciGhoaYurUqTF58uRobGzUEICPqaCgIE499dQYPXq04HeH8vLyp4499tjvrly5skE3AABg9+swrDYKuuz8ZwJgAAByWuvWrfNeeumlm/fdd9+zdeMfVq9eHffff38sWbJEMwA+ov322y8uuugi1z2/w8KFC38/fPjwnzY0NGR0AwAA9gwBMAAAzd7zzz9/8aGHHnp1RKR0IyKTycTMmTPjz3/+c9TV1WkIwAcoKSmJ8847L0aMGBGplL9Kdki//PLL9xx77LEPagUAAOxZ7xcA+wYwAADNwn333Tfn+OOP39yrV6/DQwgcqVQqevfuHcOHD49169ZFRUWFhwTgPRxyyCExduzY6N+/v/B3h0wm0/jMM8/828knnzxONwAAYM97v28AC4ABAGg2fve7370xePDgJf369Ts6lUrl60hEcXFxjBgxInr06BFLly6N2tpaTQHYoUOHDvGFL3whzjzzzCguLtaQHZqammoeeOCBWz73uc9N1w0AANg7BMAAALDDww8/vKygoOC54cOHH1FQUFCqI//QrVu3OO6446K0tDQWL14cTU1NmgI0Wy1btoxzzjknLr300ujevbuGvENtbe2K22677arbbrvtDd0AAIC9RwAMAADv8Oyzz25avHjx0yeddNKQoqKiTjryD3l5edGnT58YOXJkbN26NVatWqUpQLNz+OGHx1e+8pUYMGBA5OXlacg7VFVV/e3CCy+8/oEHHvDdAAAA2MsEwAAA8C7z58+vefbZZ58+44wz+hcXF/fSkf/RsmXLGDJkSOyzzz6xdOnSqKmp0RQg53Xs2DG++MUvximnnBItW7bUkHdZt27dMyeffPI3Xn755W26AQAAe9/7BcCpfc+JETv7QeO6iI2vttI9AAByWmFhYer555//0sEHH3y5bvxfTU1N8fzzz8f48eOjurpaQ4Cc07p16zjzzDPjyCOPdOJ35zJ///vff3rMMcfc39DQkNEOAADIDh2G1UZBl53/TAAMAAARMWnSpM8cc8wxt6RSKdfg7ERNTU1MmTIlpk2bFg0NDRoCJF5hYWGccsopcdJJJ0VRUZGG7EQ6na6fOnXqd88555y/6AYAAGSX9wuAXQENAAAR8Yc//GHhfvvt98aAAQOOysvLkwS8S2FhYQwYMCCGDh0amzZtinXr1mkKkFiDBw+Oq666KoYOHRoFBQUashONjY1Vv//972/5whe+MEs3AAAg+/gGMAAAfAgTJkxYXV1dPf3II4/8VGFhYTsd+b9KS0vjsMMOi/79+8eaNWti8+bNmgIkRu/evePyyy+PU045JUpLSzXkPWzdunXxLbfccs33vve9hboBAADZyTeAAQDgI+jTp0+LJ5988us9evQ4TTfe3/z58+ORRx6JlStXagaQtXr16hXnnHNODBgwQDM+wKpVq5444YQTfrBy5Ur3/QMAQBbzDWAAAPgYnnnmmfOHDx9+fSqVytON95bJZGL27Nkxbty4qKio0BAga3Tu3DnOOuusGDp0aKRSKQ15/z/Lm2bNmvXDk08++THdAACA7OcbwAAA8DH85je/eX3//fd//cADDzzSd4HfWyqViu7du8cxxxwT7dq1i2XLlkV9fb3GAHtN27Zt49xzz42LL744evToIfz9AI2NjdUPPvjgLZ/97Gf/ohsAAJAMvgEMAAAf0/jx41dFxPOHHXbYiMLCwjIdeW95eXnRu3fvOOqoo6KgoCBWrlwZjY2NGgPsMcXFxXHKKafEl770pejbt2/k5bnA4YPU1tau+MEPfnD9LbfcMk83AAAgQf/94xvAAADwyQwePLjVo48++s1u3bqdpBsfTn19fTzzzDMxderU2LZtm4YAu01ZWVmceuqpceSRR0ZRkQsbPqyVK1c+/ulPf/pHixcvdm0DAAAkjG8AAwDALvLkk0+edeSRR96USqVcl/MhCYKB3eXtE7/HHnus4PcjyGQyDbNmzfoP3/sFAIDk8g1gAADYRX7/+98v6NGjx2uHHHLIyPz8fL8x+SEUFBREv3794qijjoq8vLxYtWqVq6GBT6Rly5ZxwgknxBVXXBEHHXRQFBQUaMqH1NDQsOG3v/3t1z7/+c8/oxsAAJBcroAGAIBd7Lzzzut4991339m2bdvBuvHR1NTUxLPPPhvTpk2LLVu2aAjwoZWVlcXxxx8fxxxzTBQXF2vIR1RVVfW3a6+99vZHHnlkg24AAECyuQIaAAB2g06dOhVMmzZtbN++fT8XESkd+WgaGhri+eefjyeffDI2bJBFAO/7522cdNJJccQRR0RhodvKPobMokWL/nTsscf+pLKyskk7AAAg+QTAAACwG/3hD38Ydfrpp99WUFDQRjc+unQ6Ha+++mpMnTo1Vq5cqSHAP/Xq1StOOeWUGDp0aOTl5WnIx9DY2Fg1YcKEOy666KKZugEAALlDAAwAALvZaaed1vbee+/9docOHUbqxse3fPnymDZtWrz88suRTqc1BJqhvLy8OOyww+L444+P3r17a8gnsHHjxue//OUvf3fSpElVugEAALlFAAwAAHtAYWFh6qmnnjpv+PDh16RSKXeUfgIbNmyIGTNmxHPPPRc1NTUaAs1AcXFxjBo1Ko4++ujo2LGjhnwCmUym4ZVXXvl/J5100kMNDQ0ZHQEAgNzzfgFwftuDoufOfpDeFlFb7p0VAAB8WOl0On7zm9+8Xlpa+uLgwYM/VVhYWKYrH09xcXEMGDAgjj322GjTpk2sXbs2amtrNQZyUIcOHeKMM86ISy+9NAYOHBjFxcWa8gnU1tau+slPfnLjxRdf/IybFAAAIHcVd2+MvNKd/8wJYAAA2A1OPPHENvfdd9+tnTp1Olo3PrnGxsb429/+Fs8++2wsWrRIQyAH9OvXL44++ugYNmxYFBQUaMguUFFR8cwXv/jFf5s+ffoW3QAAgNzmCmgAANhLHn744RNGjx799YKCgta6sWusX78+Zs6cGc8//3xUV1drCCRIaWlpHHnkkXHUUUdF586dNWQXaWxs3DJ16tS7PvvZz/5FNwAAoHkQAAMAwF50ySWXdP3+97//rXbt2g3VjV2nsbExXnvttXjuuedi/vz5GgJZbMCAATFq1KgYPHiw0767WFVV1atf//rXv/e73/1urW4AAEDzIQAGAIC9rF27dvlTp0699OCDD740lUrl68iutXz58nj++efj5ZdfjpqaGg2BLFBSUhLDhw+PI444Inr37q0hu1gmk2mcN2/efSeeeOJvq6urfewXAACaGQEwAABkia9//ev73Xjjjf9aWlraXzd2vXQ6HW+++WY899xz8dprr0VjY6OmwB5UUFAQgwcPjlGjRsUBBxwQeXl5mrIbVFdXL/zP//zPf/3BD36wRDcAAKB5EgADAEAWOfjgg1v9+c9/vrZ3795jIiKlI7tHZWVlvPjii/HCCy/EunXrNAR2o65du8bIkSPj8MMPj7Zt22rI7pNZunTpn88888z/t3jx4nrtAACA5ksADAAAWejuu+8eePHFF9/WqlUrd6PuZuXl5fHqq6/GSy+9FOvXr9cQ2AU6d+4cI0aMiGHDhkW3bt00ZDerqalZ9tvf/vbOm266aa5uAAAAAmAAAMhS/fr1K3r44Ycv79+//4WpVMpdqXvA8uXL46WXXoqXX345qqurNQQ+grKyshg+fHiMGDHCd333kEwmk164cOEfzj777F8sXbp0u44AAAARAmAAAMh6P/3pT4d97nOf+2bLli176Mae0dDQEHPnzo2//vWvMXfu3Ni+Xa4CO9OyZcsYNGhQDBs2LA455JAoKCjQlD2ktrZ21R//+Mc7rr322r/rBgAA8E4CYAAASIA+ffq0ePTRR69wGnjPS6fTsXTp0nj11VedDIaIaNu2bQwbNiyGDRsWffr0ibw8fyTtSZlMpuG11177+ZlnnvmnioqKRh0BAADeTQAMAAAJ8uMf//jQCy644JutWrXaRzf2vLdPBs+ePTvmzp0bdXV1mkKzUFZWFoMHD45hw4ZF//79Iz8/X1P2gpqammX333//nTfccINv/QIAAO9JAAwAAAnTrl27/HHjxp37qU996qq8vDwb870kk8nEihUrYu7cuTFnzpxYsWJFZDIZjSEnpFKp6Nu3bwwbNiwGDRoUHTt21JS9qKmpqfbVV1/92ZgxY/5cWVnZpCMAAMD7EQADAEBCffnLX+5x++23f7V9+/aH68bet2XLlnjjjTdizpw5MW/evKivr9cUEqVly5Zx8MEHx6BBg+KQQw6J0tJSTckCGzdufPG73/3uv//iF79YoxsAAMCHIQAGAIAEKywsTE2cOPGMkSNHXlNQUNBaR7JDXV1dvPnmm/HGG2/EG2+8EevXr9cUslKXLl3ioIMOioMOOigOOOCAKCoq0pQs0djYuGXmzJk/PvPMMyc2NDS4XgAAAPjQBMAAAJADjjzyyNY/+9nPrujbt++5EZGnI9mluro6Fi5cGPPnz4958+ZFZWWlprBXtGvXLg455JAYMGBA9O/fP1q39nsjWSj91ltv/fmqq676xaxZs6q1AwAA+KgEwAAAkEN++ctfjhgzZsyNrVq16q0b2SmdTsfKlStj0aJFsXDhwli8eHFs27ZNY9gtSkpKol+/ftG/f//Yf//9o1evXpGX53dEslVNTc3yRx999EdXXnnlK7oBAAB8XAJgAADIMd26dSt8+OGHPzd48ODL8vPzbdyzXCaTiTVr1sTChQtj0aJFsWjRotiyZYvG8LGUlZVF//79/xn6du/ePVKplMZkuaampprXXnvtV2PGjHmgoqKiUUcAAIBPQgAMAAA56rjjjiv7r//6r8tdC508mzdvjuXLl8eKFSti+fLlsXjx4qipqdEY/pfi4uLo169f9O7dO/bZZ5/Yd999o6ysTGMSJJPJpJcsWfLn66677pfTp0/3mx8AAMAuIQAGAIAc99Of/nTIueeee3NpaWlf3UimxsbGWLlyZSxdujSWLVsWy5cvj3Xr1kUmk9GcZiKVSkWXLl1in332iT59+kSfPn2iV69eUVBQoDkJtXXr1sUPPvjgj6699tq/6wYAALArCYABAKAZaNeuXf64cePOGTp06BUFBQWtdST56uvrY+XKlf88KbxixYpYu3ZtpNNpzUm4vLy86Nq1a+yzzz7//KdXr17RsmVLzckBjY2NW/7617/+4pxzznm0srKySUcAAIBdTQAMAADNyIknntjmnnvuuXzfffcdk0qlHB3MMdu3b481a9bEmjVrYu3atbF27dooLy+PDRs2CIazUF5eXnTs2DG6desWXbt2jW7dukW3bt2iR48eUVhYqEE5JpPJNC5ZsuRR1z0DAAC7mwAYAACaoa9+9av7Xnfdddd16NDhCN3IfY2Njf8MhNetWxfr1q2LioqKWLduXWzbtk2DdrPS0tLo3LnzP//p0qVLdO3aNbp27eoK52Ziw4YNM//rv/7rxz/60Y+W6wYAALC7CYABAKAZ++UvfznirLPOuq64uNj3gZupmpqaWL9+/T//qaioiMrKyqisrIxNmzZFY2OjJn2AgoKCaN++fbRr1y7at28fHTt2jC5dukSnTp2ic+fOUVxcrEnN1NatW98aP378PVdcccXLugEAAOwpAmAAAGjm2rVrl//ggw+eOWLEiCsLCwvb6gjvtHnz5n+GwZs2bYrKysqorq6OLVu2xJYtW6K6ujqqq6sjk8nk3NpTqVS0bt06WrduHWVlZdGmTZsoLS39X2Fvu3btok2bNh4U/peGhobKl1566efnnHPO+OrqavevAwAAe5QAGAAAiIiIoUOHFt97770XHHjggRfk5+c7ssiHlk6n/xkEV1dXR01Nzfv+k8lkora2NtLpdNTX10dTU1PU1dXt0u8U5+XlRcuWLSM/Pz+KiooiLy8vWrVqFalUKoqLi3f6T0lJSbRq1eqfgW9paWnk5eUZMB9aU1NTzYIFC/745S9/+Y+zZ8+u0REAAGBvEAADAAD/y2mnndb2rrvuurRPnz5n5+XlFeoIe9LbgfDbtm/f/r7XUBcUFESLFi3++b/fDnxhT8pkMg1LliwZd8stt/xq0qRJVToCAADsTQJgAABgp0477bS2d95554X777//5wTBAP9XJpNpWLhw4QO33nrrHwS/AABAtni/ADi/7UHRc2c/SG+LqC33/gcAAHLZokWL6u69995X0un0swcddFCnkpKS3roC8A8VFRUz/7//7/+77aKLLpq6aNGiOh0BAACyRXH3xsgr3fnPBMAAAEDMnDmz8u67736qqalpWr9+/Ypbt27dN5VKpXQGaG4ymUx6zZo1U+65555/Peeccx6cOXNmpa4AAADZRgAMAAB8KDNnzqz88Y9//Gw6nZ4uCAaak7eD37vvvvtfzz///McEvwAAQDYTAAMAAB+JIBhoLgS/AABAEgmAAQCAj+XtILisrOyFvn37diwuLu4VEYJgIBdkKioqnrv33nu/PWbMmEcEvwAAQJK8XwCc2vecGLGzHzSui9j4aivdAwAA/unqq6/u8ZWvfOX8Pn36nJWXl9dCR4CkSafT9UuXLh3/X//1Xw/84he/WKMjAABAEnUYVhsFXXb+MwEwAADwkZ1xxhntb7/99rMPPPDA8/Pz81vrCJDtmpqaqhcsWPDgd77znUcmTpzotC8AAJBoAmAAAGC3GD58eMkPf/jDzwwePPjioqKijjoCZJv6+voNr7322u9vvPHGx2fPnl2jIwAAQC4QAAMAALvV0KFDi++5556zDjnkkPOKioq66giwt9XV1a19/fXXH7z++uvHC34BAIBcIwAGAAD2iFatWuXdc889w0455ZTzO3bseJSOAHtYZsOGDbOmTJny4PXXX/9qbW1tWksAAIBcJAAGAAD2uH/913/tf/7555/dq1ev0/Ly8lroCLC7pNPp+pUrV05+4IEHHvnOd76zSEcAAIBcJwAGAAD2mjPOOKP97bfffvYBBxzw2YKCgjY6AuwqjY2NVW+++eafv/e97z06YcKETToCAAA0FwJgAABgrxs+fHjJ97///dGDBg0aU1paur+OAB9XdXX1wtdee+3Rr371q1Nfe+21Wh0BAACaGwEwAACQVb761a/ue8EFF3y6b9++ZxUUFLTWEeCDNDY2bnnrrbfG/+EPf5j4ox/9aLmOAAAAzZkAGAAAyEpDhw4t/sEPfnDy4MGDz27dunV/HQHerbq6+s2XX375weuuu+7ppUuXbtcRAAAAATAAAJDlCgsLU3ffffeQ0aNHn9G1a9fj8vLyinQFmq90Ol1XXl4+bcqUKROuvfbav+sIAADA/yYABgAAEqNPnz4t/v3f/33UyJEjz2rfvv2nIiKlK9AsZDZt2vTXF1544bGvfe1rzzntCwAA8N4EwAAAQCJddNFFXa6++uqTDzzwwLNbtmzZTUcg99TV1a1ZsGDBuJ/+9KdP3n///et0BAAA4IMJgAEAgETr1q1b4d13333k4YcffmqHDh2OyMvLK9QVSK50Ot2wcePGWbNmzZp8/fXXz6qoqGjUFQAAgA9PAAwAAOSMo48+uvWtt956/CGHHHJKu3btBkdEnq5AIqQrKytfmzdv3uQ777xz+owZM6q1BAAA4OMRAAMAADnpuOOOK/vGN75x/CGHHHJa27ZtB4bvBUO2yVRVVc2dN2/epO9///vTpk+fvkVLAAAAPjkBMAAAkPNuu+22vmedddZJffr0Oa5Vq1a9dQT2ntra2uXLly+f/uijjz51xx13vKUjAAAAu5YAGAAAaFa+9KUvdbv44ouP7t+//wlOBsMekamqqpq7cOHCv/z+97+fcd9995VrCQAAwO4jAAYAAJqtSy65pOtll112jDAYdrl0VVXVvIULF/7lV7/61bO/+93v1moJAADAniEABgAAiIirr766x/nnnz9q//33P7JNmzZDUqlUga7Ah5fJZBoqKyv/vnjx4uf+9Kc/zbr33ntX6woAAMCeJwAGAAB4l379+hV97WtfGzRy5MhRPXv2PLaoqKizrsD/VV9fv37VqlXPvPDCC8/9+7//+5zFixfX6woAAMDeJQAGAAB4H61bt8678847Bx599NFHde/efURpaen+4apomq/M1q1bF69Zs+bF5557btY3v/nNOdXV1WltAQAAyB4CYAAAgI9g8ODBrcaOHXvI8OHDD+vevfvw1q1bHxACYXJXprq6+s01a9a88sorr7z8k5/8ZN5rr71Wqy0AAADZSwAMAADwCVx//fX7nHHGGYf169dvePv27Yfm5+e31hWSrLGxsXrjxo2vvvXWWy+PHz/+lR//+McrdQUAACA5BMAAAAC70Je//OUe55xzzvA+ffoM7tix45CioqKuukI2q6+vX7t27doXFy9ePGfixImv3Xvvvat1BQAAILkEwAAAALvRl7/85R6f+cxnBvfr129Qly5dDm/ZsqVAmL2qrq5u7bp16wS+AAAAOUoADAAAsIe0atUq75prrtnn2GOPPXi//fY7uH379oeUlpb2TaVS+brDbpKuqalZtnHjxnlvvfXW3GeffXbef/3Xfy2vra1Naw0AAEBuEgADAADsRQceeGDLq6+++oAhQ4Yc3LNnz4Pbtm17sGuj+biampqqq6qqXi8vL583Z86ceb/85S/nvfjii1t1BgAAoPkQAAMAAGSZoUOHFn/xi1/cf9CgQQf26NHjwHbt2h3YqlWr3qlUKk932CFdU1OzvLKycsHq1asXzJkzZ8Gf//znJTNmzKjWGgAAgOZNAAwAAJAAxx13XNkFF1xw4MEHH3xA165dDywtLd23pKRkn1QqVag7uS2TyTRs27ZtRXV19dJ169YtfOONNxZOmDBh4YQJEzbpDgAAAO8mAAYAAEiw8847r+OJJ57Yp3///vt16dKlT5s2bfZr3bp1v/z8/GLdSZampqaa6urqxZs3b16ybt26pQsXLlzy9NNPL33ooYc26A4AAAAflgAYAAAgx7Rr1y7/kksu6TFkyJCe++67b89OnTr1Kisr61VcXNyzZcuW3VKpVL4u7R2ZTKaprq6uvKamZtWWLVtWVlRUrFy6dOnK2bNnr7r//vvXVFZWNukSAAAAn4QAGAAAoBnp1KlTwec+97luQ4cO7bnPPvv0aNeuXafWrVt3Li4u7tqyZcvORUVFnfLy8lro1MeTTqe319fXr6+rq6uoqalZW11dvb6ysnL9ihUrVr/66qurHnzwwbUVFRWNOgUAAMDuIgAGAADgfznjjDPaH3bYYZ369OnTuUuXLp3Kysral5SUtC0uLu5YVFTUrqioqG2LFi065OfnlzaXnjQ1NW3dvn37xvr6+qr6+vrKmpqaDdu2bavasmXLpnXr1lUsXbp0/Ysvvrh+4sSJlZ4gAAAA9iYBMAAAAB9Lr169CkeNGtXuoIMOatexY8ey9u3bl7Zp06Z1SUlJWXFxcetWrVq1btGiRVlRUVHrwsLC1hGRX1hYWBoR+QUFBSV5eXkFeXl5u/0/LtPpdG06nW5sbGzcFhFNDQ0NW3f83+r6+vrq7du3b6mtra2uqamp3rZtW/XmzZurN23aVL1hw4YtCxYsqJo1a1bl0qVLt5s4AAAASSAABgAAYK/q169fUffu3Vvss88+xSUlJQVv//8LCwtT3bp1+8BTxuXl5VsbGhoyb//vbdu2Na5YsaJmzZo12xcvXlyvwwAAADQn7xcAF2gPAAAAu9vixYvrdwS11boBAAAAu0+eFgAAAAAAAADkBgEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4o0AIAAAAAAACA5GhoLIyCxoaIiEilIpNXGE1v/0wADAAAAAAAAJAghQUN/0x6MxGppvT/5L6ugAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAIb/v5272ZHiusM4/FZ1NUkz9sQwOF4EyZJtpJCwysa5jSy4n1xPEqRIuQFvvfGSgIwBOzGRQAQERnx0d1UW0cgWGvKxsMGvnmfVdc7/1OJsf+oCAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoMY3JP//9K8My551lzpAk293a7QAAAAAAAAD8iIw3r+SL7TpPxuSt4/ibJJuz20QDBgAAAAAAAHhzrJPp6NvHYcyyjLl7dJTPbl/Jp6sPLufSsM+5ec7q5YOrF0OeP/SVaAAAAAAAAIA3weH7u6zfm79dWDIMSw6225w785vsx3XyzasOby5ssz69c4sAAAAAAAAAr9n69C6bC9sT93a7rKdnORin5Otxynzi1JQcfiwCAwAAAAAAALxO69O7HH68TaaT98cp85R8vbp3Nfszv8q0LHn7xMF1sjk/ZzUPmZ/MmWefhAYAAAAAAAD4oayPdjn7223Gn7x6ZrXPnetX8mBKkpv3cufDd/Pufn5FL56SzcVtNheT3dNt8tQlAwAAAAAAAHyv1sm0ySv/9XtsNWZ3I/lHkgzHi7/4XY7WYz5yiwAAAAAAAAA/Ivtcv/3nPEyS1fHa42t5+vNLyX7JoRsCAAAAAAAAePPt1/nbV3/KvePn1Xc371/NYxEYAAAAAAAA4M0yTHk2rvNo2WdzvHZqzN9v/SF3vju3evng/at5fPDLPDu1yuGyZHSVAAAAAAAAAK/XOGe4ueSvZ4e8M8xZbVe5ceuPufvy3Oqkw4+v5emDX+fuuTlLhhwsEYIBAAAAAAAAXpclGR8OuXP0TR4cPM/9z/+SRyfNDf/1TZezOp/87KdjzizJZkhO7edMy/w/nAUAAAAAAADg/zaMWcZkP8/ZLsmLacr2/MV8+cnvs/tP5/4FmLjAq1ifcioAAAAASUVORK5CYII=";function Mt(t,e,n){return typeof t=="string"&&!isNaN(Number(t))&&(t=Number(t)),typeof t=="number"&&t<100?Xt(t):typeof t=="number"&&t>=100?t:typeof t=="string"&&t.includes("%")?Math.round(e&&e==="X"?parseFloat(t)/100*n.width:e&&e==="Y"?parseFloat(t)/100*n.height:parseFloat(t)/100*n.width):0}function Jp(t){return t.replace(/[xy]/g,function(e){const n=Math.random()*16|0;return(e==="x"?n:n&3|8).toString(16)})}function _t(t){return typeof t>"u"||t==null?"":t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Xt(t){return typeof t=="number"&&t>100?t:(typeof t=="string"&&(t=Number(t.replace(/in*/gi,""))),Math.round(Tt*t))}function xt(t){const e=Number(t)||0;return isNaN(e)?0:Math.round(e*Lf)}function Bl(t){return t=t||0,Math.round((t>360?t-360:t)*6e4)}function Xm(t){const e=t.toString(16);return e.length===1?"0"+e:e}function Qm(t,e,n){return(Xm(t)+Xm(e)+Xm(n)).toUpperCase()}function Zt(t,e){let n=(t||"").replace("#","");!Wm.test(n)&&n!==Ga.background1&&n!==Ga.background2&&n!==Ga.text1&&n!==Ga.text2&&n!==Ga.accent1&&n!==Ga.accent2&&n!==Ga.accent3&&n!==Ga.accent4&&n!==Ga.accent5&&n!==Ga.accent6&&(console.warn(`"${n}" is not a valid scheme color or hex RGB! "${wa}" used instead. Only provide 6-digit RGB or 'pptx.SchemeColor' values!`),n=wa);const s=Wm.test(n)?"srgbClr":"schemeClr",i='val="'+(Wm.test(n)?n.toUpperCase():n)+'"';return e?`<a:${s} ${i}>${e}</a:${s}>`:`<a:${s} ${i}/>`}function vS(t,e){let n="";const s=Object.assign(Object.assign({},e),t),i=Math.round(s.size*Lf),c=s.color,d=Math.round(s.opacity*1e5);return n+=`<a:glow rad="${i}">`,n+=Zt(c,`<a:alpha val="${d}"/>`),n+="</a:glow>",n}function Wa(t){let e="solid",n="",s="",i="";if(t)switch(typeof t=="string"?n=t:(t.type&&(e=t.type),t.color&&(n=t.color),t.alpha&&(s+=`<a:alpha val="${Math.round((100-t.alpha)*1e3)}"/>`),t.transparency&&(s+=`<a:alpha val="${Math.round((100-t.transparency)*1e3)}"/>`)),e){case"solid":i+=`<a:solidFill>${Zt(n,s)}</a:solidFill>`;break;default:i+="";break}return i}function Js(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function Og(t){if(!(!t||typeof t!="object"))return t.type!=="outer"&&t.type!=="inner"&&t.type!=="none"&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),t.type="outer"),t.angle&&((isNaN(Number(t.angle))||t.angle<0||t.angle>359)&&(console.warn("Warning: shadow.angle can only be 0-359"),t.angle=270),t.angle=Math.round(Number(t.angle))),t.opacity&&((isNaN(Number(t.opacity))||t.opacity<0||t.opacity>1)&&(console.warn("Warning: shadow.opacity can only be 0-1"),t.opacity=.75),t.opacity=Number(t.opacity)),t.color&&t.color.startsWith("#")&&(console.warn('Warning: shadow.color should not include hash (#) character, , e.g. "FF0000"'),t.color=t.color.replace("#","")),t}function yS(t,e,n){var s,i;const c=2.3+(!((s=t.options)===null||s===void 0)&&s.autoPageCharWeight?t.options.autoPageCharWeight:0),d=Math.floor(e/Lf*Tt)/((!((i=t.options)===null||i===void 0)&&i.fontSize?t.options.fontSize:hi)/c),h=[];let p=[];const u=[],A=[];t.text&&t.text.toString().trim().length===0?p.push({_type:Et.tablecell,text:" "}):typeof t.text=="number"||typeof t.text=="string"?p.push({_type:Et.tablecell,text:(t.text||"").toString().trim()}):Array.isArray(t.text)&&(p=t.text);let y=[];return p.forEach(x=>{var S;typeof x.text=="string"&&(x.text.split(`
|
|
42
42
|
`).length>1?x.text.split(`
|
|
43
|
-
`).forEach(C=>{y.push({_type:Et.tablecell,text:C,options:Object.assign(Object.assign({},x.options),{breakLine:!0})})}):y.push({_type:Et.tablecell,text:x.text.trim(),options:x.options}),!((S=x.options)===null||S===void 0)&&S.breakLine&&(u.push(y),y=[])),y.length>0&&(u.push(y),y=[])}),u.forEach(x=>{x.forEach(S=>{const C=[],T=String(S.text).split(" ");T.forEach((D,P)=>{const M=Object.assign({},S.options);M!=null&&M.breakLine&&(M.breakLine=P+1===T.length),C.push({_type:Et.tablecell,text:D+(P+1<T.length?" ":""),options:M})}),A.push(C)})}),A.forEach(x=>{let S=[],C="";x.forEach(R=>{C.length+R.text.length>d&&(h.push(S),S=[],C=""),S.push(R),C+=R.text.toString()}),S.length>0&&h.push(S)}),h}function ix(t=[],e={},n,s){let i=Ef,c=Tt*1,d=Tt*1,h=0,p=0;const u=[],A=Mt(e.x,"X",n),y=Mt(e.y,"Y",n),x=Mt(e.w,"X",n),S=Mt(e.h,"Y",n);let C=x;function R(){let D=0;u.length===0&&(D=y||Xt(i[0])),u.length>0&&(D=Xt(e.autoPageSlideStartY||e.newSlideStartY||i[0])),d=(S||n.height)-D-Xt(i[2]),u.length>1&&(typeof e.autoPageSlideStartY=="number"?d=(S||n.height)-Xt(e.autoPageSlideStartY+i[2]):typeof e.newSlideStartY=="number"?d=(S||n.height)-Xt(e.newSlideStartY+i[2]):y&&(d=(S||n.height)-Xt((y/Tt<i[0]?y/Tt:i[0])+i[2]),d<S&&(d=S)))}if(e.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log(`| presLayout.width ................................ = ${(n.width/Tt).toFixed(1)}`),console.log(`| presLayout.height ............................... = ${(n.height/Tt).toFixed(1)}`),console.log(`| tableProps.x .................................... = ${typeof e.x=="number"?(e.x/Tt).toFixed(1):e.x}`),console.log(`| tableProps.y .................................... = ${typeof e.y=="number"?(e.y/Tt).toFixed(1):e.y}`),console.log(`| tableProps.w .................................... = ${typeof e.w=="number"?(e.w/Tt).toFixed(1):e.w}`),console.log(`| tableProps.h .................................... = ${typeof e.h=="number"?(e.h/Tt).toFixed(1):e.h}`),console.log(`| tableProps.slideMargin .......................... = ${e.slideMargin?String(e.slideMargin):""}`),console.log(`| tableProps.margin ............................... = ${String(e.margin)}`),console.log(`| tableProps.colW ................................. = ${String(e.colW)}`),console.log(`| tableProps.autoPageSlideStartY .................. = ${e.autoPageSlideStartY}`),console.log(`| tableProps.autoPageCharWeight ................... = ${e.autoPageCharWeight}`),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log(`| tablePropX ...................................... = ${A/Tt}`),console.log(`| tablePropY ...................................... = ${y/Tt}`),console.log(`| tablePropW ...................................... = ${x/Tt}`),console.log(`| tablePropH ...................................... = ${S/Tt}`),console.log(`| tableCalcW ...................................... = ${C/Tt}`)),!e.slideMargin&&e.slideMargin!==0&&(e.slideMargin=Ef[0]),s&&typeof s._margin<"u"?Array.isArray(s._margin)?i=s._margin:isNaN(Number(s._margin))||(i=[Number(s._margin),Number(s._margin),Number(s._margin),Number(s._margin)]):(e.slideMargin||e.slideMargin===0)&&(Array.isArray(e.slideMargin)?i=e.slideMargin:isNaN(e.slideMargin)||(i=[e.slideMargin,e.slideMargin,e.slideMargin,e.slideMargin])),e.verbose&&console.log(`| arrInchMargins .................................. = [${i.join(", ")}]`),(t[0]||[]).forEach(P=>{P||(P={_type:Et.tablecell});const M=P.options||null;p+=Number(M!=null&&M.colspan?M.colspan:1)}),e.verbose&&console.log(`| numCols ......................................... = ${p}`),!x&&e.colW&&(C=Array.isArray(e.colW)?e.colW.reduce((D,P)=>D+P)*Tt:e.colW*p||0,e.verbose&&console.log(`| tableCalcW ...................................... = ${C/Tt}`)),c=C||Xt((A?A/Tt:i[1])+i[3]),e.verbose&&console.log(`| emuSlideTabW .................................... = ${(c/Tt).toFixed(1)}`),!e.colW||!Array.isArray(e.colW))if(e.colW&&!isNaN(Number(e.colW))){const D=[];(t[0]||[]).forEach(()=>D.push(e.colW)),e.colW=[],D.forEach(M=>{Array.isArray(e.colW)&&e.colW.push(M)})}else{e.colW=[];for(let D=0;D<p;D++)e.colW.push(c/Tt/p)}let T={rows:[]};return t.forEach((D,P)=>{const M=[];let O=0,I=0,
|
|
44
|
-
| SLIDE [${u.length}]: ROW [${P}]: START...`);let K=0,q=0,
|
|
45
|
-
|-----------------------------------------------------------------------|`),console.log(`|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ${(h/Tt).toFixed(2)} + ${(
|
|
43
|
+
`).forEach(C=>{y.push({_type:Et.tablecell,text:C,options:Object.assign(Object.assign({},x.options),{breakLine:!0})})}):y.push({_type:Et.tablecell,text:x.text.trim(),options:x.options}),!((S=x.options)===null||S===void 0)&&S.breakLine&&(u.push(y),y=[])),y.length>0&&(u.push(y),y=[])}),u.forEach(x=>{x.forEach(S=>{const C=[],T=String(S.text).split(" ");T.forEach((D,P)=>{const M=Object.assign({},S.options);M!=null&&M.breakLine&&(M.breakLine=P+1===T.length),C.push({_type:Et.tablecell,text:D+(P+1<T.length?" ":""),options:M})}),A.push(C)})}),A.forEach(x=>{let S=[],C="";x.forEach(R=>{C.length+R.text.length>d&&(h.push(S),S=[],C=""),S.push(R),C+=R.text.toString()}),S.length>0&&h.push(S)}),h}function ix(t=[],e={},n,s){let i=Ef,c=Tt*1,d=Tt*1,h=0,p=0;const u=[],A=Mt(e.x,"X",n),y=Mt(e.y,"Y",n),x=Mt(e.w,"X",n),S=Mt(e.h,"Y",n);let C=x;function R(){let D=0;u.length===0&&(D=y||Xt(i[0])),u.length>0&&(D=Xt(e.autoPageSlideStartY||e.newSlideStartY||i[0])),d=(S||n.height)-D-Xt(i[2]),u.length>1&&(typeof e.autoPageSlideStartY=="number"?d=(S||n.height)-Xt(e.autoPageSlideStartY+i[2]):typeof e.newSlideStartY=="number"?d=(S||n.height)-Xt(e.newSlideStartY+i[2]):y&&(d=(S||n.height)-Xt((y/Tt<i[0]?y/Tt:i[0])+i[2]),d<S&&(d=S)))}if(e.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log(`| presLayout.width ................................ = ${(n.width/Tt).toFixed(1)}`),console.log(`| presLayout.height ............................... = ${(n.height/Tt).toFixed(1)}`),console.log(`| tableProps.x .................................... = ${typeof e.x=="number"?(e.x/Tt).toFixed(1):e.x}`),console.log(`| tableProps.y .................................... = ${typeof e.y=="number"?(e.y/Tt).toFixed(1):e.y}`),console.log(`| tableProps.w .................................... = ${typeof e.w=="number"?(e.w/Tt).toFixed(1):e.w}`),console.log(`| tableProps.h .................................... = ${typeof e.h=="number"?(e.h/Tt).toFixed(1):e.h}`),console.log(`| tableProps.slideMargin .......................... = ${e.slideMargin?String(e.slideMargin):""}`),console.log(`| tableProps.margin ............................... = ${String(e.margin)}`),console.log(`| tableProps.colW ................................. = ${String(e.colW)}`),console.log(`| tableProps.autoPageSlideStartY .................. = ${e.autoPageSlideStartY}`),console.log(`| tableProps.autoPageCharWeight ................... = ${e.autoPageCharWeight}`),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log(`| tablePropX ...................................... = ${A/Tt}`),console.log(`| tablePropY ...................................... = ${y/Tt}`),console.log(`| tablePropW ...................................... = ${x/Tt}`),console.log(`| tablePropH ...................................... = ${S/Tt}`),console.log(`| tableCalcW ...................................... = ${C/Tt}`)),!e.slideMargin&&e.slideMargin!==0&&(e.slideMargin=Ef[0]),s&&typeof s._margin<"u"?Array.isArray(s._margin)?i=s._margin:isNaN(Number(s._margin))||(i=[Number(s._margin),Number(s._margin),Number(s._margin),Number(s._margin)]):(e.slideMargin||e.slideMargin===0)&&(Array.isArray(e.slideMargin)?i=e.slideMargin:isNaN(e.slideMargin)||(i=[e.slideMargin,e.slideMargin,e.slideMargin,e.slideMargin])),e.verbose&&console.log(`| arrInchMargins .................................. = [${i.join(", ")}]`),(t[0]||[]).forEach(P=>{P||(P={_type:Et.tablecell});const M=P.options||null;p+=Number(M!=null&&M.colspan?M.colspan:1)}),e.verbose&&console.log(`| numCols ......................................... = ${p}`),!x&&e.colW&&(C=Array.isArray(e.colW)?e.colW.reduce((D,P)=>D+P)*Tt:e.colW*p||0,e.verbose&&console.log(`| tableCalcW ...................................... = ${C/Tt}`)),c=C||Xt((A?A/Tt:i[1])+i[3]),e.verbose&&console.log(`| emuSlideTabW .................................... = ${(c/Tt).toFixed(1)}`),!e.colW||!Array.isArray(e.colW))if(e.colW&&!isNaN(Number(e.colW))){const D=[];(t[0]||[]).forEach(()=>D.push(e.colW)),e.colW=[],D.forEach(M=>{Array.isArray(e.colW)&&e.colW.push(M)})}else{e.colW=[];for(let D=0;D<p;D++)e.colW.push(c/Tt/p)}let T={rows:[]};return t.forEach((D,P)=>{const M=[];let O=0,I=0,Y=[];D.forEach(V=>{var ge,W,se,L;Y.push({_type:Et.tablecell,text:[],options:V.options}),V.options.margin&&V.options.margin[0]>=1?(!((ge=V.options)===null||ge===void 0)&&ge.margin&&V.options.margin[0]&&xt(V.options.margin[0])>O?O=xt(V.options.margin[0]):e!=null&&e.margin&&e.margin[0]&&xt(e.margin[0])>O&&(O=xt(e.margin[0])),!((W=V.options)===null||W===void 0)&&W.margin&&V.options.margin[2]&&xt(V.options.margin[2])>I?I=xt(V.options.margin[2]):e!=null&&e.margin&&e.margin[2]&&xt(e.margin[2])>I&&(I=xt(e.margin[2]))):(!((se=V.options)===null||se===void 0)&&se.margin&&V.options.margin[0]&&Xt(V.options.margin[0])>O?O=Xt(V.options.margin[0]):e!=null&&e.margin&&e.margin[0]&&Xt(e.margin[0])>O&&(O=Xt(e.margin[0])),!((L=V.options)===null||L===void 0)&&L.margin&&V.options.margin[2]&&Xt(V.options.margin[2])>I?I=Xt(V.options.margin[2]):e!=null&&e.margin&&e.margin[2]&&Xt(e.margin[2])>I&&(I=Xt(e.margin[2])))}),R(),h+=O+I,e.verbose&&P===0&&console.log(`| SLIDE [${u.length}]: emuSlideTabH ...... = ${(d/Tt).toFixed(1)} `),D.forEach((V,ge)=>{var W;const se={_type:Et.tablecell,_lines:null,_lineHeight:Xt((!((W=V.options)===null||W===void 0)&&W.fontSize?V.options.fontSize:e.fontSize?e.fontSize:hi)*(fS+(e.autoPageLineWeight?e.autoPageLineWeight:0))/100),text:[],options:V.options};se.options.rowspan&&(se._lineHeight=0),se.options.autoPageCharWeight=e.autoPageCharWeight?e.autoPageCharWeight:null;let L=e.colW[ge];V.options.colspan&&Array.isArray(e.colW)&&(L=e.colW.filter((ne,le)=>le>=ge&&le<le+V.options.colspan).reduce((ne,le)=>ne+le)),se._lines=yS(V,L),M.push(se)}),e.verbose&&console.log(`
|
|
44
|
+
| SLIDE [${u.length}]: ROW [${P}]: START...`);let K=0,q=0,Q=!1;for(;!Q;){const V=M[K];let ge=Y[K];M.forEach(L=>{L._lineHeight>=q&&(q=L._lineHeight)}),h+q>d&&(e.verbose&&(console.log(`
|
|
45
|
+
|-----------------------------------------------------------------------|`),console.log(`|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ${(h/Tt).toFixed(2)} + ${(V._lineHeight/Tt).toFixed(2)} > ${d/Tt}`),console.log(`|-----------------------------------------------------------------------|
|
|
46
46
|
|
|
47
|
-
`)),
|
|
47
|
+
`)),Y.length>0&&Y.map(ne=>ne.text.length).reduce((ne,le)=>ne+le)>0&&T.rows.push(Y),u.push(T),T={rows:[]},Y=[],D.forEach(ne=>Y.push({_type:Et.tablecell,text:[],options:ne.options})),R(),h+=O+I,e.verbose&&console.log(`| SLIDE [${u.length}]: emuSlideTabH ...... = ${(d/Tt).toFixed(1)} `),h=0,(e.addHeaderToEach||e.autoPageRepeatHeader)&&e._arrObjTabHeadRows&&e._arrObjTabHeadRows.forEach(ne=>{const le=[];let pe=0;ne.forEach(J=>{le.push(J),J._lineHeight>pe&&(pe=J._lineHeight)}),T.rows.push(le),h+=pe}),ge=Y[K]);const W=V._lines.shift();Array.isArray(ge.text)&&(W?ge.text=ge.text.concat(W):ge.text.length===0&&(ge.text=ge.text.concat({_type:Et.tablecell,text:""}))),K===M.length-1&&(h+=q),K=K<M.length-1?K+1:0,M.map(L=>L._lines.length).reduce((L,ne)=>L+ne)===0&&(Q=!0)}Y.length>0&&T.rows.push(Y),e.verbose&&console.log(`- SLIDE [${u.length}]: ROW [${P}]: ...COMPLETE ...... emuTabCurrH = ${(h/Tt).toFixed(2)} ( emuSlideTabH = ${(d/Tt).toFixed(2)} )`)}),u.push(T),e.verbose&&(console.log(`
|
|
48
48
|
|================================================|`),console.log(`| FINAL: tableRowSlides.length = ${u.length}`),u.forEach(D=>console.log(D)),console.log(`|================================================|
|
|
49
49
|
|
|
50
|
-
`)),u}function xS(t,e,n={},s){const i=n||{};i.slideMargin=i.slideMargin||i.slideMargin===0?i.slideMargin:.5;let c=i.w||t.presLayout.width;const d=[],h=[],p=[],u=[],A=[];let y=[.5,.5,.5,.5],x=0;if(!document.getElementById(e))throw new Error('tableToSlides: Table ID "'+e+'" does not exist!');s!=null&&s._margin?(Array.isArray(s._margin)?y=s._margin:isNaN(s._margin)||(y=[s._margin,s._margin,s._margin,s._margin]),i.slideMargin=y):i!=null&&i.slideMargin&&(Array.isArray(i.slideMargin)?y=i.slideMargin:isNaN(i.slideMargin)||(y=[i.slideMargin,i.slideMargin,i.slideMargin,i.slideMargin])),c=(i.w?Xt(i.w):t.presLayout.width)-Xt(y[1]+y[3]),i.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- `tableToSlides` ----------------------------------------------------|"),console.log(`| tableProps.h .................................... = ${i.h}`),console.log(`| tableProps.w .................................... = ${i.w}`),console.log(`| pptx.presLayout.width ........................... = ${(t.presLayout.width/Tt).toFixed(1)}`),console.log(`| pptx.presLayout.height .......................... = ${(t.presLayout.height/Tt).toFixed(1)}`),console.log(`| emuSlideTabW .................................... = ${(c/Tt).toFixed(1)}`));let S=document.querySelectorAll(`#${e} tr:first-child th`);S.length===0&&(S=document.querySelectorAll(`#${e} tr:first-child td`)),S.forEach(R=>{const T=R;if(T.getAttribute("colspan"))for(let D=0;D<Number(T.getAttribute("colspan"));D++)A.push(Math.round(T.offsetWidth/Number(T.getAttribute("colspan"))));else A.push(T.offsetWidth)}),A.forEach(R=>{x+=R}),A.forEach((R,T)=>{const D=Number((Number(c)*(R/x*100)/100/Tt).toFixed(2));let P=0;const M=document.querySelector(`#${e} thead tr:first-child th:nth-child(${T+1})`);M&&(P=Number(M.getAttribute("data-pptx-min-width")));const O=document.querySelector(`#${e} thead tr:first-child th:nth-child(${T+1})`);O&&(P=Number(O.getAttribute("data-pptx-width"))),u.push(P>D?P:D)}),i.verbose&&console.log(`| arrColW ......................................... = [${u.join(", ")}]`),["thead","tbody","tfoot"].forEach(R=>{document.querySelectorAll(`#${e} ${R} tr`).forEach(T=>{const D=T,P=[];switch(Array.from(D.cells).forEach(M=>{const O=window.getComputedStyle(M).getPropertyValue("color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");let I=window.getComputedStyle(M).getPropertyValue("background-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");(window.getComputedStyle(M).getPropertyValue("background-color")==="rgba(0, 0, 0, 0)"||window.getComputedStyle(M).getPropertyValue("transparent"))&&(I=["255","255","255"]);const V={align:null,bold:window.getComputedStyle(M).getPropertyValue("font-weight")==="bold"||Number(window.getComputedStyle(M).getPropertyValue("font-weight"))>=500,border:null,color:Qm(Number(O[0]),Number(O[1]),Number(O[2])),fill:{color:Qm(Number(I[0]),Number(I[1]),Number(I[2]))},fontFace:(window.getComputedStyle(M).getPropertyValue("font-family")||"").split(",")[0].replace(/"/g,"").replace("inherit","").replace("initial","")||null,fontSize:Number(window.getComputedStyle(M).getPropertyValue("font-size").replace(/[a-z]/gi,"")),margin:null,colspan:Number(M.getAttribute("colspan"))||null,rowspan:Number(M.getAttribute("rowspan"))||null,valign:null};if(["left","center","right","start","end"].includes(window.getComputedStyle(M).getPropertyValue("text-align"))){const K=window.getComputedStyle(M).getPropertyValue("text-align").replace("start","left").replace("end","right");V.align=K==="center"?"center":K==="left"?"left":K==="right"?"right":null}if(["top","middle","bottom"].includes(window.getComputedStyle(M).getPropertyValue("vertical-align"))){const K=window.getComputedStyle(M).getPropertyValue("vertical-align");V.valign=K==="top"?"top":K==="middle"?"middle":K==="bottom"?"bottom":null}window.getComputedStyle(M).getPropertyValue("padding-left")&&(V.margin=[0,0,0,0],["padding-top","padding-right","padding-bottom","padding-left"].forEach((q,Y)=>{V.margin[Y]=Math.round(Number(window.getComputedStyle(M).getPropertyValue(q).replace(/\D/gi,"")))})),(window.getComputedStyle(M).getPropertyValue("border-top-width")||window.getComputedStyle(M).getPropertyValue("border-right-width")||window.getComputedStyle(M).getPropertyValue("border-bottom-width")||window.getComputedStyle(M).getPropertyValue("border-left-width"))&&(V.border=[null,null,null,null],["top","right","bottom","left"].forEach((q,Y)=>{const X=Math.round(Number(window.getComputedStyle(M).getPropertyValue("border-"+q+"-width").replace("px","")));let he=[];he=window.getComputedStyle(M).getPropertyValue("border-"+q+"-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");const G=Qm(Number(he[0]),Number(he[1]),Number(he[2]));V.border[Y]={pt:X,color:G}})),P.push({_type:Et.tablecell,text:M.innerText,options:V})}),R){case"thead":d.push(P);break;case"tbody":h.push(P);break;case"tfoot":p.push(P);break;default:console.log(`table parsing: unexpected table part: ${R}`);break}})}),i._arrObjTabHeadRows=d||null,i.colW=u,ix([...d,...h,...p],i,t.presLayout,s).forEach((R,T)=>{const D=t.addSlide({masterName:i.masterSlideName||null});T===0&&(i.y=i.y||y[0]),T>0&&(i.y=i.autoPageSlideStartY||i.newSlideStartY||y[0]),i.verbose&&console.log(`| opts.autoPageSlideStartY: ${i.autoPageSlideStartY} / arrInchMargins[0]: ${y[0]} => opts.y = ${i.y}`),D.addTable(R.rows,{x:i.x||y[3],y:i.y,w:Number(c)/Tt,colW:u,autoPage:!1}),i.addImage&&(i.addImage.options=i.addImage.options||{},!i.addImage.image||!i.addImage.image.path&&!i.addImage.image.data?console.warn("Warning: tableToSlides.addImage requires either `path` or `data`"):D.addImage({path:i.addImage.image.path,data:i.addImage.image.data,x:i.addImage.options.x,y:i.addImage.options.y,w:i.addImage.options.w,h:i.addImage.options.h})),i.addShape&&D.addShape(i.addShape.shapeName,i.addShape.options||{}),i.addTable&&D.addTable(i.addTable.rows,i.addTable.options||{}),i.addText&&D.addText(i.addText.text,i.addText.options||{})})}let bS=0;function SS(t,e){t.bkgd&&(e.bkgd=t.bkgd),t.objects&&Array.isArray(t.objects)&&t.objects.length>0&&t.objects.forEach((n,s)=>{const i=Object.keys(n)[0],c=e;Io[i]&&i==="chart"?sx(c,n[i].type,n[i].data,n[i].opts):Io[i]&&i==="image"?ox(c,n[i]):Io[i]&&i==="line"?xg(c,jo.LINE,n[i]):Io[i]&&i==="rect"?xg(c,jo.RECTANGLE,n[i]):Io[i]&&i==="text"?rA(c,[{text:n[i].text}],n[i].options,!1):Io[i]&&i==="placeholder"&&(n[i].options.placeholder=n[i].options.name,delete n[i].options.name,n[i].options._placeholderType=n[i].options.type,delete n[i].options.type,n[i].options._placeholderIdx=100+s,rA(c,[{text:n[i].text}],n[i].options,!0))}),t.slideNumber&&typeof t.slideNumber=="object"&&(e._slideNumberProps=t.slideNumber)}function sx(t,e,n,s){var i;function c(y){!y||y.style==="none"||(y.size!==void 0&&(isNaN(Number(y.size))||y.size<=0)&&(console.warn("Warning: chart.gridLine.size must be greater than 0."),delete y.size),y.style&&!["solid","dash","dot"].includes(y.style)&&(console.warn("Warning: chart.gridLine.style options: `solid`, `dash`, `dot`."),delete y.style),y.cap&&!["flat","square","round"].includes(y.cap)&&(console.warn("Warning: chart.gridLine.cap options: `flat`, `square`, `round`."),delete y.cap))}const d=++bS,h={_type:null,text:null,options:null,chartRid:null};let p=null,u=[];Array.isArray(e)?(e.forEach(y=>{u=u.concat(y.data)}),p=n||s):(u=n,p=s),u.forEach((y,x)=>{y._dataIndex=x,y.labels!==void 0&&!Array.isArray(y.labels[0])&&(y.labels=[y.labels])});const A=p&&typeof p=="object"?p:{};if(A._type=e,A.x=typeof A.x<"u"&&A.x!=null&&!isNaN(Number(A.x))?A.x:1,A.y=typeof A.y<"u"&&A.y!=null&&!isNaN(Number(A.y))?A.y:1,A.w=A.w||"50%",A.h=A.h||"50%",A.objectName=A.objectName?_t(A.objectName):`Chart ${t._slideObjects.filter(y=>y._type===Et.chart).length}`,["bar","col"].includes(A.barDir||"")||(A.barDir="col"),A._type===Oe.AREA&&(["stacked","standard","percentStacked"].includes(A.barGrouping||"")||(A.barGrouping="standard")),A._type===Oe.BAR&&(["clustered","stacked","percentStacked"].includes(A.barGrouping||"")||(A.barGrouping="clustered")),A._type===Oe.BAR3D&&(["clustered","stacked","standard","percentStacked"].includes(A.barGrouping||"")||(A.barGrouping="standard")),!((i=A.barGrouping)===null||i===void 0)&&i.includes("tacked")&&(A.barGapWidthPct||(A.barGapWidthPct=50)),A.dataLabelPosition&&((A._type===Oe.AREA||A._type===Oe.BAR3D||A._type===Oe.DOUGHNUT||A._type===Oe.RADAR)&&delete A.dataLabelPosition,A._type===Oe.PIE&&(["bestFit","ctr","inEnd","outEnd"].includes(A.dataLabelPosition)||delete A.dataLabelPosition),(A._type===Oe.BUBBLE||A._type===Oe.BUBBLE3D||A._type===Oe.LINE||A._type===Oe.SCATTER)&&(["b","ctr","l","r","t"].includes(A.dataLabelPosition)||delete A.dataLabelPosition),A._type===Oe.BAR&&(["stacked","percentStacked"].includes(A.barGrouping||"")||["ctr","inBase","inEnd"].includes(A.dataLabelPosition)||delete A.dataLabelPosition,["clustered"].includes(A.barGrouping||"")||["ctr","inBase","inEnd","outEnd"].includes(A.dataLabelPosition)||delete A.dataLabelPosition)),A.dataLabelBkgrdColors=A.dataLabelBkgrdColors||!A.dataLabelBkgrdColors?A.dataLabelBkgrdColors:!1,["b","l","r","t","tr"].includes(A.legendPos||"")||(A.legendPos="r"),["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"].includes(A.bar3DShape||"")||(A.bar3DShape="box"),["circle","dash","diamond","dot","none","square","triangle"].includes(A.lineDataSymbol||"")||(A.lineDataSymbol="circle"),["gap","span"].includes(A.displayBlanksAs||"")||(A.displayBlanksAs="span"),["standard","marker","filled"].includes(A.radarStyle||"")||(A.radarStyle="standard"),A.lineDataSymbolSize=A.lineDataSymbolSize&&!isNaN(A.lineDataSymbolSize)?A.lineDataSymbolSize:6,A.lineDataSymbolLineSize=A.lineDataSymbolLineSize&&!isNaN(A.lineDataSymbolLineSize)?xt(A.lineDataSymbolLineSize):xt(.75),A.layout&&["x","y","w","h"].forEach(y=>{const x=A.layout[y];(isNaN(Number(x))||x<0||x>1)&&(console.warn("Warning: chart.layout."+y+" can only be 0-1"),delete A.layout[y])}),A.catGridLine=A.catGridLine||(A._type===Oe.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),A.valGridLine=A.valGridLine||(A._type===Oe.SCATTER?{color:"D9D9D9",size:1}:{}),A.serGridLine=A.serGridLine||(A._type===Oe.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),c(A.catGridLine),c(A.valGridLine),c(A.serGridLine),Og(A.shadow),A.showDataTable=A.showDataTable||!A.showDataTable?A.showDataTable:!1,A.showDataTableHorzBorder=A.showDataTableHorzBorder||!A.showDataTableHorzBorder?A.showDataTableHorzBorder:!0,A.showDataTableVertBorder=A.showDataTableVertBorder||!A.showDataTableVertBorder?A.showDataTableVertBorder:!0,A.showDataTableOutline=A.showDataTableOutline||!A.showDataTableOutline?A.showDataTableOutline:!0,A.showDataTableKeys=A.showDataTableKeys||!A.showDataTableKeys?A.showDataTableKeys:!0,A.showLabel=A.showLabel||!A.showLabel?A.showLabel:!1,A.showLegend=A.showLegend||!A.showLegend?A.showLegend:!1,A.showPercent=A.showPercent||!A.showPercent?A.showPercent:!0,A.showTitle=A.showTitle||!A.showTitle?A.showTitle:!1,A.showValue=A.showValue||!A.showValue?A.showValue:!1,A.showLeaderLines=A.showLeaderLines||!A.showLeaderLines?A.showLeaderLines:!1,A.catAxisLineShow=typeof A.catAxisLineShow<"u"?A.catAxisLineShow:!0,A.valAxisLineShow=typeof A.valAxisLineShow<"u"?A.valAxisLineShow:!0,A.serAxisLineShow=typeof A.serAxisLineShow<"u"?A.serAxisLineShow:!0,A.v3DRotX=!isNaN(A.v3DRotX)&&A.v3DRotX>=-90&&A.v3DRotX<=90?A.v3DRotX:30,A.v3DRotY=!isNaN(A.v3DRotY)&&A.v3DRotY>=0&&A.v3DRotY<=360?A.v3DRotY:30,A.v3DRAngAx=A.v3DRAngAx||!A.v3DRAngAx?A.v3DRAngAx:!0,A.v3DPerspective=!isNaN(A.v3DPerspective)&&A.v3DPerspective>=0&&A.v3DPerspective<=240?A.v3DPerspective:30,A.barGapWidthPct=!isNaN(A.barGapWidthPct)&&A.barGapWidthPct>=0&&A.barGapWidthPct<=1e3?A.barGapWidthPct:150,A.barGapDepthPct=!isNaN(A.barGapDepthPct)&&A.barGapDepthPct>=0&&A.barGapDepthPct<=1e3?A.barGapDepthPct:150,A.chartColors=Array.isArray(A.chartColors)?A.chartColors:A._type===Oe.PIE||A._type===Oe.DOUGHNUT?mS:ff,A.chartColorsOpacity=A.chartColorsOpacity&&!isNaN(A.chartColorsOpacity)?A.chartColorsOpacity:null,A.border=A.border&&typeof A.border=="object"?A.border:null,A.border&&(!A.border.pt||isNaN(A.border.pt))&&(A.border.pt=pu.pt),A.border&&(!A.border.color||typeof A.border.color!="string")&&(A.border.color=pu.color),A.plotArea=A.plotArea||{},A.plotArea.border=A.plotArea.border&&typeof A.plotArea.border=="object"?A.plotArea.border:null,A.plotArea.border&&(!A.plotArea.border.pt||isNaN(A.plotArea.border.pt))&&(A.plotArea.border.pt=pu.pt),A.plotArea.border&&(!A.plotArea.border.color||typeof A.plotArea.border.color!="string")&&(A.plotArea.border.color=pu.color),A.border&&(A.plotArea.border=A.border),A.plotArea.fill=A.plotArea.fill||{color:null,transparency:null},A.fill&&(A.plotArea.fill.color=A.fill),A.chartArea=A.chartArea||{},A.chartArea.border=A.chartArea.border&&typeof A.chartArea.border=="object"?A.chartArea.border:null,A.chartArea.border&&(A.chartArea.border={color:A.chartArea.border.color||pu.color,pt:A.chartArea.border.pt||pu.pt}),A.chartArea.roundedCorners=typeof A.chartArea.roundedCorners=="boolean"?A.chartArea.roundedCorners:!0,A.dataBorder=A.dataBorder&&typeof A.dataBorder=="object"?A.dataBorder:null,A.dataBorder&&(!A.dataBorder.pt||isNaN(A.dataBorder.pt))&&(A.dataBorder.pt=.75),A.dataBorder&&A.dataBorder.color){const y=typeof A.dataBorder.color=="string"&&A.dataBorder.color.length===6&&/^[0-9A-Fa-f]{6}$/.test(A.dataBorder.color),x=Object.values(nA).includes(A.dataBorder.color);!y&&!x&&(A.dataBorder.color="F9F9F9")}return!A.dataLabelFormatCode&&A._type===Oe.SCATTER&&(A.dataLabelFormatCode="General"),!A.dataLabelFormatCode&&(A._type===Oe.PIE||A._type===Oe.DOUGHNUT)&&(A.dataLabelFormatCode=A.showPercent?"0%":"General"),A.dataLabelFormatCode=A.dataLabelFormatCode&&typeof A.dataLabelFormatCode=="string"?A.dataLabelFormatCode:"#,##0",!A.dataLabelFormatScatter&&A._type===Oe.SCATTER&&(A.dataLabelFormatScatter="custom"),A.lineSize=typeof A.lineSize=="number"?A.lineSize:2,A.valAxisMajorUnit=typeof A.valAxisMajorUnit=="number"?A.valAxisMajorUnit:null,A._type===Oe.AREA||A._type===Oe.BAR||A._type===Oe.BAR3D||A._type===Oe.LINE?A.catAxisMultiLevelLabels=!!A.catAxisMultiLevelLabels:delete A.catAxisMultiLevelLabels,h._type="chart",h.options=A,h.chartRid=Js(t),t._relsChart.push({rId:Js(t),data:u,opts:A,type:A._type,globalId:d,fileName:`chart${d}.xml`,Target:`/ppt/charts/chart${d}.xml`}),t._slideObjects.push(h),h}function ox(t,e){const n={_type:null,text:null,options:null,image:null,imageRid:null,hyperlink:null},s=e.x||0,i=e.y||0,c=e.w||0,d=e.h||0,h=e.sizing||null,p=e.hyperlink||"",u=e.data||"",A=e.path||"";let y=Js(t);const x=e.objectName?_t(e.objectName):`Image ${t._slideObjects.filter(C=>C._type===Et.image).length}`;if(!A&&!u)return console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"),null;if(A&&typeof A!="string")return console.error(`ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ${String(A)}`),null;if(u&&typeof u!="string")return console.error(`ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ${String(u)}`),null;if(u&&typeof u=="string"&&!u.toLowerCase().includes("base64,"))return console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"),null;let S=(A.substring(A.lastIndexOf("/")+1).split("?")[0].split(".").pop().split("#")[0]||"png").toLowerCase();if(u&&/image\/(\w+);/.exec(u)&&/image\/(\w+);/.exec(u).length>0?S=/image\/(\w+);/.exec(u)[1]:u!=null&&u.toLowerCase().includes("image/svg+xml")&&(S="svg"),n._type=Et.image,n.image=A||"preencoded.png",n.options={x:s||0,y:i||0,w:c||1,h:d||1,altText:e.altText||"",rounding:typeof e.rounding=="boolean"?e.rounding:!1,sizing:h,placeholder:e.placeholder,rotate:e.rotate||0,flipV:e.flipV||!1,flipH:e.flipH||!1,transparency:e.transparency||0,objectName:x,shadow:Og(e.shadow)},S==="svg")t._relsMedia.push({path:A||u+"png",type:"image/png",extn:"png",data:u||"",rId:y,Target:`../media/image-${t._slideNum}-${t._relsMedia.length+1}.png`,isSvgPng:!0,svgSize:{w:Mt(n.options.w,"X",t._presLayout),h:Mt(n.options.h,"Y",t._presLayout)}}),n.imageRid=y,t._relsMedia.push({path:A||u,type:"image/svg+xml",extn:S,data:u||"",rId:y+1,Target:`../media/image-${t._slideNum}-${t._relsMedia.length+1}.${S}`}),n.imageRid=y+1;else{const C=t._relsMedia.filter(R=>R.path&&R.path===A&&R.type==="image/"+S&&!R.isDuplicate)[0];t._relsMedia.push({path:A||"preencoded."+S,type:"image/"+S,extn:S,data:u||"",rId:y,isDuplicate:!!(C!=null&&C.Target),Target:C!=null&&C.Target?C.Target:`../media/image-${t._slideNum}-${t._relsMedia.length+1}.${S}`}),n.imageRid=y}if(typeof p=="object"){if(!p.url&&!p.slide)throw new Error("ERROR: `hyperlink` option requires either: `url` or `slide`");y++,t._rels.push({type:Et.hyperlink,data:p.slide?"slide":"dummy",rId:y,Target:p.url||p.slide.toString()}),p._rId=y,n.hyperlink=p}t._slideObjects.push(n)}function CS(t,e){const n=e.x||0,s=e.y||0,i=e.w||2,c=e.h||2,d=e.data||"",h=e.link||"",p=e.path||"",u=e.type||"audio";let A="";const y=e.cover||gS,x=e.objectName?_t(e.objectName):`Media ${t._slideObjects.filter(C=>C._type===Et.media).length}`,S={_type:Et.media};if(!p&&!d&&u!=="online")throw new Error("addMedia() error: either `data` or `path` are required!");if(d&&!d.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')");if(!y.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `cover` value lacks a base64 header! Ex: 'data:image/png;base64,iV[...]')");if(u==="online"&&!h)throw new Error("addMedia() error: online videos require `link` value");if(A=e.extn||(d?d.split(";")[0].split("/")[1]:p.split(".").pop())||"mp3",S.mtype=u,S.media=p||"preencoded.mov",S.options={},S.options.x=n,S.options.y=s,S.options.w=i,S.options.h=c,S.options.objectName=x,u==="online"){const C=Js(t);t._relsMedia.push({path:p||"preencoded"+A,data:"dummy",type:"online",extn:A,rId:C,Target:h}),S.mediaRid=C,t._relsMedia.push({path:"preencoded.png",data:y,type:"image/png",extn:"png",rId:Js(t),Target:`../media/image-${t._slideNum}-${t._relsMedia.length+1}.png`})}else{const C=t._relsMedia.filter(T=>T.path&&T.path===p&&T.type===u+"/"+A&&!T.isDuplicate)[0],R=Js(t);t._relsMedia.push({path:p||"preencoded"+A,type:u+"/"+A,extn:A,data:d||"",rId:R,isDuplicate:!!(C!=null&&C.Target),Target:C!=null&&C.Target?C.Target:`../media/media-${t._slideNum}-${t._relsMedia.length+1}.${A}`}),S.mediaRid=R,t._relsMedia.push({path:p||"preencoded"+A,type:u+"/"+A,extn:A,data:d||"",rId:Js(t),isDuplicate:!!(C!=null&&C.Target),Target:C!=null&&C.Target?C.Target:`../media/media-${t._slideNum}-${t._relsMedia.length+0}.${A}`}),t._relsMedia.push({path:"preencoded.png",type:"image/png",extn:"png",data:y,rId:Js(t),Target:`../media/image-${t._slideNum}-${t._relsMedia.length+1}.png`})}t._slideObjects.push(S)}function wS(t,e){t._slideObjects.push({_type:Et.notes,text:[{text:e}]})}function xg(t,e,n){const s=typeof n=="object"?n:{};s.line=s.line||{type:"none"};const i={_type:Et.text,shape:e||jo.RECTANGLE,options:s,text:null};if(!e)throw new Error("Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`");const c={type:s.line.type||"solid",color:s.line.color||nx,transparency:s.line.transparency||0,width:s.line.width||1,dashType:s.line.dashType||"solid",beginArrowType:s.line.beginArrowType||null,endArrowType:s.line.endArrowType||null};if(typeof s.line=="object"&&s.line.type!=="none"&&(s.line=c),s.x=s.x||(s.x===0?0:1),s.y=s.y||(s.y===0?0:1),s.w=s.w||(s.w===0?0:1),s.h=s.h||(s.h===0?0:1),s.objectName=s.objectName?_t(s.objectName):`Shape ${t._slideObjects.filter(d=>d._type===Et.text).length}`,typeof s.line=="string"){const d=c;d.color=String(s.line),s.line=d}typeof s.lineSize=="number"&&(s.line.width=s.lineSize),typeof s.lineDash=="string"&&(s.line.dashType=s.lineDash),typeof s.lineHead=="string"&&(s.line.beginArrowType=s.lineHead),typeof s.lineTail=="string"&&(s.line.endArrowType=s.lineTail),Ru(t,i),t._slideObjects.push(i)}function _S(t,e,n,s,i,c,d){const h=[t],p=n&&typeof n=="object"?n:{};p.objectName=p.objectName?_t(p.objectName):`Table ${t._slideObjects.filter(x=>x._type===Et.table).length}`;{if(e===null||e.length===0||!Array.isArray(e))throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");if(!e[0]||!Array.isArray(e[0]))throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)")}const u=[];e.forEach(x=>{const S=[];Array.isArray(x)?x.forEach(C=>{const R={_type:Et.tablecell,text:"",options:typeof C=="object"&&C.options?C.options:{}};typeof C=="string"||typeof C=="number"?R.text=C.toString():C.text&&(typeof C.text=="string"||typeof C.text=="number"?R.text=C.text.toString():C.text&&(R.text=C.text),C.options&&typeof C.options=="object"&&(R.options=C.options)),R.options.border=R.options.border||p.border||[{type:"none"},{type:"none"},{type:"none"},{type:"none"}];const T=R.options.border;!Array.isArray(T)&&typeof T=="object"&&(R.options.border=[T,T,T,T]),R.options.border[0]||(R.options.border[0]={type:"none"}),R.options.border[1]||(R.options.border[1]={type:"none"}),R.options.border[2]||(R.options.border[2]={type:"none"}),R.options.border[3]||(R.options.border[3]={type:"none"}),[0,1,2,3].forEach(P=>{R.options.border[P]={type:R.options.border[P].type||hu.type,color:R.options.border[P].color||hu.color,pt:typeof R.options.border[P].pt=="number"?R.options.border[P].pt:hu.pt}}),S.push(R)}):(console.log("addTable: tableRows has a bad row. A row should be an array of cells. You provided:"),console.log(x)),u.push(S)}),p.x=Mt(p.x||(p.x===0?0:Tt/2),"X",i),p.y=Mt(p.y||(p.y===0?0:Tt/2),"Y",i),p.h&&(p.h=Mt(p.h,"Y",i)),p.fontSize=p.fontSize||hi,p.margin=p.margin===0||p.margin?p.margin:tx,typeof p.margin=="number"&&(p.margin=[Number(p.margin),Number(p.margin),Number(p.margin),Number(p.margin)]),JSON.stringify({arrRows:u}).indexOf("hyperlink")===-1&&(p.color||(p.color=p.color||wa)),typeof p.border=="string"?(console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"),p.border=null):Array.isArray(p.border)&&[0,1,2,3].forEach(x=>{p.border[x]=p.border[x]?{type:p.border[x].type||hu.type,color:p.border[x].color||hu.color,pt:p.border[x].pt||hu.pt}:{type:"none"}}),p.autoPage=typeof p.autoPage=="boolean"?p.autoPage:!1,p.autoPageRepeatHeader=typeof p.autoPageRepeatHeader=="boolean"?p.autoPageRepeatHeader:!1,p.autoPageHeaderRows=typeof p.autoPageHeaderRows<"u"&&!isNaN(Number(p.autoPageHeaderRows))?Number(p.autoPageHeaderRows):1,p.autoPageLineWeight=typeof p.autoPageLineWeight<"u"&&!isNaN(Number(p.autoPageLineWeight))?Number(p.autoPageLineWeight):0,p.autoPageLineWeight&&(p.autoPageLineWeight>1?p.autoPageLineWeight=1:p.autoPageLineWeight<-1&&(p.autoPageLineWeight=-1));let A=Ef;if(s&&typeof s._margin<"u"&&(Array.isArray(s._margin)?A=s._margin:isNaN(Number(s._margin))||(A=[Number(s._margin),Number(s._margin),Number(s._margin),Number(s._margin)])),p.colW){const x=u[0].reduce((S,C)=>{var R;return!((R=C==null?void 0:C.options)===null||R===void 0)&&R.colspan&&typeof C.options.colspan=="number"?S+=C.options.colspan:S+=1,S},0);typeof p.colW=="string"||typeof p.colW=="number"||p.colW&&Array.isArray(p.colW)&&p.colW.length===1&&x>1?(p.w=Math.floor(Number(p.colW)*x),p.colW=null):p.colW&&Array.isArray(p.colW)&&p.colW.length!==x&&(console.warn("addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths."),p.colW=null)}else p.w?p.w=Mt(p.w,"X",i):p.w=Math.floor(i._sizeW/Tt-A[1]-A[3]);p.x&&p.x<20&&(p.x=Xt(p.x)),p.y&&p.y<20&&(p.y=Xt(p.y)),p.w&&typeof p.w=="number"&&p.w<20&&(p.w=Xt(p.w)),p.h&&typeof p.h=="number"&&p.h<20&&(p.h=Xt(p.h)),u.forEach(x=>{x.forEach((S,C)=>{typeof S=="number"||typeof S=="string"?x[C]={_type:Et.tablecell,text:String(x[C]),options:p}:typeof S=="object"&&(typeof S.text=="number"?x[C].text=x[C].text.toString():(typeof S.text>"u"||S.text===null)&&(x[C].text=""),x[C].options=S.options||{},x[C]._type=Et.tablecell)})});const y=[];return p&&!p.autoPage?(Ru(t,u),t._slideObjects.push({_type:Et.table,arrTabRows:u,options:Object.assign({},p)})):(p.autoPageRepeatHeader&&(p._arrObjTabHeadRows=u.filter((x,S)=>S<p.autoPageHeaderRows)),ix(u,p,i,s).forEach((x,S)=>{d(t._slideNum+S)||h.push(c({masterName:(s==null?void 0:s._name)||null})),S>0&&(p.y=Xt(p.autoPageSlideStartY||p.newSlideStartY||A[0]));{const C=d(t._slideNum+S);p.autoPage=!1,Ru(C,x.rows),C.addTable(x.rows,Object.assign({},p)),S>0&&y.push(C)}})),y}function rA(t,e,n,s){const i={_type:s?Et.placeholder:Et.text,shape:(n==null?void 0:n.shape)||jo.RECTANGLE,text:!e||e.length===0?[{text:"",options:null}]:e,options:n||{}};function c(d){{if(d.placeholder||(d.color=d.color||i.options.color||t.color||wa),(d.placeholder||s)&&(d.bullet=d.bullet||!1),d.placeholder&&t._slideLayout&&t._slideLayout._slideObjects){const h=t._slideLayout._slideObjects.filter(p=>p._type==="placeholder"&&p.options&&p.options.placeholder&&p.options.placeholder===d.placeholder)[0];h!=null&&h.options&&(d=Object.assign(Object.assign({},d),h.options))}if(d.objectName=d.objectName?_t(d.objectName):`Text ${t._slideObjects.filter(h=>h._type===Et.text).length}`,d.shape===jo.LINE){const h={type:d.line.type||"solid",color:d.line.color||nx,transparency:d.line.transparency||0,width:d.line.width||1,dashType:d.line.dashType||"solid",beginArrowType:d.line.beginArrowType||null,endArrowType:d.line.endArrowType||null};if(typeof d.line=="object"&&(d.line=h),typeof d.line=="string"){const p=h;typeof d.line=="string"&&(p.color=d.line),d.line=p}typeof d.lineSize=="number"&&(d.line.width=d.lineSize),typeof d.lineDash=="string"&&(d.line.dashType=d.lineDash),typeof d.lineHead=="string"&&(d.line.beginArrowType=d.lineHead),typeof d.lineTail=="string"&&(d.line.endArrowType=d.lineTail)}d.line=d.line||{},d.lineSpacing=d.lineSpacing&&!isNaN(d.lineSpacing)?d.lineSpacing:null,d.lineSpacingMultiple=d.lineSpacingMultiple&&!isNaN(d.lineSpacingMultiple)?d.lineSpacingMultiple:null,d._bodyProp=d._bodyProp||{},d._bodyProp.autoFit=d.autoFit||!1,d._bodyProp.anchor=d.placeholder?null:Su.ctr,d._bodyProp.vert=d.vert||null,d._bodyProp.wrap=typeof d.wrap=="boolean"?d.wrap:!0,(d.inset&&!isNaN(Number(d.inset))||d.inset===0)&&(d._bodyProp.lIns=Xt(d.inset),d._bodyProp.rIns=Xt(d.inset),d._bodyProp.tIns=Xt(d.inset),d._bodyProp.bIns=Xt(d.inset)),typeof d.underline=="boolean"&&d.underline===!0&&(d.underline={style:"sng"})}return(d.align||"").toLowerCase().indexOf("c")===0?d._bodyProp.align=bu.center:(d.align||"").toLowerCase().indexOf("l")===0?d._bodyProp.align=bu.left:(d.align||"").toLowerCase().indexOf("r")===0?d._bodyProp.align=bu.right:(d.align||"").toLowerCase().indexOf("j")===0&&(d._bodyProp.align=bu.justify),(d.valign||"").toLowerCase().indexOf("b")===0?d._bodyProp.anchor=Su.b:(d.valign||"").toLowerCase().indexOf("m")===0?d._bodyProp.anchor=Su.ctr:(d.valign||"").toLowerCase().indexOf("t")===0&&(d._bodyProp.anchor=Su.t),Og(d.shadow),d}i.options=c(i.options),i.text.forEach(d=>d.options=c(d.options||{})),Ru(t,i.text||""),t._slideObjects.push(i)}function ES(t){(t._slideLayout._slideObjects||[]).forEach(e=>{e._type===Et.placeholder&&t._slideObjects.filter(n=>n.options&&n.options.placeholder===e.options.placeholder).length===0&&rA(t,[{text:""}],e.options,!1)})}function lx(t,e){var n;if(e.bkgd&&(e.background||(e.background={}),typeof e.bkgd=="string"?e.background.color=e.bkgd:(e.bkgd.data&&(e.background.data=e.bkgd.data),e.bkgd.path&&(e.background.path=e.bkgd.path),e.bkgd.src&&(e.background.path=e.bkgd.src))),!((n=e.background)===null||n===void 0)&&n.fill&&(e.background.color=e.background.fill),t&&(t.path||t.data)){t.path=t.path||"preencoded.png";let s=(t.path.split(".").pop()||"png").split("?")[0];s==="jpg"&&(s="jpeg"),e._relsMedia=e._relsMedia||[];const i=e._relsMedia.length+1;e._relsMedia.push({path:t.path,type:Et.image,extn:s,data:t.data||null,rId:i,Target:`../media/${(e._name||"").replace(/\s+/gi,"-")}-image-${e._relsMedia.length+1}.${s}`}),e._bkgdImgRid=i}}function Ru(t,e,n){let s=[];typeof e=="string"||typeof e=="number"||(Array.isArray(e)?s=e:typeof e=="object"&&(s=[e]),s.forEach((i,c)=>{if(n&&n[c]&&n[c].hyperlink&&(i.options=Object.assign(Object.assign({},i.options),n[c])),Array.isArray(i)){const d=[];i.forEach(h=>{h.options&&!h.text.options&&d.push(h.options)}),Ru(t,i,d)}else if(Array.isArray(i.text))Ru(t,i.text,n&&n[c]?[n[c]]:void 0);else if(i&&typeof i=="object"&&i.options&&i.options.hyperlink&&!i.options.hyperlink._rId)if(typeof i.options.hyperlink!="object")console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` ");else if(!i.options.hyperlink.url&&!i.options.hyperlink.slide)console.log("ERROR: 'hyperlink requires either: `url` or `slide`'");else{const d=Js(t);t._rels.push({type:Et.hyperlink,data:i.options.hyperlink.slide?"slide":"dummy",rId:d,Target:_t(i.options.hyperlink.url)||i.options.hyperlink.slide.toString()}),i.options.hyperlink._rId=d}else i&&typeof i=="object"&&i.options&&i.options.hyperlink&&i.options.hyperlink._rId&&t._rels.filter(d=>d.rId===i.options.hyperlink._rId).length===0&&t._rels.push({type:Et.hyperlink,data:i.options.hyperlink.slide?"slide":"dummy",rId:i.options.hyperlink._rId,Target:_t(i.options.hyperlink.url)||i.options.hyperlink.slide.toString()})}))}class RS{constructor(e){var n;this.addSlide=e.addSlide,this.getSlide=e.getSlide,this._name=`Slide ${e.slideNumber}`,this._presLayout=e.presLayout,this._rId=e.slideRId,this._rels=[],this._relsChart=[],this._relsMedia=[],this._setSlideNum=e.setSlideNum,this._slideId=e.slideId,this._slideLayout=e.slideLayout||null,this._slideNum=e.slideNumber,this._slideObjects=[],this._slideNumberProps=!((n=this._slideLayout)===null||n===void 0)&&n._slideNumberProps?this._slideLayout._slideNumberProps:null}set bkgd(e){this._bkgd=e,(!this._background||!this._background.color)&&(this._background||(this._background={}),typeof e=="string"&&(this._background.color=e))}get bkgd(){return this._bkgd}set background(e){this._background=e,e&&lx(e,this)}get background(){return this._background}set color(e){this._color=e}get color(){return this._color}set hidden(e){this._hidden=e}get hidden(){return this._hidden}set slideNumber(e){this._slideNumberProps=e,this._setSlideNum(e)}get slideNumber(){return this._slideNumberProps}get newAutoPagedSlides(){return this._newAutoPagedSlides}addChart(e,n,s){const i=s||{};return i._type=e,sx(this,e,n,s),this}addImage(e){return ox(this,e),this}addMedia(e){return CS(this,e),this}addNotes(e){return wS(this,e),this}addShape(e,n){return xg(this,e,n),this}addTable(e,n){return this._newAutoPagedSlides=_S(this,e,n,this._slideLayout,this._presLayout,this.addSlide,this.getSlide),this}addText(e,n){return rA(this,typeof e=="string"||typeof e=="number"?[{text:e,options:n}]:e,n,!1),this}}function TS(t,e){return Ha(this,void 0,void 0,function*(){const n=t.data;return yield new Promise((s,i)=>{var c,d;const h=new ex,p=(n.length-1)*2+1,u=((d=(c=n[0])===null||c===void 0?void 0:c.labels)===null||d===void 0?void 0:d.length)>1;h.folder("_rels"),h.folder("docProps"),h.folder("xl/_rels"),h.folder("xl/tables"),h.folder("xl/theme"),h.folder("xl/worksheets"),h.folder("xl/worksheets/_rels"),h.file("[Content_Types].xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"> <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/> <Default Extension="xml" ContentType="application/xml"/> <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/> <Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/> <Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/> <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/> <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/> <Override PartName="/xl/tables/table1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"/> <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/> <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>
|
|
50
|
+
`)),u}function xS(t,e,n={},s){const i=n||{};i.slideMargin=i.slideMargin||i.slideMargin===0?i.slideMargin:.5;let c=i.w||t.presLayout.width;const d=[],h=[],p=[],u=[],A=[];let y=[.5,.5,.5,.5],x=0;if(!document.getElementById(e))throw new Error('tableToSlides: Table ID "'+e+'" does not exist!');s!=null&&s._margin?(Array.isArray(s._margin)?y=s._margin:isNaN(s._margin)||(y=[s._margin,s._margin,s._margin,s._margin]),i.slideMargin=y):i!=null&&i.slideMargin&&(Array.isArray(i.slideMargin)?y=i.slideMargin:isNaN(i.slideMargin)||(y=[i.slideMargin,i.slideMargin,i.slideMargin,i.slideMargin])),c=(i.w?Xt(i.w):t.presLayout.width)-Xt(y[1]+y[3]),i.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- `tableToSlides` ----------------------------------------------------|"),console.log(`| tableProps.h .................................... = ${i.h}`),console.log(`| tableProps.w .................................... = ${i.w}`),console.log(`| pptx.presLayout.width ........................... = ${(t.presLayout.width/Tt).toFixed(1)}`),console.log(`| pptx.presLayout.height .......................... = ${(t.presLayout.height/Tt).toFixed(1)}`),console.log(`| emuSlideTabW .................................... = ${(c/Tt).toFixed(1)}`));let S=document.querySelectorAll(`#${e} tr:first-child th`);S.length===0&&(S=document.querySelectorAll(`#${e} tr:first-child td`)),S.forEach(R=>{const T=R;if(T.getAttribute("colspan"))for(let D=0;D<Number(T.getAttribute("colspan"));D++)A.push(Math.round(T.offsetWidth/Number(T.getAttribute("colspan"))));else A.push(T.offsetWidth)}),A.forEach(R=>{x+=R}),A.forEach((R,T)=>{const D=Number((Number(c)*(R/x*100)/100/Tt).toFixed(2));let P=0;const M=document.querySelector(`#${e} thead tr:first-child th:nth-child(${T+1})`);M&&(P=Number(M.getAttribute("data-pptx-min-width")));const O=document.querySelector(`#${e} thead tr:first-child th:nth-child(${T+1})`);O&&(P=Number(O.getAttribute("data-pptx-width"))),u.push(P>D?P:D)}),i.verbose&&console.log(`| arrColW ......................................... = [${u.join(", ")}]`),["thead","tbody","tfoot"].forEach(R=>{document.querySelectorAll(`#${e} ${R} tr`).forEach(T=>{const D=T,P=[];switch(Array.from(D.cells).forEach(M=>{const O=window.getComputedStyle(M).getPropertyValue("color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");let I=window.getComputedStyle(M).getPropertyValue("background-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");(window.getComputedStyle(M).getPropertyValue("background-color")==="rgba(0, 0, 0, 0)"||window.getComputedStyle(M).getPropertyValue("transparent"))&&(I=["255","255","255"]);const Y={align:null,bold:window.getComputedStyle(M).getPropertyValue("font-weight")==="bold"||Number(window.getComputedStyle(M).getPropertyValue("font-weight"))>=500,border:null,color:Qm(Number(O[0]),Number(O[1]),Number(O[2])),fill:{color:Qm(Number(I[0]),Number(I[1]),Number(I[2]))},fontFace:(window.getComputedStyle(M).getPropertyValue("font-family")||"").split(",")[0].replace(/"/g,"").replace("inherit","").replace("initial","")||null,fontSize:Number(window.getComputedStyle(M).getPropertyValue("font-size").replace(/[a-z]/gi,"")),margin:null,colspan:Number(M.getAttribute("colspan"))||null,rowspan:Number(M.getAttribute("rowspan"))||null,valign:null};if(["left","center","right","start","end"].includes(window.getComputedStyle(M).getPropertyValue("text-align"))){const K=window.getComputedStyle(M).getPropertyValue("text-align").replace("start","left").replace("end","right");Y.align=K==="center"?"center":K==="left"?"left":K==="right"?"right":null}if(["top","middle","bottom"].includes(window.getComputedStyle(M).getPropertyValue("vertical-align"))){const K=window.getComputedStyle(M).getPropertyValue("vertical-align");Y.valign=K==="top"?"top":K==="middle"?"middle":K==="bottom"?"bottom":null}window.getComputedStyle(M).getPropertyValue("padding-left")&&(Y.margin=[0,0,0,0],["padding-top","padding-right","padding-bottom","padding-left"].forEach((q,Q)=>{Y.margin[Q]=Math.round(Number(window.getComputedStyle(M).getPropertyValue(q).replace(/\D/gi,"")))})),(window.getComputedStyle(M).getPropertyValue("border-top-width")||window.getComputedStyle(M).getPropertyValue("border-right-width")||window.getComputedStyle(M).getPropertyValue("border-bottom-width")||window.getComputedStyle(M).getPropertyValue("border-left-width"))&&(Y.border=[null,null,null,null],["top","right","bottom","left"].forEach((q,Q)=>{const V=Math.round(Number(window.getComputedStyle(M).getPropertyValue("border-"+q+"-width").replace("px","")));let ge=[];ge=window.getComputedStyle(M).getPropertyValue("border-"+q+"-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");const W=Qm(Number(ge[0]),Number(ge[1]),Number(ge[2]));Y.border[Q]={pt:V,color:W}})),P.push({_type:Et.tablecell,text:M.innerText,options:Y})}),R){case"thead":d.push(P);break;case"tbody":h.push(P);break;case"tfoot":p.push(P);break;default:console.log(`table parsing: unexpected table part: ${R}`);break}})}),i._arrObjTabHeadRows=d||null,i.colW=u,ix([...d,...h,...p],i,t.presLayout,s).forEach((R,T)=>{const D=t.addSlide({masterName:i.masterSlideName||null});T===0&&(i.y=i.y||y[0]),T>0&&(i.y=i.autoPageSlideStartY||i.newSlideStartY||y[0]),i.verbose&&console.log(`| opts.autoPageSlideStartY: ${i.autoPageSlideStartY} / arrInchMargins[0]: ${y[0]} => opts.y = ${i.y}`),D.addTable(R.rows,{x:i.x||y[3],y:i.y,w:Number(c)/Tt,colW:u,autoPage:!1}),i.addImage&&(i.addImage.options=i.addImage.options||{},!i.addImage.image||!i.addImage.image.path&&!i.addImage.image.data?console.warn("Warning: tableToSlides.addImage requires either `path` or `data`"):D.addImage({path:i.addImage.image.path,data:i.addImage.image.data,x:i.addImage.options.x,y:i.addImage.options.y,w:i.addImage.options.w,h:i.addImage.options.h})),i.addShape&&D.addShape(i.addShape.shapeName,i.addShape.options||{}),i.addTable&&D.addTable(i.addTable.rows,i.addTable.options||{}),i.addText&&D.addText(i.addText.text,i.addText.options||{})})}let bS=0;function SS(t,e){t.bkgd&&(e.bkgd=t.bkgd),t.objects&&Array.isArray(t.objects)&&t.objects.length>0&&t.objects.forEach((n,s)=>{const i=Object.keys(n)[0],c=e;Io[i]&&i==="chart"?sx(c,n[i].type,n[i].data,n[i].opts):Io[i]&&i==="image"?ox(c,n[i]):Io[i]&&i==="line"?xg(c,jo.LINE,n[i]):Io[i]&&i==="rect"?xg(c,jo.RECTANGLE,n[i]):Io[i]&&i==="text"?rA(c,[{text:n[i].text}],n[i].options,!1):Io[i]&&i==="placeholder"&&(n[i].options.placeholder=n[i].options.name,delete n[i].options.name,n[i].options._placeholderType=n[i].options.type,delete n[i].options.type,n[i].options._placeholderIdx=100+s,rA(c,[{text:n[i].text}],n[i].options,!0))}),t.slideNumber&&typeof t.slideNumber=="object"&&(e._slideNumberProps=t.slideNumber)}function sx(t,e,n,s){var i;function c(y){!y||y.style==="none"||(y.size!==void 0&&(isNaN(Number(y.size))||y.size<=0)&&(console.warn("Warning: chart.gridLine.size must be greater than 0."),delete y.size),y.style&&!["solid","dash","dot"].includes(y.style)&&(console.warn("Warning: chart.gridLine.style options: `solid`, `dash`, `dot`."),delete y.style),y.cap&&!["flat","square","round"].includes(y.cap)&&(console.warn("Warning: chart.gridLine.cap options: `flat`, `square`, `round`."),delete y.cap))}const d=++bS,h={_type:null,text:null,options:null,chartRid:null};let p=null,u=[];Array.isArray(e)?(e.forEach(y=>{u=u.concat(y.data)}),p=n||s):(u=n,p=s),u.forEach((y,x)=>{y._dataIndex=x,y.labels!==void 0&&!Array.isArray(y.labels[0])&&(y.labels=[y.labels])});const A=p&&typeof p=="object"?p:{};if(A._type=e,A.x=typeof A.x<"u"&&A.x!=null&&!isNaN(Number(A.x))?A.x:1,A.y=typeof A.y<"u"&&A.y!=null&&!isNaN(Number(A.y))?A.y:1,A.w=A.w||"50%",A.h=A.h||"50%",A.objectName=A.objectName?_t(A.objectName):`Chart ${t._slideObjects.filter(y=>y._type===Et.chart).length}`,["bar","col"].includes(A.barDir||"")||(A.barDir="col"),A._type===Oe.AREA&&(["stacked","standard","percentStacked"].includes(A.barGrouping||"")||(A.barGrouping="standard")),A._type===Oe.BAR&&(["clustered","stacked","percentStacked"].includes(A.barGrouping||"")||(A.barGrouping="clustered")),A._type===Oe.BAR3D&&(["clustered","stacked","standard","percentStacked"].includes(A.barGrouping||"")||(A.barGrouping="standard")),!((i=A.barGrouping)===null||i===void 0)&&i.includes("tacked")&&(A.barGapWidthPct||(A.barGapWidthPct=50)),A.dataLabelPosition&&((A._type===Oe.AREA||A._type===Oe.BAR3D||A._type===Oe.DOUGHNUT||A._type===Oe.RADAR)&&delete A.dataLabelPosition,A._type===Oe.PIE&&(["bestFit","ctr","inEnd","outEnd"].includes(A.dataLabelPosition)||delete A.dataLabelPosition),(A._type===Oe.BUBBLE||A._type===Oe.BUBBLE3D||A._type===Oe.LINE||A._type===Oe.SCATTER)&&(["b","ctr","l","r","t"].includes(A.dataLabelPosition)||delete A.dataLabelPosition),A._type===Oe.BAR&&(["stacked","percentStacked"].includes(A.barGrouping||"")||["ctr","inBase","inEnd"].includes(A.dataLabelPosition)||delete A.dataLabelPosition,["clustered"].includes(A.barGrouping||"")||["ctr","inBase","inEnd","outEnd"].includes(A.dataLabelPosition)||delete A.dataLabelPosition)),A.dataLabelBkgrdColors=A.dataLabelBkgrdColors||!A.dataLabelBkgrdColors?A.dataLabelBkgrdColors:!1,["b","l","r","t","tr"].includes(A.legendPos||"")||(A.legendPos="r"),["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"].includes(A.bar3DShape||"")||(A.bar3DShape="box"),["circle","dash","diamond","dot","none","square","triangle"].includes(A.lineDataSymbol||"")||(A.lineDataSymbol="circle"),["gap","span"].includes(A.displayBlanksAs||"")||(A.displayBlanksAs="span"),["standard","marker","filled"].includes(A.radarStyle||"")||(A.radarStyle="standard"),A.lineDataSymbolSize=A.lineDataSymbolSize&&!isNaN(A.lineDataSymbolSize)?A.lineDataSymbolSize:6,A.lineDataSymbolLineSize=A.lineDataSymbolLineSize&&!isNaN(A.lineDataSymbolLineSize)?xt(A.lineDataSymbolLineSize):xt(.75),A.layout&&["x","y","w","h"].forEach(y=>{const x=A.layout[y];(isNaN(Number(x))||x<0||x>1)&&(console.warn("Warning: chart.layout."+y+" can only be 0-1"),delete A.layout[y])}),A.catGridLine=A.catGridLine||(A._type===Oe.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),A.valGridLine=A.valGridLine||(A._type===Oe.SCATTER?{color:"D9D9D9",size:1}:{}),A.serGridLine=A.serGridLine||(A._type===Oe.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),c(A.catGridLine),c(A.valGridLine),c(A.serGridLine),Og(A.shadow),A.showDataTable=A.showDataTable||!A.showDataTable?A.showDataTable:!1,A.showDataTableHorzBorder=A.showDataTableHorzBorder||!A.showDataTableHorzBorder?A.showDataTableHorzBorder:!0,A.showDataTableVertBorder=A.showDataTableVertBorder||!A.showDataTableVertBorder?A.showDataTableVertBorder:!0,A.showDataTableOutline=A.showDataTableOutline||!A.showDataTableOutline?A.showDataTableOutline:!0,A.showDataTableKeys=A.showDataTableKeys||!A.showDataTableKeys?A.showDataTableKeys:!0,A.showLabel=A.showLabel||!A.showLabel?A.showLabel:!1,A.showLegend=A.showLegend||!A.showLegend?A.showLegend:!1,A.showPercent=A.showPercent||!A.showPercent?A.showPercent:!0,A.showTitle=A.showTitle||!A.showTitle?A.showTitle:!1,A.showValue=A.showValue||!A.showValue?A.showValue:!1,A.showLeaderLines=A.showLeaderLines||!A.showLeaderLines?A.showLeaderLines:!1,A.catAxisLineShow=typeof A.catAxisLineShow<"u"?A.catAxisLineShow:!0,A.valAxisLineShow=typeof A.valAxisLineShow<"u"?A.valAxisLineShow:!0,A.serAxisLineShow=typeof A.serAxisLineShow<"u"?A.serAxisLineShow:!0,A.v3DRotX=!isNaN(A.v3DRotX)&&A.v3DRotX>=-90&&A.v3DRotX<=90?A.v3DRotX:30,A.v3DRotY=!isNaN(A.v3DRotY)&&A.v3DRotY>=0&&A.v3DRotY<=360?A.v3DRotY:30,A.v3DRAngAx=A.v3DRAngAx||!A.v3DRAngAx?A.v3DRAngAx:!0,A.v3DPerspective=!isNaN(A.v3DPerspective)&&A.v3DPerspective>=0&&A.v3DPerspective<=240?A.v3DPerspective:30,A.barGapWidthPct=!isNaN(A.barGapWidthPct)&&A.barGapWidthPct>=0&&A.barGapWidthPct<=1e3?A.barGapWidthPct:150,A.barGapDepthPct=!isNaN(A.barGapDepthPct)&&A.barGapDepthPct>=0&&A.barGapDepthPct<=1e3?A.barGapDepthPct:150,A.chartColors=Array.isArray(A.chartColors)?A.chartColors:A._type===Oe.PIE||A._type===Oe.DOUGHNUT?mS:ff,A.chartColorsOpacity=A.chartColorsOpacity&&!isNaN(A.chartColorsOpacity)?A.chartColorsOpacity:null,A.border=A.border&&typeof A.border=="object"?A.border:null,A.border&&(!A.border.pt||isNaN(A.border.pt))&&(A.border.pt=pu.pt),A.border&&(!A.border.color||typeof A.border.color!="string")&&(A.border.color=pu.color),A.plotArea=A.plotArea||{},A.plotArea.border=A.plotArea.border&&typeof A.plotArea.border=="object"?A.plotArea.border:null,A.plotArea.border&&(!A.plotArea.border.pt||isNaN(A.plotArea.border.pt))&&(A.plotArea.border.pt=pu.pt),A.plotArea.border&&(!A.plotArea.border.color||typeof A.plotArea.border.color!="string")&&(A.plotArea.border.color=pu.color),A.border&&(A.plotArea.border=A.border),A.plotArea.fill=A.plotArea.fill||{color:null,transparency:null},A.fill&&(A.plotArea.fill.color=A.fill),A.chartArea=A.chartArea||{},A.chartArea.border=A.chartArea.border&&typeof A.chartArea.border=="object"?A.chartArea.border:null,A.chartArea.border&&(A.chartArea.border={color:A.chartArea.border.color||pu.color,pt:A.chartArea.border.pt||pu.pt}),A.chartArea.roundedCorners=typeof A.chartArea.roundedCorners=="boolean"?A.chartArea.roundedCorners:!0,A.dataBorder=A.dataBorder&&typeof A.dataBorder=="object"?A.dataBorder:null,A.dataBorder&&(!A.dataBorder.pt||isNaN(A.dataBorder.pt))&&(A.dataBorder.pt=.75),A.dataBorder&&A.dataBorder.color){const y=typeof A.dataBorder.color=="string"&&A.dataBorder.color.length===6&&/^[0-9A-Fa-f]{6}$/.test(A.dataBorder.color),x=Object.values(nA).includes(A.dataBorder.color);!y&&!x&&(A.dataBorder.color="F9F9F9")}return!A.dataLabelFormatCode&&A._type===Oe.SCATTER&&(A.dataLabelFormatCode="General"),!A.dataLabelFormatCode&&(A._type===Oe.PIE||A._type===Oe.DOUGHNUT)&&(A.dataLabelFormatCode=A.showPercent?"0%":"General"),A.dataLabelFormatCode=A.dataLabelFormatCode&&typeof A.dataLabelFormatCode=="string"?A.dataLabelFormatCode:"#,##0",!A.dataLabelFormatScatter&&A._type===Oe.SCATTER&&(A.dataLabelFormatScatter="custom"),A.lineSize=typeof A.lineSize=="number"?A.lineSize:2,A.valAxisMajorUnit=typeof A.valAxisMajorUnit=="number"?A.valAxisMajorUnit:null,A._type===Oe.AREA||A._type===Oe.BAR||A._type===Oe.BAR3D||A._type===Oe.LINE?A.catAxisMultiLevelLabels=!!A.catAxisMultiLevelLabels:delete A.catAxisMultiLevelLabels,h._type="chart",h.options=A,h.chartRid=Js(t),t._relsChart.push({rId:Js(t),data:u,opts:A,type:A._type,globalId:d,fileName:`chart${d}.xml`,Target:`/ppt/charts/chart${d}.xml`}),t._slideObjects.push(h),h}function ox(t,e){const n={_type:null,text:null,options:null,image:null,imageRid:null,hyperlink:null},s=e.x||0,i=e.y||0,c=e.w||0,d=e.h||0,h=e.sizing||null,p=e.hyperlink||"",u=e.data||"",A=e.path||"";let y=Js(t);const x=e.objectName?_t(e.objectName):`Image ${t._slideObjects.filter(C=>C._type===Et.image).length}`;if(!A&&!u)return console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"),null;if(A&&typeof A!="string")return console.error(`ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ${String(A)}`),null;if(u&&typeof u!="string")return console.error(`ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ${String(u)}`),null;if(u&&typeof u=="string"&&!u.toLowerCase().includes("base64,"))return console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"),null;let S=(A.substring(A.lastIndexOf("/")+1).split("?")[0].split(".").pop().split("#")[0]||"png").toLowerCase();if(u&&/image\/(\w+);/.exec(u)&&/image\/(\w+);/.exec(u).length>0?S=/image\/(\w+);/.exec(u)[1]:u!=null&&u.toLowerCase().includes("image/svg+xml")&&(S="svg"),n._type=Et.image,n.image=A||"preencoded.png",n.options={x:s||0,y:i||0,w:c||1,h:d||1,altText:e.altText||"",rounding:typeof e.rounding=="boolean"?e.rounding:!1,sizing:h,placeholder:e.placeholder,rotate:e.rotate||0,flipV:e.flipV||!1,flipH:e.flipH||!1,transparency:e.transparency||0,objectName:x,shadow:Og(e.shadow)},S==="svg")t._relsMedia.push({path:A||u+"png",type:"image/png",extn:"png",data:u||"",rId:y,Target:`../media/image-${t._slideNum}-${t._relsMedia.length+1}.png`,isSvgPng:!0,svgSize:{w:Mt(n.options.w,"X",t._presLayout),h:Mt(n.options.h,"Y",t._presLayout)}}),n.imageRid=y,t._relsMedia.push({path:A||u,type:"image/svg+xml",extn:S,data:u||"",rId:y+1,Target:`../media/image-${t._slideNum}-${t._relsMedia.length+1}.${S}`}),n.imageRid=y+1;else{const C=t._relsMedia.filter(R=>R.path&&R.path===A&&R.type==="image/"+S&&!R.isDuplicate)[0];t._relsMedia.push({path:A||"preencoded."+S,type:"image/"+S,extn:S,data:u||"",rId:y,isDuplicate:!!(C!=null&&C.Target),Target:C!=null&&C.Target?C.Target:`../media/image-${t._slideNum}-${t._relsMedia.length+1}.${S}`}),n.imageRid=y}if(typeof p=="object"){if(!p.url&&!p.slide)throw new Error("ERROR: `hyperlink` option requires either: `url` or `slide`");y++,t._rels.push({type:Et.hyperlink,data:p.slide?"slide":"dummy",rId:y,Target:p.url||p.slide.toString()}),p._rId=y,n.hyperlink=p}t._slideObjects.push(n)}function CS(t,e){const n=e.x||0,s=e.y||0,i=e.w||2,c=e.h||2,d=e.data||"",h=e.link||"",p=e.path||"",u=e.type||"audio";let A="";const y=e.cover||gS,x=e.objectName?_t(e.objectName):`Media ${t._slideObjects.filter(C=>C._type===Et.media).length}`,S={_type:Et.media};if(!p&&!d&&u!=="online")throw new Error("addMedia() error: either `data` or `path` are required!");if(d&&!d.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')");if(!y.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `cover` value lacks a base64 header! Ex: 'data:image/png;base64,iV[...]')");if(u==="online"&&!h)throw new Error("addMedia() error: online videos require `link` value");if(A=e.extn||(d?d.split(";")[0].split("/")[1]:p.split(".").pop())||"mp3",S.mtype=u,S.media=p||"preencoded.mov",S.options={},S.options.x=n,S.options.y=s,S.options.w=i,S.options.h=c,S.options.objectName=x,u==="online"){const C=Js(t);t._relsMedia.push({path:p||"preencoded"+A,data:"dummy",type:"online",extn:A,rId:C,Target:h}),S.mediaRid=C,t._relsMedia.push({path:"preencoded.png",data:y,type:"image/png",extn:"png",rId:Js(t),Target:`../media/image-${t._slideNum}-${t._relsMedia.length+1}.png`})}else{const C=t._relsMedia.filter(T=>T.path&&T.path===p&&T.type===u+"/"+A&&!T.isDuplicate)[0],R=Js(t);t._relsMedia.push({path:p||"preencoded"+A,type:u+"/"+A,extn:A,data:d||"",rId:R,isDuplicate:!!(C!=null&&C.Target),Target:C!=null&&C.Target?C.Target:`../media/media-${t._slideNum}-${t._relsMedia.length+1}.${A}`}),S.mediaRid=R,t._relsMedia.push({path:p||"preencoded"+A,type:u+"/"+A,extn:A,data:d||"",rId:Js(t),isDuplicate:!!(C!=null&&C.Target),Target:C!=null&&C.Target?C.Target:`../media/media-${t._slideNum}-${t._relsMedia.length+0}.${A}`}),t._relsMedia.push({path:"preencoded.png",type:"image/png",extn:"png",data:y,rId:Js(t),Target:`../media/image-${t._slideNum}-${t._relsMedia.length+1}.png`})}t._slideObjects.push(S)}function wS(t,e){t._slideObjects.push({_type:Et.notes,text:[{text:e}]})}function xg(t,e,n){const s=typeof n=="object"?n:{};s.line=s.line||{type:"none"};const i={_type:Et.text,shape:e||jo.RECTANGLE,options:s,text:null};if(!e)throw new Error("Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`");const c={type:s.line.type||"solid",color:s.line.color||nx,transparency:s.line.transparency||0,width:s.line.width||1,dashType:s.line.dashType||"solid",beginArrowType:s.line.beginArrowType||null,endArrowType:s.line.endArrowType||null};if(typeof s.line=="object"&&s.line.type!=="none"&&(s.line=c),s.x=s.x||(s.x===0?0:1),s.y=s.y||(s.y===0?0:1),s.w=s.w||(s.w===0?0:1),s.h=s.h||(s.h===0?0:1),s.objectName=s.objectName?_t(s.objectName):`Shape ${t._slideObjects.filter(d=>d._type===Et.text).length}`,typeof s.line=="string"){const d=c;d.color=String(s.line),s.line=d}typeof s.lineSize=="number"&&(s.line.width=s.lineSize),typeof s.lineDash=="string"&&(s.line.dashType=s.lineDash),typeof s.lineHead=="string"&&(s.line.beginArrowType=s.lineHead),typeof s.lineTail=="string"&&(s.line.endArrowType=s.lineTail),Ru(t,i),t._slideObjects.push(i)}function _S(t,e,n,s,i,c,d){const h=[t],p=n&&typeof n=="object"?n:{};p.objectName=p.objectName?_t(p.objectName):`Table ${t._slideObjects.filter(x=>x._type===Et.table).length}`;{if(e===null||e.length===0||!Array.isArray(e))throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");if(!e[0]||!Array.isArray(e[0]))throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)")}const u=[];e.forEach(x=>{const S=[];Array.isArray(x)?x.forEach(C=>{const R={_type:Et.tablecell,text:"",options:typeof C=="object"&&C.options?C.options:{}};typeof C=="string"||typeof C=="number"?R.text=C.toString():C.text&&(typeof C.text=="string"||typeof C.text=="number"?R.text=C.text.toString():C.text&&(R.text=C.text),C.options&&typeof C.options=="object"&&(R.options=C.options)),R.options.border=R.options.border||p.border||[{type:"none"},{type:"none"},{type:"none"},{type:"none"}];const T=R.options.border;!Array.isArray(T)&&typeof T=="object"&&(R.options.border=[T,T,T,T]),R.options.border[0]||(R.options.border[0]={type:"none"}),R.options.border[1]||(R.options.border[1]={type:"none"}),R.options.border[2]||(R.options.border[2]={type:"none"}),R.options.border[3]||(R.options.border[3]={type:"none"}),[0,1,2,3].forEach(P=>{R.options.border[P]={type:R.options.border[P].type||hu.type,color:R.options.border[P].color||hu.color,pt:typeof R.options.border[P].pt=="number"?R.options.border[P].pt:hu.pt}}),S.push(R)}):(console.log("addTable: tableRows has a bad row. A row should be an array of cells. You provided:"),console.log(x)),u.push(S)}),p.x=Mt(p.x||(p.x===0?0:Tt/2),"X",i),p.y=Mt(p.y||(p.y===0?0:Tt/2),"Y",i),p.h&&(p.h=Mt(p.h,"Y",i)),p.fontSize=p.fontSize||hi,p.margin=p.margin===0||p.margin?p.margin:tx,typeof p.margin=="number"&&(p.margin=[Number(p.margin),Number(p.margin),Number(p.margin),Number(p.margin)]),JSON.stringify({arrRows:u}).indexOf("hyperlink")===-1&&(p.color||(p.color=p.color||wa)),typeof p.border=="string"?(console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"),p.border=null):Array.isArray(p.border)&&[0,1,2,3].forEach(x=>{p.border[x]=p.border[x]?{type:p.border[x].type||hu.type,color:p.border[x].color||hu.color,pt:p.border[x].pt||hu.pt}:{type:"none"}}),p.autoPage=typeof p.autoPage=="boolean"?p.autoPage:!1,p.autoPageRepeatHeader=typeof p.autoPageRepeatHeader=="boolean"?p.autoPageRepeatHeader:!1,p.autoPageHeaderRows=typeof p.autoPageHeaderRows<"u"&&!isNaN(Number(p.autoPageHeaderRows))?Number(p.autoPageHeaderRows):1,p.autoPageLineWeight=typeof p.autoPageLineWeight<"u"&&!isNaN(Number(p.autoPageLineWeight))?Number(p.autoPageLineWeight):0,p.autoPageLineWeight&&(p.autoPageLineWeight>1?p.autoPageLineWeight=1:p.autoPageLineWeight<-1&&(p.autoPageLineWeight=-1));let A=Ef;if(s&&typeof s._margin<"u"&&(Array.isArray(s._margin)?A=s._margin:isNaN(Number(s._margin))||(A=[Number(s._margin),Number(s._margin),Number(s._margin),Number(s._margin)])),p.colW){const x=u[0].reduce((S,C)=>{var R;return!((R=C==null?void 0:C.options)===null||R===void 0)&&R.colspan&&typeof C.options.colspan=="number"?S+=C.options.colspan:S+=1,S},0);typeof p.colW=="string"||typeof p.colW=="number"||p.colW&&Array.isArray(p.colW)&&p.colW.length===1&&x>1?(p.w=Math.floor(Number(p.colW)*x),p.colW=null):p.colW&&Array.isArray(p.colW)&&p.colW.length!==x&&(console.warn("addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths."),p.colW=null)}else p.w?p.w=Mt(p.w,"X",i):p.w=Math.floor(i._sizeW/Tt-A[1]-A[3]);p.x&&p.x<20&&(p.x=Xt(p.x)),p.y&&p.y<20&&(p.y=Xt(p.y)),p.w&&typeof p.w=="number"&&p.w<20&&(p.w=Xt(p.w)),p.h&&typeof p.h=="number"&&p.h<20&&(p.h=Xt(p.h)),u.forEach(x=>{x.forEach((S,C)=>{typeof S=="number"||typeof S=="string"?x[C]={_type:Et.tablecell,text:String(x[C]),options:p}:typeof S=="object"&&(typeof S.text=="number"?x[C].text=x[C].text.toString():(typeof S.text>"u"||S.text===null)&&(x[C].text=""),x[C].options=S.options||{},x[C]._type=Et.tablecell)})});const y=[];return p&&!p.autoPage?(Ru(t,u),t._slideObjects.push({_type:Et.table,arrTabRows:u,options:Object.assign({},p)})):(p.autoPageRepeatHeader&&(p._arrObjTabHeadRows=u.filter((x,S)=>S<p.autoPageHeaderRows)),ix(u,p,i,s).forEach((x,S)=>{d(t._slideNum+S)||h.push(c({masterName:(s==null?void 0:s._name)||null})),S>0&&(p.y=Xt(p.autoPageSlideStartY||p.newSlideStartY||A[0]));{const C=d(t._slideNum+S);p.autoPage=!1,Ru(C,x.rows),C.addTable(x.rows,Object.assign({},p)),S>0&&y.push(C)}})),y}function rA(t,e,n,s){const i={_type:s?Et.placeholder:Et.text,shape:(n==null?void 0:n.shape)||jo.RECTANGLE,text:!e||e.length===0?[{text:"",options:null}]:e,options:n||{}};function c(d){{if(d.placeholder||(d.color=d.color||i.options.color||t.color||wa),(d.placeholder||s)&&(d.bullet=d.bullet||!1),d.placeholder&&t._slideLayout&&t._slideLayout._slideObjects){const h=t._slideLayout._slideObjects.filter(p=>p._type==="placeholder"&&p.options&&p.options.placeholder&&p.options.placeholder===d.placeholder)[0];h!=null&&h.options&&(d=Object.assign(Object.assign({},d),h.options))}if(d.objectName=d.objectName?_t(d.objectName):`Text ${t._slideObjects.filter(h=>h._type===Et.text).length}`,d.shape===jo.LINE){const h={type:d.line.type||"solid",color:d.line.color||nx,transparency:d.line.transparency||0,width:d.line.width||1,dashType:d.line.dashType||"solid",beginArrowType:d.line.beginArrowType||null,endArrowType:d.line.endArrowType||null};if(typeof d.line=="object"&&(d.line=h),typeof d.line=="string"){const p=h;typeof d.line=="string"&&(p.color=d.line),d.line=p}typeof d.lineSize=="number"&&(d.line.width=d.lineSize),typeof d.lineDash=="string"&&(d.line.dashType=d.lineDash),typeof d.lineHead=="string"&&(d.line.beginArrowType=d.lineHead),typeof d.lineTail=="string"&&(d.line.endArrowType=d.lineTail)}d.line=d.line||{},d.lineSpacing=d.lineSpacing&&!isNaN(d.lineSpacing)?d.lineSpacing:null,d.lineSpacingMultiple=d.lineSpacingMultiple&&!isNaN(d.lineSpacingMultiple)?d.lineSpacingMultiple:null,d._bodyProp=d._bodyProp||{},d._bodyProp.autoFit=d.autoFit||!1,d._bodyProp.anchor=d.placeholder?null:Su.ctr,d._bodyProp.vert=d.vert||null,d._bodyProp.wrap=typeof d.wrap=="boolean"?d.wrap:!0,(d.inset&&!isNaN(Number(d.inset))||d.inset===0)&&(d._bodyProp.lIns=Xt(d.inset),d._bodyProp.rIns=Xt(d.inset),d._bodyProp.tIns=Xt(d.inset),d._bodyProp.bIns=Xt(d.inset)),typeof d.underline=="boolean"&&d.underline===!0&&(d.underline={style:"sng"})}return(d.align||"").toLowerCase().indexOf("c")===0?d._bodyProp.align=bu.center:(d.align||"").toLowerCase().indexOf("l")===0?d._bodyProp.align=bu.left:(d.align||"").toLowerCase().indexOf("r")===0?d._bodyProp.align=bu.right:(d.align||"").toLowerCase().indexOf("j")===0&&(d._bodyProp.align=bu.justify),(d.valign||"").toLowerCase().indexOf("b")===0?d._bodyProp.anchor=Su.b:(d.valign||"").toLowerCase().indexOf("m")===0?d._bodyProp.anchor=Su.ctr:(d.valign||"").toLowerCase().indexOf("t")===0&&(d._bodyProp.anchor=Su.t),Og(d.shadow),d}i.options=c(i.options),i.text.forEach(d=>d.options=c(d.options||{})),Ru(t,i.text||""),t._slideObjects.push(i)}function ES(t){(t._slideLayout._slideObjects||[]).forEach(e=>{e._type===Et.placeholder&&t._slideObjects.filter(n=>n.options&&n.options.placeholder===e.options.placeholder).length===0&&rA(t,[{text:""}],e.options,!1)})}function lx(t,e){var n;if(e.bkgd&&(e.background||(e.background={}),typeof e.bkgd=="string"?e.background.color=e.bkgd:(e.bkgd.data&&(e.background.data=e.bkgd.data),e.bkgd.path&&(e.background.path=e.bkgd.path),e.bkgd.src&&(e.background.path=e.bkgd.src))),!((n=e.background)===null||n===void 0)&&n.fill&&(e.background.color=e.background.fill),t&&(t.path||t.data)){t.path=t.path||"preencoded.png";let s=(t.path.split(".").pop()||"png").split("?")[0];s==="jpg"&&(s="jpeg"),e._relsMedia=e._relsMedia||[];const i=e._relsMedia.length+1;e._relsMedia.push({path:t.path,type:Et.image,extn:s,data:t.data||null,rId:i,Target:`../media/${(e._name||"").replace(/\s+/gi,"-")}-image-${e._relsMedia.length+1}.${s}`}),e._bkgdImgRid=i}}function Ru(t,e,n){let s=[];typeof e=="string"||typeof e=="number"||(Array.isArray(e)?s=e:typeof e=="object"&&(s=[e]),s.forEach((i,c)=>{if(n&&n[c]&&n[c].hyperlink&&(i.options=Object.assign(Object.assign({},i.options),n[c])),Array.isArray(i)){const d=[];i.forEach(h=>{h.options&&!h.text.options&&d.push(h.options)}),Ru(t,i,d)}else if(Array.isArray(i.text))Ru(t,i.text,n&&n[c]?[n[c]]:void 0);else if(i&&typeof i=="object"&&i.options&&i.options.hyperlink&&!i.options.hyperlink._rId)if(typeof i.options.hyperlink!="object")console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` ");else if(!i.options.hyperlink.url&&!i.options.hyperlink.slide)console.log("ERROR: 'hyperlink requires either: `url` or `slide`'");else{const d=Js(t);t._rels.push({type:Et.hyperlink,data:i.options.hyperlink.slide?"slide":"dummy",rId:d,Target:_t(i.options.hyperlink.url)||i.options.hyperlink.slide.toString()}),i.options.hyperlink._rId=d}else i&&typeof i=="object"&&i.options&&i.options.hyperlink&&i.options.hyperlink._rId&&t._rels.filter(d=>d.rId===i.options.hyperlink._rId).length===0&&t._rels.push({type:Et.hyperlink,data:i.options.hyperlink.slide?"slide":"dummy",rId:i.options.hyperlink._rId,Target:_t(i.options.hyperlink.url)||i.options.hyperlink.slide.toString()})}))}class RS{constructor(e){var n;this.addSlide=e.addSlide,this.getSlide=e.getSlide,this._name=`Slide ${e.slideNumber}`,this._presLayout=e.presLayout,this._rId=e.slideRId,this._rels=[],this._relsChart=[],this._relsMedia=[],this._setSlideNum=e.setSlideNum,this._slideId=e.slideId,this._slideLayout=e.slideLayout||null,this._slideNum=e.slideNumber,this._slideObjects=[],this._slideNumberProps=!((n=this._slideLayout)===null||n===void 0)&&n._slideNumberProps?this._slideLayout._slideNumberProps:null}set bkgd(e){this._bkgd=e,(!this._background||!this._background.color)&&(this._background||(this._background={}),typeof e=="string"&&(this._background.color=e))}get bkgd(){return this._bkgd}set background(e){this._background=e,e&&lx(e,this)}get background(){return this._background}set color(e){this._color=e}get color(){return this._color}set hidden(e){this._hidden=e}get hidden(){return this._hidden}set slideNumber(e){this._slideNumberProps=e,this._setSlideNum(e)}get slideNumber(){return this._slideNumberProps}get newAutoPagedSlides(){return this._newAutoPagedSlides}addChart(e,n,s){const i=s||{};return i._type=e,sx(this,e,n,s),this}addImage(e){return ox(this,e),this}addMedia(e){return CS(this,e),this}addNotes(e){return wS(this,e),this}addShape(e,n){return xg(this,e,n),this}addTable(e,n){return this._newAutoPagedSlides=_S(this,e,n,this._slideLayout,this._presLayout,this.addSlide,this.getSlide),this}addText(e,n){return rA(this,typeof e=="string"||typeof e=="number"?[{text:e,options:n}]:e,n,!1),this}}function TS(t,e){return Ha(this,void 0,void 0,function*(){const n=t.data;return yield new Promise((s,i)=>{var c,d;const h=new ex,p=(n.length-1)*2+1,u=((d=(c=n[0])===null||c===void 0?void 0:c.labels)===null||d===void 0?void 0:d.length)>1;h.folder("_rels"),h.folder("docProps"),h.folder("xl/_rels"),h.folder("xl/tables"),h.folder("xl/theme"),h.folder("xl/worksheets"),h.folder("xl/worksheets/_rels"),h.file("[Content_Types].xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"> <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/> <Default Extension="xml" ContentType="application/xml"/> <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/> <Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/> <Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/> <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/> <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/> <Override PartName="/xl/tables/table1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"/> <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/> <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>
|
|
51
51
|
`),h.file("_rels/.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>
|
|
52
52
|
`),h.file("docProps/app.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>
|
|
53
53
|
`),h.file("docProps/core.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>PptxGenJS</dc:creator><cp:lastModifiedBy>PptxGenJS</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">'+new Date().toISOString()+'</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">'+new Date().toISOString()+"</dcterms:modified></cp:coreProperties>"),h.file("xl/_rels/workbook.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>'),h.file("xl/styles.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><numFmts count="1"><numFmt numFmtId="0" formatCode="General"/></numFmts><fonts count="4"><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="10"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="18"/><color indexed="8"/><name val="Arial"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><dxfs count="0"/><tableStyles count="0"/><colors><indexedColors><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ffff0000"/><rgbColor rgb="ff00ff00"/><rgbColor rgb="ff0000ff"/><rgbColor rgb="ffffff00"/><rgbColor rgb="ffff00ff"/><rgbColor rgb="ff00ffff"/><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ff878787"/><rgbColor rgb="fff9f9f9"/></indexedColors></colors></styleSheet>
|
|
@@ -80,14 +80,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
80
80
|
${h}
|
|
81
81
|
<c:overlay val="0"/>
|
|
82
82
|
</c:title>`}function sn(t){let e="";const n=t-1;return n<=25?e=rf[n]:e=`${rf[Math.floor(n/rf.length-1)]}${rf[n%rf.length]}`,e}function Ll(t,e){if(t){if(typeof t!="object")return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"<a:effectLst/>"}else return"<a:effectLst/>";let n="<a:effectLst>";const s=Object.assign(Object.assign({},e),t),i=s.type||"outer",c=xt(s.blur),d=xt(s.offset),h=Math.round(s.angle*6e4),p=s.color,u=Math.round(s.opacity*1e5),A=s.rotateWithShape?1:0;return n+=`<a:${i}Shdw sx="100000" sy="100000" kx="0" ky="0" algn="bl" blurRad="${c}" rotWithShape="${A}" dist="${d}" dir="${h}">`,n+=`<a:srgbClr val="${p}">`,n+=`<a:alpha val="${u}"/></a:srgbClr>`,n+=`</a:${i}Shdw>`,n+="</a:effectLst>",n}function Ug(t){let e="<c:majorGridlines>";return e+=" <c:spPr>",e+=` <a:ln w="${xt(t.size||Nl.size)}" cap="${Zp(t.cap||Nl.cap)}">`,e+=' <a:solidFill><a:srgbClr val="'+(t.color||Nl.color)+'"/></a:solidFill>',e+=' <a:prstDash val="'+(t.style||Nl.style)+'"/><a:round/>',e+=" </a:ln>",e+=" </c:spPr>",e+="</c:majorGridlines>",e}function Zp(t){if(!t||t==="flat")return"flat";if(t==="square")return"sq";if(t==="round")return"rnd";{const e=t;throw new Error(`Invalid chart line cap: ${e}`)}}function qm(t){var e,n;const s=typeof process<"u"&&!!(!((e=process.versions)===null||e===void 0)&&e.node)&&((n=process.release)===null||n===void 0?void 0:n.name)==="node";let i,c;const d=s?()=>Ha(this,void 0,void 0,function*(){({default:i}=yield Promise.resolve().then(()=>require("./__vite-browser-external-BcPniuRQ.cjs"))),{default:c}=yield Promise.resolve().then(()=>require("./__vite-browser-external-BcPniuRQ.cjs"))}):()=>Ha(this,void 0,void 0,function*(){});s&&d();const h=[],p=t._relsMedia.filter(A=>A.type!=="online"&&!A.data&&(!A.path||A.path&&!A.path.includes("preencoded"))),u=[];return p.forEach(A=>{u.includes(A.path)?A.isDuplicate=!0:(A.isDuplicate=!1,u.push(A.path))}),p.filter(A=>!A.isDuplicate).forEach(A=>{h.push(Ha(this,void 0,void 0,function*(){if(c||(yield d()),s&&i&&A.path.indexOf("http")!==0)try{const y=i.readFileSync(A.path);return A.data=Buffer.from(y).toString("base64"),p.filter(x=>x.isDuplicate&&x.path===A.path).forEach(x=>x.data=A.data),"done"}catch(y){throw A.data=wu,p.filter(x=>x.isDuplicate&&x.path===A.path).forEach(x=>x.data=A.data),new Error(`ERROR: Unable to read media: "${A.path}"
|
|
83
|
-
${String(y)}`)}return s&&c&&A.path.startsWith("http")?yield new Promise((y,x)=>{c.get(A.path,S=>{let C="";S.setEncoding("binary"),S.on("data",R=>C+=R),S.on("end",()=>{A.data=Buffer.from(C,"binary").toString("base64"),p.filter(R=>R.isDuplicate&&R.path===A.path).forEach(R=>R.data=A.data),y("done")}),S.on("error",()=>{A.data=wu,p.filter(R=>R.isDuplicate&&R.path===A.path).forEach(R=>R.data=A.data),x(new Error(`ERROR! Unable to load image (https.get): ${A.path}`))})})}):yield new Promise((y,x)=>{const S=new XMLHttpRequest;S.onload=()=>{const C=new FileReader;C.onloadend=()=>{A.data=C.result,p.filter(R=>R.isDuplicate&&R.path===A.path).forEach(R=>R.data=A.data),A.isSvgPng?Vy(A).then(()=>y("done")).catch(x):y("done")},C.readAsDataURL(S.response)},S.onerror=()=>{A.data=wu,p.filter(C=>C.isDuplicate&&C.path===A.path).forEach(C=>C.data=A.data),x(new Error(`ERROR! Unable to load image (xhr.onerror): ${A.path}`))},S.open("GET",A.path),S.responseType="blob",S.send()})}))}),t._relsMedia.filter(A=>A.isSvgPng&&A.data).forEach(A=>{Ha(this,void 0,void 0,function*(){s&&!i&&(yield d()),s&&i?(A.data=wu,h.push(Promise.resolve("done"))):h.push(Vy(A))})}),h}function Vy(t){return Ha(this,void 0,void 0,function*(){return yield new Promise((e,n)=>{const s=new Image;s.onload=()=>{s.width+s.height===0&&s.onerror("h/w=0");let i=document.createElement("CANVAS");const c=i.getContext("2d");i.width=s.width,i.height=s.height,c.drawImage(s,0,0);try{t.data=i.toDataURL(t.type),e("done")}catch(d){s.onerror(d.toString())}i=null},s.onerror=()=>{t.data=wu,n(new Error(`ERROR! Unable to load image (image.onerror): ${t.path}`))},s.src=typeof t.data=="string"?t.data:wu})})}const kS={cover:function(t,e){const n=t.h/t.w,i=e.h/e.w>n,c=i?e.h/n:e.w,d=i?e.h:e.w*n,h=Math.round(1e5*.5*(1-e.w/c)),p=Math.round(1e5*.5*(1-e.h/d));return`<a:srcRect l="${h}" r="${h}" t="${p}" b="${p}"/><a:stretch/>`},contain:function(t,e){const n=t.h/t.w,i=e.h/e.w>n,c=i?e.w:e.h/n,d=i?e.w*n:e.h,h=Math.round(1e5*.5*(1-e.w/c)),p=Math.round(1e5*.5*(1-e.h/d));return`<a:srcRect l="${h}" r="${h}" t="${p}" b="${p}"/><a:stretch/>`},crop:function(t,e){const n=e.x,s=t.w-(e.x+e.w),i=e.y,c=t.h-(e.y+e.h),d=Math.round(1e5*(n/t.w)),h=Math.round(1e5*(s/t.w)),p=Math.round(1e5*(i/t.h)),u=Math.round(1e5*(c/t.h));return`<a:srcRect l="${d}" r="${h}" t="${p}" b="${u}"/><a:stretch/>`}};function jg(t){var e;let n=t._name?'<p:cSld name="'+t._name+'">':"<p:cSld>",s=1;return t._bkgdImgRid?n+=`<p:bg><p:bgPr><a:blipFill dpi="0" rotWithShape="1"><a:blip r:embed="rId${t._bkgdImgRid}"><a:lum/></a:blip><a:srcRect/><a:stretch><a:fillRect/></a:stretch></a:blipFill><a:effectLst/></p:bgPr></p:bg>`:!((e=t.background)===null||e===void 0)&&e.color?n+=`<p:bg><p:bgPr>${Wa(t.background)}</p:bgPr></p:bg>`:!t.bkgd&&t._name&&t._name===hg&&(n+='<p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg>'),n+="<p:spTree>",n+='<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>',n+='<p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/>',n+='<a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>',t._slideObjects.forEach((i,c)=>{var d,h,p,u,A,y,x,S;let C=0,R=0,T=Mt("75%","X",t._presLayout),D=0,P,M="",O=null,I=null,V=0,K=0,q=null,Y=null;const X=(d=i.options)===null||d===void 0?void 0:d.sizing,he=(h=i.options)===null||h===void 0?void 0:h.rounding;t._slideLayout!==void 0&&t._slideLayout._slideObjects!==void 0&&i.options&&i.options.placeholder&&(P=t._slideLayout._slideObjects.filter(L=>L.options.placeholder===i.options.placeholder)[0]),i.options=i.options||{},typeof i.options.x<"u"&&(C=Mt(i.options.x,"X",t._presLayout)),typeof i.options.y<"u"&&(R=Mt(i.options.y,"Y",t._presLayout)),typeof i.options.w<"u"&&(T=Mt(i.options.w,"X",t._presLayout)),typeof i.options.h<"u"&&(D=Mt(i.options.h,"Y",t._presLayout));let G=T,te=D;switch(P&&((P.options.x||P.options.x===0)&&(C=Mt(P.options.x,"X",t._presLayout)),(P.options.y||P.options.y===0)&&(R=Mt(P.options.y,"Y",t._presLayout)),(P.options.w||P.options.w===0)&&(T=Mt(P.options.w,"X",t._presLayout)),(P.options.h||P.options.h===0)&&(D=Mt(P.options.h,"Y",t._presLayout))),i.options.flipH&&(M+=' flipH="1"'),i.options.flipV&&(M+=' flipV="1"'),i.options.rotate&&(M+=` rot="${Bl(i.options.rotate)}"`),i._type){case Et.table:if(O=i.arrTabRows,I=i.options,V=0,K=0,O[0].forEach(L=>{q=L.options||null,V+=q!=null&&q.colspan?Number(q.colspan):1}),Y=`<p:graphicFrame><p:nvGraphicFramePr><p:cNvPr id="${s*t._slideNum+1}" name="${i.options.objectName}"/>`,Y+='<p:cNvGraphicFramePr><a:graphicFrameLocks noGrp="1"/></p:cNvGraphicFramePr> <p:nvPr><p:extLst><p:ext uri="{D42A27DB-BD31-4B8C-83A1-F6EECF244321}"><p14:modId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1579011935"/></p:ext></p:extLst></p:nvPr></p:nvGraphicFramePr>',Y+=`<p:xfrm><a:off x="${C||(C===0?0:Tt)}" y="${R||(R===0?0:Tt)}"/><a:ext cx="${T||(T===0?0:Tt)}" cy="${D||Tt}"/></p:xfrm>`,Y+='<a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table"><a:tbl><a:tblPr/>',Array.isArray(I.colW)){Y+="<a:tblGrid>";for(let L=0;L<V;L++){let ne=Xt(I.colW[L]);(ne==null||isNaN(ne))&&(ne=(typeof i.options.w=="number"?i.options.w:1)/V),Y+=`<a:gridCol w="${Math.round(ne)}"/>`}Y+="</a:tblGrid>"}else{K=I.colW?I.colW:Tt,i.options.w&&!I.colW&&(K=Math.round((typeof i.options.w=="number"?i.options.w:1)/V)),Y+="<a:tblGrid>";for(let L=0;L<V;L++)Y+=`<a:gridCol w="${K}"/>`;Y+="</a:tblGrid>"}O.forEach(L=>{var ne,le;for(let Ae=0;Ae<L.length;){const re=L[Ae],ie=(ne=re.options)===null||ne===void 0?void 0:ne.colspan,ae=(le=re.options)===null||le===void 0?void 0:le.rowspan;if(ie&&ie>1){const H=new Array(ie-1).fill(void 0).map(()=>({_type:Et.tablecell,options:{rowspan:ae},_hmerge:!0}));L.splice(Ae+1,0,...H),Ae+=ie}else Ae+=1}}),O.forEach((L,ne)=>{const le=O[ne+1];le&&L.forEach((Ae,re)=>{var ie,ae;const H=Ae._rowContinue||((ie=Ae.options)===null||ie===void 0?void 0:ie.rowspan),$=(ae=Ae.options)===null||ae===void 0?void 0:ae.colspan,Ee=Ae._hmerge;if(H&&H>1){const Re={_type:Et.tablecell,options:{colspan:$},_rowContinue:H-1,_vmerge:!0,_hmerge:Ee};le.splice(re,0,Re)}})}),O.forEach((L,ne)=>{let le=0;Array.isArray(I.rowH)&&I.rowH[ne]?le=Xt(Number(I.rowH[ne])):I.rowH&&!isNaN(Number(I.rowH))?le=Xt(Number(I.rowH)):(i.options.cy||i.options.h)&&(le=Math.round((i.options.h?Xt(i.options.h):typeof i.options.cy=="number"?i.options.cy:1)/O.length)),Y+=`<a:tr h="${le}">`,L.forEach(Ae=>{var re,ie,ae,H,$;const Ee=Ae,Re={rowSpan:((re=Ee.options)===null||re===void 0?void 0:re.rowspan)>1?Ee.options.rowspan:void 0,gridSpan:((ie=Ee.options)===null||ie===void 0?void 0:ie.colspan)>1?Ee.options.colspan:void 0,vMerge:Ee._vmerge?1:void 0,hMerge:Ee._hmerge?1:void 0};let Ne=Object.keys(Re).map(ge=>[ge,Re[ge]]).filter(([,ge])=>!!ge).map(([ge,k])=>`${String(ge)}="${String(k)}"`).join(" ");if(Ne&&(Ne=" "+Ne),Ee._hmerge||Ee._vmerge){Y+=`<a:tc${Ne}><a:tcPr/></a:tc>`;return}const je=Ee.options||{};Ee.options=je,["align","bold","border","color","fill","fontFace","fontSize","margin","textDirection","underline","valign"].forEach(ge=>{I[ge]&&!je[ge]&&je[ge]!==0&&(je[ge]=I[ge])});const gt=je.valign?` anchor="${je.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b")}"`:"",ft=je.textDirection&&je.textDirection!=="horz"?` vert="${je.textDirection}"`:"";let ht=!((H=(ae=Ee._optImp)===null||ae===void 0?void 0:ae.fill)===null||H===void 0)&&H.color?Ee._optImp.fill.color:!(($=Ee._optImp)===null||$===void 0)&&$.fill&&typeof Ee._optImp.fill=="string"?Ee._optImp.fill:"";ht=ht||je.fill?je.fill:"";const Lt=ht?Wa(ht):"";let qe=je.margin===0||je.margin?je.margin:tx;!Array.isArray(qe)&&typeof qe=="number"&&(qe=[qe,qe,qe,qe]);let Dt="";qe[0]>=1?Dt=` marL="${xt(qe[3])}" marR="${xt(qe[1])}" marT="${xt(qe[0])}" marB="${xt(qe[2])}"`:Dt=` marL="${Xt(qe[3])}" marR="${Xt(qe[1])}" marT="${Xt(qe[0])}" marB="${Xt(qe[2])}"`,Y+=`<a:tc${Ne}>${Ky(Ee)}<a:tcPr${Dt}${gt}${ft}>`,je.border&&Array.isArray(je.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(ge=>{je.border[ge.idx].type!=="none"?(Y+=`<a:${ge.name} w="${xt(je.border[ge.idx].pt)}" cap="flat" cmpd="sng" algn="ctr">`,Y+=`<a:solidFill>${Zt(je.border[ge.idx].color)}</a:solidFill>`,Y+=`<a:prstDash val="${je.border[ge.idx].type==="dash"?"sysDash":"solid"}"/><a:round/><a:headEnd type="none" w="med" len="med"/><a:tailEnd type="none" w="med" len="med"/>`,Y+=`</a:${ge.name}>`):Y+=`<a:${ge.name} w="0" cap="flat" cmpd="sng" algn="ctr"><a:noFill/></a:${ge.name}>`}),Y+=Lt,Y+=" </a:tcPr>",Y+=" </a:tc>"}),Y+="</a:tr>"}),Y+=" </a:tbl>",Y+=" </a:graphicData>",Y+=" </a:graphic>",Y+="</p:graphicFrame>",n+=Y,s++;break;case Et.text:case Et.placeholder:if(!i.options.line&&D===0&&(D=Tt*.3),i.options._bodyProp||(i.options._bodyProp={}),i.options.margin&&Array.isArray(i.options.margin)?(i.options._bodyProp.lIns=xt(i.options.margin[0]||0),i.options._bodyProp.rIns=xt(i.options.margin[1]||0),i.options._bodyProp.bIns=xt(i.options.margin[2]||0),i.options._bodyProp.tIns=xt(i.options.margin[3]||0)):typeof i.options.margin=="number"&&(i.options._bodyProp.lIns=xt(i.options.margin),i.options._bodyProp.rIns=xt(i.options.margin),i.options._bodyProp.bIns=xt(i.options.margin),i.options._bodyProp.tIns=xt(i.options.margin)),n+="<p:sp>",n+=`<p:nvSpPr><p:cNvPr id="${c+2}" name="${i.options.objectName}">`,!((p=i.options.hyperlink)===null||p===void 0)&&p.url&&(n+=`<a:hlinkClick r:id="rId${i.options.hyperlink._rId}" tooltip="${i.options.hyperlink.tooltip?_t(i.options.hyperlink.tooltip):""}"/>`),!((u=i.options.hyperlink)===null||u===void 0)&&u.slide&&(n+=`<a:hlinkClick r:id="rId${i.options.hyperlink._rId}" tooltip="${i.options.hyperlink.tooltip?_t(i.options.hyperlink.tooltip):""}" action="ppaction://hlinksldjump"/>`),n+="</p:cNvPr>",n+="<p:cNvSpPr"+(!((A=i.options)===null||A===void 0)&&A.isTextBox?' txBox="1"/>':"/>"),n+=`<p:nvPr>${i._type==="placeholder"?Bp(i):Bp(P)}</p:nvPr>`,n+="</p:nvSpPr><p:spPr>",n+=`<a:xfrm${M}>`,n+=`<a:off x="${C}" y="${R}"/>`,n+=`<a:ext cx="${T}" cy="${D}"/></a:xfrm>`,i.shape==="custGeom")n+="<a:custGeom><a:avLst />",n+="<a:gdLst>",n+="</a:gdLst>",n+="<a:ahLst />",n+="<a:cxnLst>",n+="</a:cxnLst>",n+='<a:rect l="l" t="t" r="r" b="b" />',n+="<a:pathLst>",n+=`<a:path w="${T}" h="${D}">`,(y=i.options.points)===null||y===void 0||y.forEach((L,ne)=>{if("curve"in L)switch(L.curve.type){case"arc":n+=`<a:arcTo hR="${Mt(L.curve.hR,"Y",t._presLayout)}" wR="${Mt(L.curve.wR,"X",t._presLayout)}" stAng="${Bl(L.curve.stAng)}" swAng="${Bl(L.curve.swAng)}" />`;break;case"cubic":n+=`<a:cubicBezTo>
|
|
83
|
+
${String(y)}`)}return s&&c&&A.path.startsWith("http")?yield new Promise((y,x)=>{c.get(A.path,S=>{let C="";S.setEncoding("binary"),S.on("data",R=>C+=R),S.on("end",()=>{A.data=Buffer.from(C,"binary").toString("base64"),p.filter(R=>R.isDuplicate&&R.path===A.path).forEach(R=>R.data=A.data),y("done")}),S.on("error",()=>{A.data=wu,p.filter(R=>R.isDuplicate&&R.path===A.path).forEach(R=>R.data=A.data),x(new Error(`ERROR! Unable to load image (https.get): ${A.path}`))})})}):yield new Promise((y,x)=>{const S=new XMLHttpRequest;S.onload=()=>{const C=new FileReader;C.onloadend=()=>{A.data=C.result,p.filter(R=>R.isDuplicate&&R.path===A.path).forEach(R=>R.data=A.data),A.isSvgPng?Vy(A).then(()=>y("done")).catch(x):y("done")},C.readAsDataURL(S.response)},S.onerror=()=>{A.data=wu,p.filter(C=>C.isDuplicate&&C.path===A.path).forEach(C=>C.data=A.data),x(new Error(`ERROR! Unable to load image (xhr.onerror): ${A.path}`))},S.open("GET",A.path),S.responseType="blob",S.send()})}))}),t._relsMedia.filter(A=>A.isSvgPng&&A.data).forEach(A=>{Ha(this,void 0,void 0,function*(){s&&!i&&(yield d()),s&&i?(A.data=wu,h.push(Promise.resolve("done"))):h.push(Vy(A))})}),h}function Vy(t){return Ha(this,void 0,void 0,function*(){return yield new Promise((e,n)=>{const s=new Image;s.onload=()=>{s.width+s.height===0&&s.onerror("h/w=0");let i=document.createElement("CANVAS");const c=i.getContext("2d");i.width=s.width,i.height=s.height,c.drawImage(s,0,0);try{t.data=i.toDataURL(t.type),e("done")}catch(d){s.onerror(d.toString())}i=null},s.onerror=()=>{t.data=wu,n(new Error(`ERROR! Unable to load image (image.onerror): ${t.path}`))},s.src=typeof t.data=="string"?t.data:wu})})}const kS={cover:function(t,e){const n=t.h/t.w,i=e.h/e.w>n,c=i?e.h/n:e.w,d=i?e.h:e.w*n,h=Math.round(1e5*.5*(1-e.w/c)),p=Math.round(1e5*.5*(1-e.h/d));return`<a:srcRect l="${h}" r="${h}" t="${p}" b="${p}"/><a:stretch/>`},contain:function(t,e){const n=t.h/t.w,i=e.h/e.w>n,c=i?e.w:e.h/n,d=i?e.w*n:e.h,h=Math.round(1e5*.5*(1-e.w/c)),p=Math.round(1e5*.5*(1-e.h/d));return`<a:srcRect l="${h}" r="${h}" t="${p}" b="${p}"/><a:stretch/>`},crop:function(t,e){const n=e.x,s=t.w-(e.x+e.w),i=e.y,c=t.h-(e.y+e.h),d=Math.round(1e5*(n/t.w)),h=Math.round(1e5*(s/t.w)),p=Math.round(1e5*(i/t.h)),u=Math.round(1e5*(c/t.h));return`<a:srcRect l="${d}" r="${h}" t="${p}" b="${u}"/><a:stretch/>`}};function jg(t){var e;let n=t._name?'<p:cSld name="'+t._name+'">':"<p:cSld>",s=1;return t._bkgdImgRid?n+=`<p:bg><p:bgPr><a:blipFill dpi="0" rotWithShape="1"><a:blip r:embed="rId${t._bkgdImgRid}"><a:lum/></a:blip><a:srcRect/><a:stretch><a:fillRect/></a:stretch></a:blipFill><a:effectLst/></p:bgPr></p:bg>`:!((e=t.background)===null||e===void 0)&&e.color?n+=`<p:bg><p:bgPr>${Wa(t.background)}</p:bgPr></p:bg>`:!t.bkgd&&t._name&&t._name===hg&&(n+='<p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg>'),n+="<p:spTree>",n+='<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>',n+='<p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/>',n+='<a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>',t._slideObjects.forEach((i,c)=>{var d,h,p,u,A,y,x,S;let C=0,R=0,T=Mt("75%","X",t._presLayout),D=0,P,M="",O=null,I=null,Y=0,K=0,q=null,Q=null;const V=(d=i.options)===null||d===void 0?void 0:d.sizing,ge=(h=i.options)===null||h===void 0?void 0:h.rounding;t._slideLayout!==void 0&&t._slideLayout._slideObjects!==void 0&&i.options&&i.options.placeholder&&(P=t._slideLayout._slideObjects.filter(L=>L.options.placeholder===i.options.placeholder)[0]),i.options=i.options||{},typeof i.options.x<"u"&&(C=Mt(i.options.x,"X",t._presLayout)),typeof i.options.y<"u"&&(R=Mt(i.options.y,"Y",t._presLayout)),typeof i.options.w<"u"&&(T=Mt(i.options.w,"X",t._presLayout)),typeof i.options.h<"u"&&(D=Mt(i.options.h,"Y",t._presLayout));let W=T,se=D;switch(P&&((P.options.x||P.options.x===0)&&(C=Mt(P.options.x,"X",t._presLayout)),(P.options.y||P.options.y===0)&&(R=Mt(P.options.y,"Y",t._presLayout)),(P.options.w||P.options.w===0)&&(T=Mt(P.options.w,"X",t._presLayout)),(P.options.h||P.options.h===0)&&(D=Mt(P.options.h,"Y",t._presLayout))),i.options.flipH&&(M+=' flipH="1"'),i.options.flipV&&(M+=' flipV="1"'),i.options.rotate&&(M+=` rot="${Bl(i.options.rotate)}"`),i._type){case Et.table:if(O=i.arrTabRows,I=i.options,Y=0,K=0,O[0].forEach(L=>{q=L.options||null,Y+=q!=null&&q.colspan?Number(q.colspan):1}),Q=`<p:graphicFrame><p:nvGraphicFramePr><p:cNvPr id="${s*t._slideNum+1}" name="${i.options.objectName}"/>`,Q+='<p:cNvGraphicFramePr><a:graphicFrameLocks noGrp="1"/></p:cNvGraphicFramePr> <p:nvPr><p:extLst><p:ext uri="{D42A27DB-BD31-4B8C-83A1-F6EECF244321}"><p14:modId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1579011935"/></p:ext></p:extLst></p:nvPr></p:nvGraphicFramePr>',Q+=`<p:xfrm><a:off x="${C||(C===0?0:Tt)}" y="${R||(R===0?0:Tt)}"/><a:ext cx="${T||(T===0?0:Tt)}" cy="${D||Tt}"/></p:xfrm>`,Q+='<a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table"><a:tbl><a:tblPr/>',Array.isArray(I.colW)){Q+="<a:tblGrid>";for(let L=0;L<Y;L++){let ne=Xt(I.colW[L]);(ne==null||isNaN(ne))&&(ne=(typeof i.options.w=="number"?i.options.w:1)/Y),Q+=`<a:gridCol w="${Math.round(ne)}"/>`}Q+="</a:tblGrid>"}else{K=I.colW?I.colW:Tt,i.options.w&&!I.colW&&(K=Math.round((typeof i.options.w=="number"?i.options.w:1)/Y)),Q+="<a:tblGrid>";for(let L=0;L<Y;L++)Q+=`<a:gridCol w="${K}"/>`;Q+="</a:tblGrid>"}O.forEach(L=>{var ne,le;for(let pe=0;pe<L.length;){const J=L[pe],ae=(ne=J.options)===null||ne===void 0?void 0:ne.colspan,re=(le=J.options)===null||le===void 0?void 0:le.rowspan;if(ae&&ae>1){const U=new Array(ae-1).fill(void 0).map(()=>({_type:Et.tablecell,options:{rowspan:re},_hmerge:!0}));L.splice(pe+1,0,...U),pe+=ae}else pe+=1}}),O.forEach((L,ne)=>{const le=O[ne+1];le&&L.forEach((pe,J)=>{var ae,re;const U=pe._rowContinue||((ae=pe.options)===null||ae===void 0?void 0:ae.rowspan),ee=(re=pe.options)===null||re===void 0?void 0:re.colspan,Ee=pe._hmerge;if(U&&U>1){const Re={_type:Et.tablecell,options:{colspan:ee},_rowContinue:U-1,_vmerge:!0,_hmerge:Ee};le.splice(J,0,Re)}})}),O.forEach((L,ne)=>{let le=0;Array.isArray(I.rowH)&&I.rowH[ne]?le=Xt(Number(I.rowH[ne])):I.rowH&&!isNaN(Number(I.rowH))?le=Xt(Number(I.rowH)):(i.options.cy||i.options.h)&&(le=Math.round((i.options.h?Xt(i.options.h):typeof i.options.cy=="number"?i.options.cy:1)/O.length)),Q+=`<a:tr h="${le}">`,L.forEach(pe=>{var J,ae,re,U,ee;const Ee=pe,Re={rowSpan:((J=Ee.options)===null||J===void 0?void 0:J.rowspan)>1?Ee.options.rowspan:void 0,gridSpan:((ae=Ee.options)===null||ae===void 0?void 0:ae.colspan)>1?Ee.options.colspan:void 0,vMerge:Ee._vmerge?1:void 0,hMerge:Ee._hmerge?1:void 0};let Ne=Object.keys(Re).map(me=>[me,Re[me]]).filter(([,me])=>!!me).map(([me,k])=>`${String(me)}="${String(k)}"`).join(" ");if(Ne&&(Ne=" "+Ne),Ee._hmerge||Ee._vmerge){Q+=`<a:tc${Ne}><a:tcPr/></a:tc>`;return}const Ue=Ee.options||{};Ee.options=Ue,["align","bold","border","color","fill","fontFace","fontSize","margin","textDirection","underline","valign"].forEach(me=>{I[me]&&!Ue[me]&&Ue[me]!==0&&(Ue[me]=I[me])});const ot=Ue.valign?` anchor="${Ue.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b")}"`:"",lt=Ue.textDirection&&Ue.textDirection!=="horz"?` vert="${Ue.textDirection}"`:"";let pt=!((U=(re=Ee._optImp)===null||re===void 0?void 0:re.fill)===null||U===void 0)&&U.color?Ee._optImp.fill.color:!((ee=Ee._optImp)===null||ee===void 0)&&ee.fill&&typeof Ee._optImp.fill=="string"?Ee._optImp.fill:"";pt=pt||Ue.fill?Ue.fill:"";const Lt=pt?Wa(pt):"";let qe=Ue.margin===0||Ue.margin?Ue.margin:tx;!Array.isArray(qe)&&typeof qe=="number"&&(qe=[qe,qe,qe,qe]);let Dt="";qe[0]>=1?Dt=` marL="${xt(qe[3])}" marR="${xt(qe[1])}" marT="${xt(qe[0])}" marB="${xt(qe[2])}"`:Dt=` marL="${Xt(qe[3])}" marR="${Xt(qe[1])}" marT="${Xt(qe[0])}" marB="${Xt(qe[2])}"`,Q+=`<a:tc${Ne}>${Ky(Ee)}<a:tcPr${Dt}${ot}${lt}>`,Ue.border&&Array.isArray(Ue.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(me=>{Ue.border[me.idx].type!=="none"?(Q+=`<a:${me.name} w="${xt(Ue.border[me.idx].pt)}" cap="flat" cmpd="sng" algn="ctr">`,Q+=`<a:solidFill>${Zt(Ue.border[me.idx].color)}</a:solidFill>`,Q+=`<a:prstDash val="${Ue.border[me.idx].type==="dash"?"sysDash":"solid"}"/><a:round/><a:headEnd type="none" w="med" len="med"/><a:tailEnd type="none" w="med" len="med"/>`,Q+=`</a:${me.name}>`):Q+=`<a:${me.name} w="0" cap="flat" cmpd="sng" algn="ctr"><a:noFill/></a:${me.name}>`}),Q+=Lt,Q+=" </a:tcPr>",Q+=" </a:tc>"}),Q+="</a:tr>"}),Q+=" </a:tbl>",Q+=" </a:graphicData>",Q+=" </a:graphic>",Q+="</p:graphicFrame>",n+=Q,s++;break;case Et.text:case Et.placeholder:if(!i.options.line&&D===0&&(D=Tt*.3),i.options._bodyProp||(i.options._bodyProp={}),i.options.margin&&Array.isArray(i.options.margin)?(i.options._bodyProp.lIns=xt(i.options.margin[0]||0),i.options._bodyProp.rIns=xt(i.options.margin[1]||0),i.options._bodyProp.bIns=xt(i.options.margin[2]||0),i.options._bodyProp.tIns=xt(i.options.margin[3]||0)):typeof i.options.margin=="number"&&(i.options._bodyProp.lIns=xt(i.options.margin),i.options._bodyProp.rIns=xt(i.options.margin),i.options._bodyProp.bIns=xt(i.options.margin),i.options._bodyProp.tIns=xt(i.options.margin)),n+="<p:sp>",n+=`<p:nvSpPr><p:cNvPr id="${c+2}" name="${i.options.objectName}">`,!((p=i.options.hyperlink)===null||p===void 0)&&p.url&&(n+=`<a:hlinkClick r:id="rId${i.options.hyperlink._rId}" tooltip="${i.options.hyperlink.tooltip?_t(i.options.hyperlink.tooltip):""}"/>`),!((u=i.options.hyperlink)===null||u===void 0)&&u.slide&&(n+=`<a:hlinkClick r:id="rId${i.options.hyperlink._rId}" tooltip="${i.options.hyperlink.tooltip?_t(i.options.hyperlink.tooltip):""}" action="ppaction://hlinksldjump"/>`),n+="</p:cNvPr>",n+="<p:cNvSpPr"+(!((A=i.options)===null||A===void 0)&&A.isTextBox?' txBox="1"/>':"/>"),n+=`<p:nvPr>${i._type==="placeholder"?Bp(i):Bp(P)}</p:nvPr>`,n+="</p:nvSpPr><p:spPr>",n+=`<a:xfrm${M}>`,n+=`<a:off x="${C}" y="${R}"/>`,n+=`<a:ext cx="${T}" cy="${D}"/></a:xfrm>`,i.shape==="custGeom")n+="<a:custGeom><a:avLst />",n+="<a:gdLst>",n+="</a:gdLst>",n+="<a:ahLst />",n+="<a:cxnLst>",n+="</a:cxnLst>",n+='<a:rect l="l" t="t" r="r" b="b" />',n+="<a:pathLst>",n+=`<a:path w="${T}" h="${D}">`,(y=i.options.points)===null||y===void 0||y.forEach((L,ne)=>{if("curve"in L)switch(L.curve.type){case"arc":n+=`<a:arcTo hR="${Mt(L.curve.hR,"Y",t._presLayout)}" wR="${Mt(L.curve.wR,"X",t._presLayout)}" stAng="${Bl(L.curve.stAng)}" swAng="${Bl(L.curve.swAng)}" />`;break;case"cubic":n+=`<a:cubicBezTo>
|
|
84
84
|
<a:pt x="${Mt(L.curve.x1,"X",t._presLayout)}" y="${Mt(L.curve.y1,"Y",t._presLayout)}" />
|
|
85
85
|
<a:pt x="${Mt(L.curve.x2,"X",t._presLayout)}" y="${Mt(L.curve.y2,"Y",t._presLayout)}" />
|
|
86
86
|
<a:pt x="${Mt(L.x,"X",t._presLayout)}" y="${Mt(L.y,"Y",t._presLayout)}" />
|
|
87
87
|
</a:cubicBezTo>`;break;case"quadratic":n+=`<a:quadBezTo>
|
|
88
88
|
<a:pt x="${Mt(L.curve.x1,"X",t._presLayout)}" y="${Mt(L.curve.y1,"Y",t._presLayout)}" />
|
|
89
89
|
<a:pt x="${Mt(L.x,"X",t._presLayout)}" y="${Mt(L.y,"Y",t._presLayout)}" />
|
|
90
|
-
</a:quadBezTo>`;break}else"close"in L?n+="<a:close />":L.moveTo||ne===0?n+=`<a:moveTo><a:pt x="${Mt(L.x,"X",t._presLayout)}" y="${Mt(L.y,"Y",t._presLayout)}" /></a:moveTo>`:n+=`<a:lnTo><a:pt x="${Mt(L.x,"X",t._presLayout)}" y="${Mt(L.y,"Y",t._presLayout)}" /></a:lnTo>`}),n+="</a:path>",n+="</a:pathLst>",n+="</a:custGeom>";else{if(n+='<a:prstGeom prst="'+i.shape+'"><a:avLst>',i.options.rectRadius)n+=`<a:gd name="adj" fmla="val ${Math.round(i.options.rectRadius*Tt*1e5/Math.min(T,D))}"/>`;else if(i.options.angleRange){for(let L=0;L<2;L++){const ne=i.options.angleRange[L];n+=`<a:gd name="adj${L+1}" fmla="val ${Bl(ne)}" />`}i.options.arcThicknessRatio&&(n+=`<a:gd name="adj3" fmla="val ${Math.round(i.options.arcThicknessRatio*5e4)}" />`)}n+="</a:avLst></a:prstGeom>"}n+=i.options.fill?Wa(i.options.fill):"<a:noFill/>",i.options.line&&(n+=i.options.line.width?`<a:ln w="${xt(i.options.line.width)}">`:"<a:ln>",i.options.line.color&&(n+=Wa(i.options.line)),i.options.line.dashType&&(n+=`<a:prstDash val="${i.options.line.dashType}"/>`),i.options.line.beginArrowType&&(n+=`<a:headEnd type="${i.options.line.beginArrowType}"/>`),i.options.line.endArrowType&&(n+=`<a:tailEnd type="${i.options.line.endArrowType}"/>`),n+="</a:ln>"),i.options.shadow&&i.options.shadow.type!=="none"&&(i.options.shadow.type=i.options.shadow.type||"outer",i.options.shadow.blur=xt(i.options.shadow.blur||8),i.options.shadow.offset=xt(i.options.shadow.offset||4),i.options.shadow.angle=Math.round((i.options.shadow.angle||270)*6e4),i.options.shadow.opacity=Math.round((i.options.shadow.opacity||.75)*1e5),i.options.shadow.color=i.options.shadow.color||Qy.color,n+="<a:effectLst>",n+=` <a:${i.options.shadow.type}Shdw ${i.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':""} blurRad="${i.options.shadow.blur}" dist="${i.options.shadow.offset}" dir="${i.options.shadow.angle}">`,n+=` <a:srgbClr val="${i.options.shadow.color}">`,n+=` <a:alpha val="${i.options.shadow.opacity}"/></a:srgbClr>`,n+=" </a:outerShdw>",n+="</a:effectLst>"),n+="</p:spPr>",n+=Ky(i),n+="</p:sp>";break;case Et.image:if(n+="<p:pic>",n+=" <p:nvPicPr>",n+=`<p:cNvPr id="${c+2}" name="${i.options.objectName}" descr="${_t(i.options.altText||i.image)}">`,!((x=i.hyperlink)===null||x===void 0)&&x.url&&(n+=`<a:hlinkClick r:id="rId${i.hyperlink._rId}" tooltip="${i.hyperlink.tooltip?_t(i.hyperlink.tooltip):""}"/>`),!((S=i.hyperlink)===null||S===void 0)&&S.slide&&(n+=`<a:hlinkClick r:id="rId${i.hyperlink._rId}" tooltip="${i.hyperlink.tooltip?_t(i.hyperlink.tooltip):""}" action="ppaction://hlinksldjump"/>`),n+=" </p:cNvPr>",n+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',n+=" <p:nvPr>"+Bp(P)+"</p:nvPr>",n+=" </p:nvPicPr>",n+="<p:blipFill>",(t._relsMedia||[]).filter(L=>L.rId===i.imageRid)[0]&&(t._relsMedia||[]).filter(L=>L.rId===i.imageRid)[0].extn==="svg"?(n+=`<a:blip r:embed="rId${i.imageRid-1}">`,n+=i.options.transparency?` <a:alphaModFix amt="${Math.round((100-i.options.transparency)*1e3)}"/>`:"",n+=" <a:extLst>",n+=' <a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">',n+=` <asvg:svgBlip xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main" r:embed="rId${i.imageRid}"/>`,n+=" </a:ext>",n+=" </a:extLst>",n+="</a:blip>"):(n+=`<a:blip r:embed="rId${i.imageRid}">`,n+=i.options.transparency?`<a:alphaModFix amt="${Math.round((100-i.options.transparency)*1e3)}"/>`:"",n+="</a:blip>"),X!=null&&X.type){const L=X.w?Mt(X.w,"X",t._presLayout):T,ne=X.h?Mt(X.h,"Y",t._presLayout):D,le=Mt(X.x||0,"X",t._presLayout),Ae=Mt(X.y||0,"Y",t._presLayout);n+=kS[X.type]({w:G,h:te},{w:L,h:ne,x:le,y:Ae}),G=L,te=ne}else n+=" <a:stretch><a:fillRect/></a:stretch>";n+="</p:blipFill>",n+="<p:spPr>",n+=" <a:xfrm"+M+">",n+=` <a:off x="${C}" y="${R}"/>`,n+=` <a:ext cx="${G}" cy="${te}"/>`,n+=" </a:xfrm>",n+=` <a:prstGeom prst="${he?"ellipse":"rect"}"><a:avLst/></a:prstGeom>`,i.options.shadow&&i.options.shadow.type!=="none"&&(i.options.shadow.type=i.options.shadow.type||"outer",i.options.shadow.blur=xt(i.options.shadow.blur||8),i.options.shadow.offset=xt(i.options.shadow.offset||4),i.options.shadow.angle=Math.round((i.options.shadow.angle||270)*6e4),i.options.shadow.opacity=Math.round((i.options.shadow.opacity||.75)*1e5),i.options.shadow.color=i.options.shadow.color||Qy.color,n+="<a:effectLst>",n+=`<a:${i.options.shadow.type}Shdw ${i.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':""} blurRad="${i.options.shadow.blur}" dist="${i.options.shadow.offset}" dir="${i.options.shadow.angle}">`,n+=`<a:srgbClr val="${i.options.shadow.color}">`,n+=`<a:alpha val="${i.options.shadow.opacity}"/></a:srgbClr>`,n+=`</a:${i.options.shadow.type}Shdw>`,n+="</a:effectLst>"),n+="</p:spPr>",n+="</p:pic>";break;case Et.media:i.mtype==="online"?(n+="<p:pic>",n+=" <p:nvPicPr>",n+=`<p:cNvPr id="${i.mediaRid+2}" name="${i.options.objectName}"/>`,n+=" <p:cNvPicPr/>",n+=" <p:nvPr>",n+=` <a:videoFile r:link="rId${i.mediaRid}"/>`,n+=" </p:nvPr>",n+=" </p:nvPicPr>",n+=` <p:blipFill><a:blip r:embed="rId${i.mediaRid+1}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>`,n+=" <p:spPr>",n+=` <a:xfrm${M}><a:off x="${C}" y="${R}"/><a:ext cx="${T}" cy="${D}"/></a:xfrm>`,n+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',n+=" </p:spPr>",n+="</p:pic>"):(n+="<p:pic>",n+=" <p:nvPicPr>",n+=`<p:cNvPr id="${i.mediaRid+2}" name="${i.options.objectName}"><a:hlinkClick r:id="" action="ppaction://media"/></p:cNvPr>`,n+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',n+=" <p:nvPr>",n+=` <a:videoFile r:link="rId${i.mediaRid}"/>`,n+=" <p:extLst>",n+=' <p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">',n+=` <p14:media xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" r:embed="rId${i.mediaRid+1}"/>`,n+=" </p:ext>",n+=" </p:extLst>",n+=" </p:nvPr>",n+=" </p:nvPicPr>",n+=` <p:blipFill><a:blip r:embed="rId${i.mediaRid+2}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>`,n+=" <p:spPr>",n+=` <a:xfrm${M}><a:off x="${C}" y="${R}"/><a:ext cx="${T}" cy="${D}"/></a:xfrm>`,n+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',n+=" </p:spPr>",n+="</p:pic>");break;case Et.chart:n+="<p:graphicFrame>",n+=" <p:nvGraphicFramePr>",n+=` <p:cNvPr id="${c+2}" name="${i.options.objectName}" descr="${_t(i.options.altText||"")}"/>`,n+=" <p:cNvGraphicFramePr/>",n+=` <p:nvPr>${Bp(P)}</p:nvPr>`,n+=" </p:nvGraphicFramePr>",n+=` <p:xfrm><a:off x="${C}" y="${R}"/><a:ext cx="${T}" cy="${D}"/></p:xfrm>`,n+=' <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',n+=' <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart">',n+=` <c:chart r:id="rId${i.chartRid}" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"/>`,n+=" </a:graphicData>",n+=" </a:graphic>",n+="</p:graphicFrame>";break;default:n+="";break}}),t._slideNumberProps&&(t._slideNumberProps.align||(t._slideNumberProps.align="left"),n+="<p:sp>",n+=" <p:nvSpPr>",n+=' <p:cNvPr id="25" name="Slide Number Placeholder 0"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr>',n+=' <p:nvPr><p:ph type="sldNum" sz="quarter" idx="4294967295"/></p:nvPr>',n+=" </p:nvSpPr>",n+=" <p:spPr>",n+=`<a:xfrm><a:off x="${Mt(t._slideNumberProps.x,"X",t._presLayout)}" y="${Mt(t._slideNumberProps.y,"Y",t._presLayout)}"/><a:ext cx="${t._slideNumberProps.w?Mt(t._slideNumberProps.w,"X",t._presLayout):"800000"}" cy="${t._slideNumberProps.h?Mt(t._slideNumberProps.h,"Y",t._presLayout):"300000"}"/></a:xfrm> <a:prstGeom prst="rect"><a:avLst/></a:prstGeom> <a:extLst><a:ext uri="{C572A759-6A51-4108-AA02-DFA0A04FC94B}"><ma14:wrappingTextBoxFlag val="0" xmlns:ma14="http://schemas.microsoft.com/office/mac/drawingml/2011/main"/></a:ext></a:extLst></p:spPr>`,n+="<p:txBody>",n+="<a:bodyPr",t._slideNumberProps.margin&&Array.isArray(t._slideNumberProps.margin)?(n+=` lIns="${xt(t._slideNumberProps.margin[3]||0)}"`,n+=` tIns="${xt(t._slideNumberProps.margin[0]||0)}"`,n+=` rIns="${xt(t._slideNumberProps.margin[1]||0)}"`,n+=` bIns="${xt(t._slideNumberProps.margin[2]||0)}"`):typeof t._slideNumberProps.margin=="number"&&(n+=` lIns="${xt(t._slideNumberProps.margin||0)}"`,n+=` tIns="${xt(t._slideNumberProps.margin||0)}"`,n+=` rIns="${xt(t._slideNumberProps.margin||0)}"`,n+=` bIns="${xt(t._slideNumberProps.margin||0)}"`),t._slideNumberProps.valign&&(n+=` anchor="${t._slideNumberProps.valign.replace("top","t").replace("middle","ctr").replace("bottom","b")}"`),n+="/>",n+=" <a:lstStyle><a:lvl1pPr>",(t._slideNumberProps.fontFace||t._slideNumberProps.fontSize||t._slideNumberProps.color)&&(n+=`<a:defRPr sz="${Math.round((t._slideNumberProps.fontSize||12)*100)}">`,t._slideNumberProps.color&&(n+=Wa(t._slideNumberProps.color)),t._slideNumberProps.fontFace&&(n+=`<a:latin typeface="${t._slideNumberProps.fontFace}"/><a:ea typeface="${t._slideNumberProps.fontFace}"/><a:cs typeface="${t._slideNumberProps.fontFace}"/>`),n+="</a:defRPr>"),n+="</a:lvl1pPr></a:lstStyle>",n+="<a:p>",t._slideNumberProps.align.startsWith("l")?n+='<a:pPr algn="l"/>':t._slideNumberProps.align.startsWith("c")?n+='<a:pPr algn="ctr"/>':t._slideNumberProps.align.startsWith("r")?n+='<a:pPr algn="r"/>':n+='<a:pPr algn="l"/>',n+=`<a:fld id="${ax}" type="slidenum"><a:rPr b="${t._slideNumberProps.bold?1:0}" lang="en-US"/>`,n+=`<a:t>${t._slideNum}</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p>`,n+="</p:txBody></p:sp>"),n+="</p:spTree>",n+="</p:cSld>",n}function Gg(t,e){let n=0,s='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+Cr+'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';return t._rels.forEach(i=>{n=Math.max(n,i.rId),i.type.toLowerCase().includes("hyperlink")?i.data==="slide"?s+=`<Relationship Id="rId${i.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slide${i.Target}.xml"/>`:s+=`<Relationship Id="rId${i.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${i.Target}" TargetMode="External"/>`:i.type.toLowerCase().includes("notesSlide")&&(s+=`<Relationship Id="rId${i.rId}" Target="${i.Target}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"/>`)}),(t._relsChart||[]).forEach(i=>{n=Math.max(n,i.rId),s+=`<Relationship Id="rId${i.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="${i.Target}"/>`}),(t._relsMedia||[]).forEach(i=>{const c=i.rId.toString();n=Math.max(n,i.rId),i.type.toLowerCase().includes("image")?s+='<Relationship Id="rId'+c+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+i.Target+'"/>':i.type.toLowerCase().includes("audio")?s.includes(' Target="'+i.Target+'"')?s+='<Relationship Id="rId'+c+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+i.Target+'"/>':s+='<Relationship Id="rId'+c+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio" Target="'+i.Target+'"/>':i.type.toLowerCase().includes("video")?s.includes(' Target="'+i.Target+'"')?s+='<Relationship Id="rId'+c+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+i.Target+'"/>':s+='<Relationship Id="rId'+c+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" Target="'+i.Target+'"/>':i.type.toLowerCase().includes("online")&&(s.includes(' Target="'+i.Target+'"')?s+='<Relationship Id="rId'+c+'" Type="http://schemas.microsoft.com/office/2007/relationships/image" Target="'+i.Target+'"/>':s+='<Relationship Id="rId'+c+'" Target="'+i.Target+'" TargetMode="External" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"/>')}),e.forEach((i,c)=>{s+=`<Relationship Id="rId${n+c+1}" Type="${i.type}" Target="${i.target}"/>`}),s+="</Relationships>",s}function qy(t,e){var n,s;let i="",c="",d="",h="";const p=e?"a:lvl1pPr":"a:pPr";let u=xt(hS),A=`<${p}${t.options.rtlMode?' rtl="1" ':""}`;{if(t.options.align)switch(t.options.align){case"left":A+=' algn="l"';break;case"right":A+=' algn="r"';break;case"center":A+=' algn="ctr"';break;case"justify":A+=' algn="just"';break;default:A+="";break}if(t.options.lineSpacing?c=`<a:lnSpc><a:spcPts val="${Math.round(t.options.lineSpacing*100)}"/></a:lnSpc>`:t.options.lineSpacingMultiple&&(c=`<a:lnSpc><a:spcPct val="${Math.round(t.options.lineSpacingMultiple*1e5)}"/></a:lnSpc>`),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&t.options.indentLevel>0&&(A+=` lvl="${t.options.indentLevel}"`),t.options.paraSpaceBefore&&!isNaN(Number(t.options.paraSpaceBefore))&&t.options.paraSpaceBefore>0&&(d+=`<a:spcBef><a:spcPts val="${Math.round(t.options.paraSpaceBefore*100)}"/></a:spcBef>`),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&t.options.paraSpaceAfter>0&&(d+=`<a:spcAft><a:spcPts val="${Math.round(t.options.paraSpaceAfter*100)}"/></a:spcAft>`),typeof t.options.bullet=="object")if(!((s=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.bullet)===null||s===void 0)&&s.indent&&(u=xt(t.options.bullet.indent)),t.options.bullet.type)t.options.bullet.type.toString().toLowerCase()==="number"&&(A+=` marL="${t.options.indentLevel&&t.options.indentLevel>0?u+u*t.options.indentLevel:u}" indent="-${u}"`,i=`<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="${t.options.bullet.style||"arabicPeriod"}" startAt="${t.options.bullet.numberStartAt||t.options.bullet.startAt||"1"}"/>`);else if(t.options.bullet.characterCode){let y=`&#x${t.options.bullet.characterCode};`;/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)||(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),y=Cu.DEFAULT),A+=` marL="${t.options.indentLevel&&t.options.indentLevel>0?u+u*t.options.indentLevel:u}" indent="-${u}"`,i='<a:buSzPct val="100000"/><a:buChar char="'+y+'"/>'}else if(t.options.bullet.code){let y=`&#x${t.options.bullet.code};`;/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)||(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),y=Cu.DEFAULT),A+=` marL="${t.options.indentLevel&&t.options.indentLevel>0?u+u*t.options.indentLevel:u}" indent="-${u}"`,i='<a:buSzPct val="100000"/><a:buChar char="'+y+'"/>'}else A+=` marL="${t.options.indentLevel&&t.options.indentLevel>0?u+u*t.options.indentLevel:u}" indent="-${u}"`,i=`<a:buSzPct val="100000"/><a:buChar char="${Cu.DEFAULT}"/>`;else t.options.bullet?(A+=` marL="${t.options.indentLevel&&t.options.indentLevel>0?u+u*t.options.indentLevel:u}" indent="-${u}"`,i=`<a:buSzPct val="100000"/><a:buChar char="${Cu.DEFAULT}"/>`):t.options.bullet||(A+=' indent="0" marL="0"',i="<a:buNone/>");t.options.tabStops&&Array.isArray(t.options.tabStops)&&(h=`<a:tabLst>${t.options.tabStops.map(x=>`<a:tab pos="${Xt(x.position||1)}" algn="${x.alignment||"l"}"/>`).join("")}</a:tabLst>`),A+=">"+c+d+i+h,e&&(A+=cx(t.options,!0)),A+="</"+p+">"}return A}function cx(t,e){var n;let s="";const i=e?"a:defRPr":"a:rPr";if(s+="<"+i+' lang="'+(t.lang?t.lang:"en-US")+'"'+(t.lang?' altLang="en-US"':""),s+=t.fontSize?` sz="${Math.round(t.fontSize*100)}"`:"",s+=t!=null&&t.bold?` b="${t.bold?"1":"0"}"`:"",s+=t!=null&&t.italic?` i="${t.italic?"1":"0"}"`:"",s+=t!=null&&t.strike?` strike="${typeof t.strike=="string"?t.strike:"sngStrike"}"`:"",typeof t.underline=="object"&&(!((n=t.underline)===null||n===void 0)&&n.style)?s+=` u="${t.underline.style}"`:typeof t.underline=="string"?s+=` u="${String(t.underline)}"`:t.hyperlink&&(s+=' u="sng"'),t.baseline?s+=` baseline="${Math.round(t.baseline*50)}"`:t.subscript?s+=' baseline="-40000"':t.superscript&&(s+=' baseline="30000"'),s+=t.charSpacing?` spc="${Math.round(t.charSpacing*100)}" kern="0"`:"",s+=' dirty="0">',(t.color||t.fontFace||t.outline||typeof t.underline=="object"&&t.underline.color)&&(t.outline&&typeof t.outline=="object"&&(s+=`<a:ln w="${xt(t.outline.size||.75)}">${Wa(t.outline.color||"FFFFFF")}</a:ln>`),t.color&&(s+=Wa({color:t.color,transparency:t.transparency})),t.highlight&&(s+=`<a:highlight>${Zt(t.highlight)}</a:highlight>`),typeof t.underline=="object"&&t.underline.color&&(s+=`<a:uFill>${Wa(t.underline.color)}</a:uFill>`),t.glow&&(s+=`<a:effectLst>${vS(t.glow,AS)}</a:effectLst>`),t.fontFace&&(s+=`<a:latin typeface="${t.fontFace}" pitchFamily="34" charset="0"/><a:ea typeface="${t.fontFace}" pitchFamily="34" charset="-122"/><a:cs typeface="${t.fontFace}" pitchFamily="34" charset="-120"/>`)),t.hyperlink){if(typeof t.hyperlink!="object")throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");t.hyperlink.url?s+=`<a:hlinkClick r:id="rId${t.hyperlink._rId}" invalidUrl="" action="" tgtFrame="" tooltip="${t.hyperlink.tooltip?_t(t.hyperlink.tooltip):""}" history="1" highlightClick="0" endSnd="0"${t.color?">":"/>"}`:t.hyperlink.slide&&(s+=`<a:hlinkClick r:id="rId${t.hyperlink._rId}" action="ppaction://hlinksldjump" tooltip="${t.hyperlink.tooltip?_t(t.hyperlink.tooltip):""}"${t.color?">":"/>"}`),t.color&&(s+=" <a:extLst>",s+=' <a:ext uri="{A12FA001-AC4F-418D-AE19-62706E023703}">',s+=' <ahyp:hlinkClr xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" val="tx"/>',s+=" </a:ext>",s+=" </a:extLst>",s+="</a:hlinkClick>")}return s+=`</${i}>`,s}function NS(t){return t.text?`<a:r>${cx(t.options,!1)}<a:t>${_t(t.text)}</a:t></a:r>`:""}function BS(t){let e="<a:bodyPr";return t&&t._type===Et.text&&t.options._bodyProp?(e+=t.options._bodyProp.wrap?' wrap="square"':' wrap="none"',(t.options._bodyProp.lIns||t.options._bodyProp.lIns===0)&&(e+=` lIns="${t.options._bodyProp.lIns}"`),(t.options._bodyProp.tIns||t.options._bodyProp.tIns===0)&&(e+=` tIns="${t.options._bodyProp.tIns}"`),(t.options._bodyProp.rIns||t.options._bodyProp.rIns===0)&&(e+=` rIns="${t.options._bodyProp.rIns}"`),(t.options._bodyProp.bIns||t.options._bodyProp.bIns===0)&&(e+=` bIns="${t.options._bodyProp.bIns}"`),e+=' rtlCol="0"',t.options._bodyProp.anchor&&(e+=' anchor="'+t.options._bodyProp.anchor+'"'),t.options._bodyProp.vert&&(e+=' vert="'+t.options._bodyProp.vert+'"'),e+=">",t.options.fit&&(t.options.fit==="none"?e+="":t.options.fit==="shrink"?e+="<a:normAutofit/>":t.options.fit==="resize"&&(e+="<a:spAutoFit/>")),t.options.shrinkText&&(e+="<a:normAutofit/>"),e+=t.options._bodyProp.autoFit?"<a:spAutoFit/>":"",e+="</a:bodyPr>"):(e+=' wrap="square" rtlCol="0">',e+="</a:bodyPr>"),t._type===Et.tablecell?"<a:bodyPr/>":e}function Ky(t){const e=t.options||{};let n=[];const s=[];if(e&&t._type!==Et.tablecell&&(typeof t.text>"u"||t.text===null))return"";let i=t._type===Et.tablecell?"<a:txBody>":"<p:txBody>";i+=BS(t),e.h===0&&e.line&&e.align?i+='<a:lstStyle><a:lvl1pPr algn="l"/></a:lstStyle>':t._type==="placeholder"?i+=`<a:lstStyle>${qy(t,!0)}</a:lstStyle>`:i+="<a:lstStyle/>",typeof t.text=="string"||typeof t.text=="number"?n.push({text:t.text.toString(),options:e||{}}):t.text&&!Array.isArray(t.text)&&typeof t.text=="object"&&Object.keys(t.text).includes("text")?n.push({text:t.text||"",options:t.options||{}}):Array.isArray(t.text)&&(n=t.text.map(h=>({text:h.text,options:h.options}))),n.forEach((h,p)=>{h.text||(h.text=""),h.options=h.options||e||{},p===0&&h.options&&!h.options.bullet&&e.bullet&&(h.options.bullet=e.bullet),(typeof h.text=="string"||typeof h.text=="number")&&(h.text=h.text.toString().replace(/\r*\n/g,Cr)),h.text.includes(Cr)&&h.text.match(/\n$/g)===null?h.text.split(Cr).forEach(u=>{h.options.breakLine=!0,s.push({text:u,options:h.options})}):s.push(h)});const c=[];let d=[];return s.forEach((h,p)=>{d.length>0&&(h.options.align||e.align)?h.options.align!==s[p-1].options.align&&(c.push(d),d=[]):d.length>0&&h.options.bullet&&d.length>0&&(c.push(d),d=[],h.options.breakLine=!1),d.push(h),d.length>0&&h.options.breakLine&&p+1<s.length&&(c.push(d),d=[]),p+1===s.length&&c.push(d)}),c.forEach(h=>{var p;let u=!1;i+="<a:p>";let A=`<a:pPr ${!((p=h[0].options)===null||p===void 0)&&p.rtlMode?' rtl="1" ':""}`;h.forEach((y,x)=>{y.options._lineIdx=x,x>0&&y.options.softBreakBefore&&(i+="<a:br/>"),y.options.align=y.options.align||e.align,y.options.lineSpacing=y.options.lineSpacing||e.lineSpacing,y.options.lineSpacingMultiple=y.options.lineSpacingMultiple||e.lineSpacingMultiple,y.options.indentLevel=y.options.indentLevel||e.indentLevel,y.options.paraSpaceBefore=y.options.paraSpaceBefore||e.paraSpaceBefore,y.options.paraSpaceAfter=y.options.paraSpaceAfter||e.paraSpaceAfter,A=qy(y,!1),i+=A.replace("<a:pPr></a:pPr>",""),Object.entries(e).filter(([S])=>!(y.options.hyperlink&&S==="color")).forEach(([S,C])=>{S!=="bullet"&&!y.options[S]&&(y.options[S]=C)}),i+=NS(y),(!y.text&&e.fontSize||y.options.fontSize)&&(u=!0,e.fontSize=e.fontSize||y.options.fontSize)}),t._type===Et.tablecell&&(e.fontSize||e.fontFace)?e.fontFace?(i+=`<a:endParaRPr lang="${e.lang||"en-US"}"`+(e.fontSize?` sz="${Math.round(e.fontSize*100)}"`:"")+' dirty="0">',i+=`<a:latin typeface="${e.fontFace}" charset="0"/>`,i+=`<a:ea typeface="${e.fontFace}" charset="0"/>`,i+=`<a:cs typeface="${e.fontFace}" charset="0"/>`,i+="</a:endParaRPr>"):i+=`<a:endParaRPr lang="${e.lang||"en-US"}"`+(e.fontSize?` sz="${Math.round(e.fontSize*100)}"`:"")+' dirty="0"/>':u?i+=`<a:endParaRPr lang="${e.lang||"en-US"}"`+(e.fontSize?` sz="${Math.round(e.fontSize*100)}"`:"")+' dirty="0"/>':i+=`<a:endParaRPr lang="${e.lang||"en-US"}" dirty="0"/>`,i+="</a:p>"}),i.indexOf("<a:p>")===-1&&(i+="<a:p><a:endParaRPr/></a:p>"),i+=t._type===Et.tablecell?"</a:txBody>":"</p:txBody>",i}function Bp(t){var e,n;if(!t)return"";const s=!((e=t.options)===null||e===void 0)&&e._placeholderIdx?t.options._placeholderIdx:"",i=!((n=t.options)===null||n===void 0)&&n._placeholderType?t.options._placeholderType:"",c=i&&yf[i]?yf[i].toString():"";return`<p:ph
|
|
90
|
+
</a:quadBezTo>`;break}else"close"in L?n+="<a:close />":L.moveTo||ne===0?n+=`<a:moveTo><a:pt x="${Mt(L.x,"X",t._presLayout)}" y="${Mt(L.y,"Y",t._presLayout)}" /></a:moveTo>`:n+=`<a:lnTo><a:pt x="${Mt(L.x,"X",t._presLayout)}" y="${Mt(L.y,"Y",t._presLayout)}" /></a:lnTo>`}),n+="</a:path>",n+="</a:pathLst>",n+="</a:custGeom>";else{if(n+='<a:prstGeom prst="'+i.shape+'"><a:avLst>',i.options.rectRadius)n+=`<a:gd name="adj" fmla="val ${Math.round(i.options.rectRadius*Tt*1e5/Math.min(T,D))}"/>`;else if(i.options.angleRange){for(let L=0;L<2;L++){const ne=i.options.angleRange[L];n+=`<a:gd name="adj${L+1}" fmla="val ${Bl(ne)}" />`}i.options.arcThicknessRatio&&(n+=`<a:gd name="adj3" fmla="val ${Math.round(i.options.arcThicknessRatio*5e4)}" />`)}n+="</a:avLst></a:prstGeom>"}n+=i.options.fill?Wa(i.options.fill):"<a:noFill/>",i.options.line&&(n+=i.options.line.width?`<a:ln w="${xt(i.options.line.width)}">`:"<a:ln>",i.options.line.color&&(n+=Wa(i.options.line)),i.options.line.dashType&&(n+=`<a:prstDash val="${i.options.line.dashType}"/>`),i.options.line.beginArrowType&&(n+=`<a:headEnd type="${i.options.line.beginArrowType}"/>`),i.options.line.endArrowType&&(n+=`<a:tailEnd type="${i.options.line.endArrowType}"/>`),n+="</a:ln>"),i.options.shadow&&i.options.shadow.type!=="none"&&(i.options.shadow.type=i.options.shadow.type||"outer",i.options.shadow.blur=xt(i.options.shadow.blur||8),i.options.shadow.offset=xt(i.options.shadow.offset||4),i.options.shadow.angle=Math.round((i.options.shadow.angle||270)*6e4),i.options.shadow.opacity=Math.round((i.options.shadow.opacity||.75)*1e5),i.options.shadow.color=i.options.shadow.color||Qy.color,n+="<a:effectLst>",n+=` <a:${i.options.shadow.type}Shdw ${i.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':""} blurRad="${i.options.shadow.blur}" dist="${i.options.shadow.offset}" dir="${i.options.shadow.angle}">`,n+=` <a:srgbClr val="${i.options.shadow.color}">`,n+=` <a:alpha val="${i.options.shadow.opacity}"/></a:srgbClr>`,n+=" </a:outerShdw>",n+="</a:effectLst>"),n+="</p:spPr>",n+=Ky(i),n+="</p:sp>";break;case Et.image:if(n+="<p:pic>",n+=" <p:nvPicPr>",n+=`<p:cNvPr id="${c+2}" name="${i.options.objectName}" descr="${_t(i.options.altText||i.image)}">`,!((x=i.hyperlink)===null||x===void 0)&&x.url&&(n+=`<a:hlinkClick r:id="rId${i.hyperlink._rId}" tooltip="${i.hyperlink.tooltip?_t(i.hyperlink.tooltip):""}"/>`),!((S=i.hyperlink)===null||S===void 0)&&S.slide&&(n+=`<a:hlinkClick r:id="rId${i.hyperlink._rId}" tooltip="${i.hyperlink.tooltip?_t(i.hyperlink.tooltip):""}" action="ppaction://hlinksldjump"/>`),n+=" </p:cNvPr>",n+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',n+=" <p:nvPr>"+Bp(P)+"</p:nvPr>",n+=" </p:nvPicPr>",n+="<p:blipFill>",(t._relsMedia||[]).filter(L=>L.rId===i.imageRid)[0]&&(t._relsMedia||[]).filter(L=>L.rId===i.imageRid)[0].extn==="svg"?(n+=`<a:blip r:embed="rId${i.imageRid-1}">`,n+=i.options.transparency?` <a:alphaModFix amt="${Math.round((100-i.options.transparency)*1e3)}"/>`:"",n+=" <a:extLst>",n+=' <a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">',n+=` <asvg:svgBlip xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main" r:embed="rId${i.imageRid}"/>`,n+=" </a:ext>",n+=" </a:extLst>",n+="</a:blip>"):(n+=`<a:blip r:embed="rId${i.imageRid}">`,n+=i.options.transparency?`<a:alphaModFix amt="${Math.round((100-i.options.transparency)*1e3)}"/>`:"",n+="</a:blip>"),V!=null&&V.type){const L=V.w?Mt(V.w,"X",t._presLayout):T,ne=V.h?Mt(V.h,"Y",t._presLayout):D,le=Mt(V.x||0,"X",t._presLayout),pe=Mt(V.y||0,"Y",t._presLayout);n+=kS[V.type]({w:W,h:se},{w:L,h:ne,x:le,y:pe}),W=L,se=ne}else n+=" <a:stretch><a:fillRect/></a:stretch>";n+="</p:blipFill>",n+="<p:spPr>",n+=" <a:xfrm"+M+">",n+=` <a:off x="${C}" y="${R}"/>`,n+=` <a:ext cx="${W}" cy="${se}"/>`,n+=" </a:xfrm>",n+=` <a:prstGeom prst="${ge?"ellipse":"rect"}"><a:avLst/></a:prstGeom>`,i.options.shadow&&i.options.shadow.type!=="none"&&(i.options.shadow.type=i.options.shadow.type||"outer",i.options.shadow.blur=xt(i.options.shadow.blur||8),i.options.shadow.offset=xt(i.options.shadow.offset||4),i.options.shadow.angle=Math.round((i.options.shadow.angle||270)*6e4),i.options.shadow.opacity=Math.round((i.options.shadow.opacity||.75)*1e5),i.options.shadow.color=i.options.shadow.color||Qy.color,n+="<a:effectLst>",n+=`<a:${i.options.shadow.type}Shdw ${i.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':""} blurRad="${i.options.shadow.blur}" dist="${i.options.shadow.offset}" dir="${i.options.shadow.angle}">`,n+=`<a:srgbClr val="${i.options.shadow.color}">`,n+=`<a:alpha val="${i.options.shadow.opacity}"/></a:srgbClr>`,n+=`</a:${i.options.shadow.type}Shdw>`,n+="</a:effectLst>"),n+="</p:spPr>",n+="</p:pic>";break;case Et.media:i.mtype==="online"?(n+="<p:pic>",n+=" <p:nvPicPr>",n+=`<p:cNvPr id="${i.mediaRid+2}" name="${i.options.objectName}"/>`,n+=" <p:cNvPicPr/>",n+=" <p:nvPr>",n+=` <a:videoFile r:link="rId${i.mediaRid}"/>`,n+=" </p:nvPr>",n+=" </p:nvPicPr>",n+=` <p:blipFill><a:blip r:embed="rId${i.mediaRid+1}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>`,n+=" <p:spPr>",n+=` <a:xfrm${M}><a:off x="${C}" y="${R}"/><a:ext cx="${T}" cy="${D}"/></a:xfrm>`,n+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',n+=" </p:spPr>",n+="</p:pic>"):(n+="<p:pic>",n+=" <p:nvPicPr>",n+=`<p:cNvPr id="${i.mediaRid+2}" name="${i.options.objectName}"><a:hlinkClick r:id="" action="ppaction://media"/></p:cNvPr>`,n+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',n+=" <p:nvPr>",n+=` <a:videoFile r:link="rId${i.mediaRid}"/>`,n+=" <p:extLst>",n+=' <p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">',n+=` <p14:media xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" r:embed="rId${i.mediaRid+1}"/>`,n+=" </p:ext>",n+=" </p:extLst>",n+=" </p:nvPr>",n+=" </p:nvPicPr>",n+=` <p:blipFill><a:blip r:embed="rId${i.mediaRid+2}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>`,n+=" <p:spPr>",n+=` <a:xfrm${M}><a:off x="${C}" y="${R}"/><a:ext cx="${T}" cy="${D}"/></a:xfrm>`,n+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',n+=" </p:spPr>",n+="</p:pic>");break;case Et.chart:n+="<p:graphicFrame>",n+=" <p:nvGraphicFramePr>",n+=` <p:cNvPr id="${c+2}" name="${i.options.objectName}" descr="${_t(i.options.altText||"")}"/>`,n+=" <p:cNvGraphicFramePr/>",n+=` <p:nvPr>${Bp(P)}</p:nvPr>`,n+=" </p:nvGraphicFramePr>",n+=` <p:xfrm><a:off x="${C}" y="${R}"/><a:ext cx="${T}" cy="${D}"/></p:xfrm>`,n+=' <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',n+=' <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart">',n+=` <c:chart r:id="rId${i.chartRid}" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"/>`,n+=" </a:graphicData>",n+=" </a:graphic>",n+="</p:graphicFrame>";break;default:n+="";break}}),t._slideNumberProps&&(t._slideNumberProps.align||(t._slideNumberProps.align="left"),n+="<p:sp>",n+=" <p:nvSpPr>",n+=' <p:cNvPr id="25" name="Slide Number Placeholder 0"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr>',n+=' <p:nvPr><p:ph type="sldNum" sz="quarter" idx="4294967295"/></p:nvPr>',n+=" </p:nvSpPr>",n+=" <p:spPr>",n+=`<a:xfrm><a:off x="${Mt(t._slideNumberProps.x,"X",t._presLayout)}" y="${Mt(t._slideNumberProps.y,"Y",t._presLayout)}"/><a:ext cx="${t._slideNumberProps.w?Mt(t._slideNumberProps.w,"X",t._presLayout):"800000"}" cy="${t._slideNumberProps.h?Mt(t._slideNumberProps.h,"Y",t._presLayout):"300000"}"/></a:xfrm> <a:prstGeom prst="rect"><a:avLst/></a:prstGeom> <a:extLst><a:ext uri="{C572A759-6A51-4108-AA02-DFA0A04FC94B}"><ma14:wrappingTextBoxFlag val="0" xmlns:ma14="http://schemas.microsoft.com/office/mac/drawingml/2011/main"/></a:ext></a:extLst></p:spPr>`,n+="<p:txBody>",n+="<a:bodyPr",t._slideNumberProps.margin&&Array.isArray(t._slideNumberProps.margin)?(n+=` lIns="${xt(t._slideNumberProps.margin[3]||0)}"`,n+=` tIns="${xt(t._slideNumberProps.margin[0]||0)}"`,n+=` rIns="${xt(t._slideNumberProps.margin[1]||0)}"`,n+=` bIns="${xt(t._slideNumberProps.margin[2]||0)}"`):typeof t._slideNumberProps.margin=="number"&&(n+=` lIns="${xt(t._slideNumberProps.margin||0)}"`,n+=` tIns="${xt(t._slideNumberProps.margin||0)}"`,n+=` rIns="${xt(t._slideNumberProps.margin||0)}"`,n+=` bIns="${xt(t._slideNumberProps.margin||0)}"`),t._slideNumberProps.valign&&(n+=` anchor="${t._slideNumberProps.valign.replace("top","t").replace("middle","ctr").replace("bottom","b")}"`),n+="/>",n+=" <a:lstStyle><a:lvl1pPr>",(t._slideNumberProps.fontFace||t._slideNumberProps.fontSize||t._slideNumberProps.color)&&(n+=`<a:defRPr sz="${Math.round((t._slideNumberProps.fontSize||12)*100)}">`,t._slideNumberProps.color&&(n+=Wa(t._slideNumberProps.color)),t._slideNumberProps.fontFace&&(n+=`<a:latin typeface="${t._slideNumberProps.fontFace}"/><a:ea typeface="${t._slideNumberProps.fontFace}"/><a:cs typeface="${t._slideNumberProps.fontFace}"/>`),n+="</a:defRPr>"),n+="</a:lvl1pPr></a:lstStyle>",n+="<a:p>",t._slideNumberProps.align.startsWith("l")?n+='<a:pPr algn="l"/>':t._slideNumberProps.align.startsWith("c")?n+='<a:pPr algn="ctr"/>':t._slideNumberProps.align.startsWith("r")?n+='<a:pPr algn="r"/>':n+='<a:pPr algn="l"/>',n+=`<a:fld id="${ax}" type="slidenum"><a:rPr b="${t._slideNumberProps.bold?1:0}" lang="en-US"/>`,n+=`<a:t>${t._slideNum}</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p>`,n+="</p:txBody></p:sp>"),n+="</p:spTree>",n+="</p:cSld>",n}function Gg(t,e){let n=0,s='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+Cr+'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';return t._rels.forEach(i=>{n=Math.max(n,i.rId),i.type.toLowerCase().includes("hyperlink")?i.data==="slide"?s+=`<Relationship Id="rId${i.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slide${i.Target}.xml"/>`:s+=`<Relationship Id="rId${i.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${i.Target}" TargetMode="External"/>`:i.type.toLowerCase().includes("notesSlide")&&(s+=`<Relationship Id="rId${i.rId}" Target="${i.Target}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"/>`)}),(t._relsChart||[]).forEach(i=>{n=Math.max(n,i.rId),s+=`<Relationship Id="rId${i.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="${i.Target}"/>`}),(t._relsMedia||[]).forEach(i=>{const c=i.rId.toString();n=Math.max(n,i.rId),i.type.toLowerCase().includes("image")?s+='<Relationship Id="rId'+c+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+i.Target+'"/>':i.type.toLowerCase().includes("audio")?s.includes(' Target="'+i.Target+'"')?s+='<Relationship Id="rId'+c+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+i.Target+'"/>':s+='<Relationship Id="rId'+c+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio" Target="'+i.Target+'"/>':i.type.toLowerCase().includes("video")?s.includes(' Target="'+i.Target+'"')?s+='<Relationship Id="rId'+c+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+i.Target+'"/>':s+='<Relationship Id="rId'+c+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" Target="'+i.Target+'"/>':i.type.toLowerCase().includes("online")&&(s.includes(' Target="'+i.Target+'"')?s+='<Relationship Id="rId'+c+'" Type="http://schemas.microsoft.com/office/2007/relationships/image" Target="'+i.Target+'"/>':s+='<Relationship Id="rId'+c+'" Target="'+i.Target+'" TargetMode="External" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"/>')}),e.forEach((i,c)=>{s+=`<Relationship Id="rId${n+c+1}" Type="${i.type}" Target="${i.target}"/>`}),s+="</Relationships>",s}function qy(t,e){var n,s;let i="",c="",d="",h="";const p=e?"a:lvl1pPr":"a:pPr";let u=xt(hS),A=`<${p}${t.options.rtlMode?' rtl="1" ':""}`;{if(t.options.align)switch(t.options.align){case"left":A+=' algn="l"';break;case"right":A+=' algn="r"';break;case"center":A+=' algn="ctr"';break;case"justify":A+=' algn="just"';break;default:A+="";break}if(t.options.lineSpacing?c=`<a:lnSpc><a:spcPts val="${Math.round(t.options.lineSpacing*100)}"/></a:lnSpc>`:t.options.lineSpacingMultiple&&(c=`<a:lnSpc><a:spcPct val="${Math.round(t.options.lineSpacingMultiple*1e5)}"/></a:lnSpc>`),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&t.options.indentLevel>0&&(A+=` lvl="${t.options.indentLevel}"`),t.options.paraSpaceBefore&&!isNaN(Number(t.options.paraSpaceBefore))&&t.options.paraSpaceBefore>0&&(d+=`<a:spcBef><a:spcPts val="${Math.round(t.options.paraSpaceBefore*100)}"/></a:spcBef>`),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&t.options.paraSpaceAfter>0&&(d+=`<a:spcAft><a:spcPts val="${Math.round(t.options.paraSpaceAfter*100)}"/></a:spcAft>`),typeof t.options.bullet=="object")if(!((s=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.bullet)===null||s===void 0)&&s.indent&&(u=xt(t.options.bullet.indent)),t.options.bullet.type)t.options.bullet.type.toString().toLowerCase()==="number"&&(A+=` marL="${t.options.indentLevel&&t.options.indentLevel>0?u+u*t.options.indentLevel:u}" indent="-${u}"`,i=`<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="${t.options.bullet.style||"arabicPeriod"}" startAt="${t.options.bullet.numberStartAt||t.options.bullet.startAt||"1"}"/>`);else if(t.options.bullet.characterCode){let y=`&#x${t.options.bullet.characterCode};`;/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)||(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),y=Cu.DEFAULT),A+=` marL="${t.options.indentLevel&&t.options.indentLevel>0?u+u*t.options.indentLevel:u}" indent="-${u}"`,i='<a:buSzPct val="100000"/><a:buChar char="'+y+'"/>'}else if(t.options.bullet.code){let y=`&#x${t.options.bullet.code};`;/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)||(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),y=Cu.DEFAULT),A+=` marL="${t.options.indentLevel&&t.options.indentLevel>0?u+u*t.options.indentLevel:u}" indent="-${u}"`,i='<a:buSzPct val="100000"/><a:buChar char="'+y+'"/>'}else A+=` marL="${t.options.indentLevel&&t.options.indentLevel>0?u+u*t.options.indentLevel:u}" indent="-${u}"`,i=`<a:buSzPct val="100000"/><a:buChar char="${Cu.DEFAULT}"/>`;else t.options.bullet?(A+=` marL="${t.options.indentLevel&&t.options.indentLevel>0?u+u*t.options.indentLevel:u}" indent="-${u}"`,i=`<a:buSzPct val="100000"/><a:buChar char="${Cu.DEFAULT}"/>`):t.options.bullet||(A+=' indent="0" marL="0"',i="<a:buNone/>");t.options.tabStops&&Array.isArray(t.options.tabStops)&&(h=`<a:tabLst>${t.options.tabStops.map(x=>`<a:tab pos="${Xt(x.position||1)}" algn="${x.alignment||"l"}"/>`).join("")}</a:tabLst>`),A+=">"+c+d+i+h,e&&(A+=cx(t.options,!0)),A+="</"+p+">"}return A}function cx(t,e){var n;let s="";const i=e?"a:defRPr":"a:rPr";if(s+="<"+i+' lang="'+(t.lang?t.lang:"en-US")+'"'+(t.lang?' altLang="en-US"':""),s+=t.fontSize?` sz="${Math.round(t.fontSize*100)}"`:"",s+=t!=null&&t.bold?` b="${t.bold?"1":"0"}"`:"",s+=t!=null&&t.italic?` i="${t.italic?"1":"0"}"`:"",s+=t!=null&&t.strike?` strike="${typeof t.strike=="string"?t.strike:"sngStrike"}"`:"",typeof t.underline=="object"&&(!((n=t.underline)===null||n===void 0)&&n.style)?s+=` u="${t.underline.style}"`:typeof t.underline=="string"?s+=` u="${String(t.underline)}"`:t.hyperlink&&(s+=' u="sng"'),t.baseline?s+=` baseline="${Math.round(t.baseline*50)}"`:t.subscript?s+=' baseline="-40000"':t.superscript&&(s+=' baseline="30000"'),s+=t.charSpacing?` spc="${Math.round(t.charSpacing*100)}" kern="0"`:"",s+=' dirty="0">',(t.color||t.fontFace||t.outline||typeof t.underline=="object"&&t.underline.color)&&(t.outline&&typeof t.outline=="object"&&(s+=`<a:ln w="${xt(t.outline.size||.75)}">${Wa(t.outline.color||"FFFFFF")}</a:ln>`),t.color&&(s+=Wa({color:t.color,transparency:t.transparency})),t.highlight&&(s+=`<a:highlight>${Zt(t.highlight)}</a:highlight>`),typeof t.underline=="object"&&t.underline.color&&(s+=`<a:uFill>${Wa(t.underline.color)}</a:uFill>`),t.glow&&(s+=`<a:effectLst>${vS(t.glow,AS)}</a:effectLst>`),t.fontFace&&(s+=`<a:latin typeface="${t.fontFace}" pitchFamily="34" charset="0"/><a:ea typeface="${t.fontFace}" pitchFamily="34" charset="-122"/><a:cs typeface="${t.fontFace}" pitchFamily="34" charset="-120"/>`)),t.hyperlink){if(typeof t.hyperlink!="object")throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");t.hyperlink.url?s+=`<a:hlinkClick r:id="rId${t.hyperlink._rId}" invalidUrl="" action="" tgtFrame="" tooltip="${t.hyperlink.tooltip?_t(t.hyperlink.tooltip):""}" history="1" highlightClick="0" endSnd="0"${t.color?">":"/>"}`:t.hyperlink.slide&&(s+=`<a:hlinkClick r:id="rId${t.hyperlink._rId}" action="ppaction://hlinksldjump" tooltip="${t.hyperlink.tooltip?_t(t.hyperlink.tooltip):""}"${t.color?">":"/>"}`),t.color&&(s+=" <a:extLst>",s+=' <a:ext uri="{A12FA001-AC4F-418D-AE19-62706E023703}">',s+=' <ahyp:hlinkClr xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" val="tx"/>',s+=" </a:ext>",s+=" </a:extLst>",s+="</a:hlinkClick>")}return s+=`</${i}>`,s}function NS(t){return t.text?`<a:r>${cx(t.options,!1)}<a:t>${_t(t.text)}</a:t></a:r>`:""}function BS(t){let e="<a:bodyPr";return t&&t._type===Et.text&&t.options._bodyProp?(e+=t.options._bodyProp.wrap?' wrap="square"':' wrap="none"',(t.options._bodyProp.lIns||t.options._bodyProp.lIns===0)&&(e+=` lIns="${t.options._bodyProp.lIns}"`),(t.options._bodyProp.tIns||t.options._bodyProp.tIns===0)&&(e+=` tIns="${t.options._bodyProp.tIns}"`),(t.options._bodyProp.rIns||t.options._bodyProp.rIns===0)&&(e+=` rIns="${t.options._bodyProp.rIns}"`),(t.options._bodyProp.bIns||t.options._bodyProp.bIns===0)&&(e+=` bIns="${t.options._bodyProp.bIns}"`),e+=' rtlCol="0"',t.options._bodyProp.anchor&&(e+=' anchor="'+t.options._bodyProp.anchor+'"'),t.options._bodyProp.vert&&(e+=' vert="'+t.options._bodyProp.vert+'"'),e+=">",t.options.fit&&(t.options.fit==="none"?e+="":t.options.fit==="shrink"?e+="<a:normAutofit/>":t.options.fit==="resize"&&(e+="<a:spAutoFit/>")),t.options.shrinkText&&(e+="<a:normAutofit/>"),e+=t.options._bodyProp.autoFit?"<a:spAutoFit/>":"",e+="</a:bodyPr>"):(e+=' wrap="square" rtlCol="0">',e+="</a:bodyPr>"),t._type===Et.tablecell?"<a:bodyPr/>":e}function Ky(t){const e=t.options||{};let n=[];const s=[];if(e&&t._type!==Et.tablecell&&(typeof t.text>"u"||t.text===null))return"";let i=t._type===Et.tablecell?"<a:txBody>":"<p:txBody>";i+=BS(t),e.h===0&&e.line&&e.align?i+='<a:lstStyle><a:lvl1pPr algn="l"/></a:lstStyle>':t._type==="placeholder"?i+=`<a:lstStyle>${qy(t,!0)}</a:lstStyle>`:i+="<a:lstStyle/>",typeof t.text=="string"||typeof t.text=="number"?n.push({text:t.text.toString(),options:e||{}}):t.text&&!Array.isArray(t.text)&&typeof t.text=="object"&&Object.keys(t.text).includes("text")?n.push({text:t.text||"",options:t.options||{}}):Array.isArray(t.text)&&(n=t.text.map(h=>({text:h.text,options:h.options}))),n.forEach((h,p)=>{h.text||(h.text=""),h.options=h.options||e||{},p===0&&h.options&&!h.options.bullet&&e.bullet&&(h.options.bullet=e.bullet),(typeof h.text=="string"||typeof h.text=="number")&&(h.text=h.text.toString().replace(/\r*\n/g,Cr)),h.text.includes(Cr)&&h.text.match(/\n$/g)===null?h.text.split(Cr).forEach(u=>{h.options.breakLine=!0,s.push({text:u,options:h.options})}):s.push(h)});const c=[];let d=[];return s.forEach((h,p)=>{d.length>0&&(h.options.align||e.align)?h.options.align!==s[p-1].options.align&&(c.push(d),d=[]):d.length>0&&h.options.bullet&&d.length>0&&(c.push(d),d=[],h.options.breakLine=!1),d.push(h),d.length>0&&h.options.breakLine&&p+1<s.length&&(c.push(d),d=[]),p+1===s.length&&c.push(d)}),c.forEach(h=>{var p;let u=!1;i+="<a:p>";let A=`<a:pPr ${!((p=h[0].options)===null||p===void 0)&&p.rtlMode?' rtl="1" ':""}`;h.forEach((y,x)=>{y.options._lineIdx=x,x>0&&y.options.softBreakBefore&&(i+="<a:br/>"),y.options.align=y.options.align||e.align,y.options.lineSpacing=y.options.lineSpacing||e.lineSpacing,y.options.lineSpacingMultiple=y.options.lineSpacingMultiple||e.lineSpacingMultiple,y.options.indentLevel=y.options.indentLevel||e.indentLevel,y.options.paraSpaceBefore=y.options.paraSpaceBefore||e.paraSpaceBefore,y.options.paraSpaceAfter=y.options.paraSpaceAfter||e.paraSpaceAfter,A=qy(y,!1),i+=A.replace("<a:pPr></a:pPr>",""),Object.entries(e).filter(([S])=>!(y.options.hyperlink&&S==="color")).forEach(([S,C])=>{S!=="bullet"&&!y.options[S]&&(y.options[S]=C)}),i+=NS(y),(!y.text&&e.fontSize||y.options.fontSize)&&(u=!0,e.fontSize=e.fontSize||y.options.fontSize)}),t._type===Et.tablecell&&(e.fontSize||e.fontFace)?e.fontFace?(i+=`<a:endParaRPr lang="${e.lang||"en-US"}"`+(e.fontSize?` sz="${Math.round(e.fontSize*100)}"`:"")+' dirty="0">',i+=`<a:latin typeface="${e.fontFace}" charset="0"/>`,i+=`<a:ea typeface="${e.fontFace}" charset="0"/>`,i+=`<a:cs typeface="${e.fontFace}" charset="0"/>`,i+="</a:endParaRPr>"):i+=`<a:endParaRPr lang="${e.lang||"en-US"}"`+(e.fontSize?` sz="${Math.round(e.fontSize*100)}"`:"")+' dirty="0"/>':u?i+=`<a:endParaRPr lang="${e.lang||"en-US"}"`+(e.fontSize?` sz="${Math.round(e.fontSize*100)}"`:"")+' dirty="0"/>':i+=`<a:endParaRPr lang="${e.lang||"en-US"}" dirty="0"/>`,i+="</a:p>"}),i.indexOf("<a:p>")===-1&&(i+="<a:p><a:endParaRPr/></a:p>"),i+=t._type===Et.tablecell?"</a:txBody>":"</p:txBody>",i}function Bp(t){var e,n;if(!t)return"";const s=!((e=t.options)===null||e===void 0)&&e._placeholderIdx?t.options._placeholderIdx:"",i=!((n=t.options)===null||n===void 0)&&n._placeholderType?t.options._placeholderType:"",c=i&&yf[i]?yf[i].toString():"";return`<p:ph
|
|
91
91
|
${s?' idx="'+s.toString()+'"':""}
|
|
92
92
|
${c&&yf[c]?` type="${c}"`:""}
|
|
93
93
|
${t.text&&t.text.length>0?' hasCustomPrompt="1"':""}
|
|
@@ -247,12 +247,12 @@ ${String(y)}`)}return s&&c&&A.path.startsWith("http")?yield new Promise((y,x)=>{
|
|
|
247
247
|
- 목적: ${t.purpose}
|
|
248
248
|
|
|
249
249
|
위 조건에 맞는 슬라이드 콘텐츠를 JSON으로 생성해주세요.
|
|
250
|
-
${t.language==="ko"?"한국어로 작성하세요.":"Write in English."}`,c=e.model||"gpt-4o",h=(await Hg(c,e,i,C6,1e3,.7)).content.text||"{}";try{const p=h.match(/\{[\s\S]*\}/);if(!p)throw new Error("JSON을 찾을 수 없습니다.");const u=JSON.parse(p[0]);return{layout:t.layout,title:u.title||"",subtitle:u.subtitle||"",content:u.content||"",bulletPoints:u.bulletPoints||[],imagePrompt:u.imagePrompt||""}}catch{throw new Rf("슬라이드 콘텐츠 파싱 실패")}},Km={generateText:x6,generateSlides:S6,generateSlideContent:w6},cA=()=>{const{status:t,currentFeature:e,error:n,lastTextResponse:s,lastSlideResponse:i,lastImageResponse:c,lastDesignSuggestions:d,providerConfig:h,setStatus:p,setFeature:u,setError:A,setTextResponse:y,setSlideResponse:x,setProviderConfig:S,reset:C}=p6(),R=oe.useCallback(async O=>{if(!h)throw A("AI 제공자가 설정되지 않았습니다."),new Error("AI 제공자가 설정되지 않았습니다.");try{u("text"),p("loading"),A(null);let I;switch(h.provider){case"devdive":I=await Km.generateText(O,h);break;case"glm":I=await Zy.generateText(O,h);break;default:throw new Error(`지원하지 않는 AI 제공자: ${h.provider}`)}return y(I),I}catch(I){const
|
|
250
|
+
${t.language==="ko"?"한국어로 작성하세요.":"Write in English."}`,c=e.model||"gpt-4o",h=(await Hg(c,e,i,C6,1e3,.7)).content.text||"{}";try{const p=h.match(/\{[\s\S]*\}/);if(!p)throw new Error("JSON을 찾을 수 없습니다.");const u=JSON.parse(p[0]);return{layout:t.layout,title:u.title||"",subtitle:u.subtitle||"",content:u.content||"",bulletPoints:u.bulletPoints||[],imagePrompt:u.imagePrompt||""}}catch{throw new Rf("슬라이드 콘텐츠 파싱 실패")}},Km={generateText:x6,generateSlides:S6,generateSlideContent:w6},cA=()=>{const{status:t,currentFeature:e,error:n,lastTextResponse:s,lastSlideResponse:i,lastImageResponse:c,lastDesignSuggestions:d,providerConfig:h,setStatus:p,setFeature:u,setError:A,setTextResponse:y,setSlideResponse:x,setProviderConfig:S,reset:C}=p6(),R=oe.useCallback(async O=>{if(!h)throw A("AI 제공자가 설정되지 않았습니다."),new Error("AI 제공자가 설정되지 않았습니다.");try{u("text"),p("loading"),A(null);let I;switch(h.provider){case"devdive":I=await Km.generateText(O,h);break;case"glm":I=await Zy.generateText(O,h);break;default:throw new Error(`지원하지 않는 AI 제공자: ${h.provider}`)}return y(I),I}catch(I){const Y=I instanceof aA||I instanceof Rf?I.message:"AI 텍스트 생성 중 오류 발생";throw A(Y),I}},[h,u,p,A,y]),T=oe.useCallback(async O=>{if(!h)throw A("AI 제공자가 설정되지 않았습니다."),new Error("AI 제공자가 설정되지 않았습니다.");try{u("slide"),p("loading"),A(null);let I;switch(h.provider){case"devdive":I=await Km.generateSlides(O,h);break;case"glm":I=await Zy.generateSlides(O,h);break;default:throw new Error(`지원하지 않는 AI 제공자: ${h.provider}`)}return x(I),I}catch(I){const Y=I instanceof aA||I instanceof Rf?I.message:"AI 슬라이드 생성 중 오류 발생";throw A(Y),I}},[h,u,p,A,x]),D=oe.useCallback(async O=>{throw A("이미지 생성은 아직 지원되지 않습니다."),new Error("이미지 생성은 아직 지원되지 않습니다.")},[A]),P=oe.useCallback(async O=>{throw A("디자인 제안은 아직 지원되지 않습니다."),new Error("디자인 제안은 아직 지원되지 않습니다.")},[A]),M=oe.useCallback(async O=>{if(!h)throw new Error("AI 제공자가 설정되지 않았습니다.");if(h.provider!=="devdive")throw new Error("슬라이드 콘텐츠 생성은 DevDive만 지원합니다.");return Km.generateSlideContent(O,h)},[h]);return{status:t,currentFeature:e,error:n,isLoading:t==="loading",isSuccess:t==="success",isError:t==="error",providerConfig:h,setProviderConfig:S,lastTextResponse:s,lastSlideResponse:i,lastImageResponse:c,lastDesignSuggestions:d,generateText:R,generateSlides:T,generateSlideContent:M,generateImage:D,suggestDesign:P,reset:C}},_6=t=>{const e=[],n=t.split(/\[슬라이드 번호\]/g).filter(Boolean);for(const s of n){const i=E6(s);i&&e.push(i)}return e},E6=t=>{const e=t.trim().split(`
|
|
251
251
|
`);if(e.length===0)return null;const n=e[0].trim(),s=c=>{const d=new RegExp(`\\[${c}\\]\\s*(.*)`,"i");for(const h of e){const p=h.match(d);if(p)return p[1].trim()}return""},i=()=>{var h;const c=[];let d=!1;for(const p of e){if(p.includes("[핵심 포인트]")){d=!0;const u=(h=p.split("[핵심 포인트]")[1])==null?void 0:h.trim();u&&c.push(u);continue}if(d){if(p.includes("[")&&p.includes("]"))break;const u=p.trim();u&&c.push(u)}}return c};return{slideNumber:n,sectionType:s("섹션 타입"),recommendedLayout:s("추천 레이아웃"),visualElements:s("추천 시각 요소"),layoutReason:s("레이아웃 선택 이유"),sectionTitle:s("섹션 제목"),summary:s("요약"),keyPoints:i(),keywords:s("키워드").split(",").map(c=>c.trim()).filter(Boolean)}},Sr=()=>`el-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,R6=t=>{const e=t.recommendedLayout.toLowerCase(),n=t.visualElements.toLowerCase(),s=["image","graph","chart","infographic","diagram","icon","그래프","차트","이미지","아이콘","다이어그램"],i=e.includes("image")||e.includes("graph")||e.includes("chart"),c=s.some(d=>n.includes(d));return i||c},T6=t=>{const e=t.recommendedLayout.toLowerCase();return e.includes("image_left")||e.includes("left")?"left":e.includes("image_right")||e.includes("right")?"right":e.includes("bottom")||e.includes("graph")?"bottom":"right"},$y=(t,e,n,s,i,c="이미지")=>[{id:Sr(),type:"shape",shapeType:"rect",x:t,y:e,width:n,height:s,rotation:0,fill:i.primary+"08",stroke:i.primary+"30",strokeWidth:2,cornerRadius:12},{id:Sr(),type:"shape",shapeType:"rect",x:t+n/2-30,y:e+s/2-40,width:60,height:60,rotation:0,fill:i.primary+"15",stroke:"transparent",strokeWidth:0,cornerRadius:30},{id:Sr(),type:"text",content:c,x:t,y:e+s/2+30,width:n,height:24,rotation:0,fontSize:12,fontFamily:"Noto Sans KR",fill:i.primary+"80",align:"center",textStyle:"caption",fontWeight:"500",lineHeight:1}],e2=(t,e=fs.devdive)=>{const n=[],s=t.sectionType==="cover"||t.sectionType==="closing",i=R6(t),c=i?T6(t):"none";if(s)n.push({id:Sr(),type:"shape",shapeType:"rect",x:0,y:0,width:12,height:540,rotation:0,fill:e.primary,stroke:"transparent",strokeWidth:0,cornerRadius:0}),i&&n.push(...$y(620,80,280,180,e,t.visualElements||"이미지")),n.push({id:Sr(),type:"shape",shapeType:"rect",x:60,y:400,width:200,height:4,rotation:0,fill:e.accent,stroke:"transparent",strokeWidth:0,cornerRadius:2}),n.push({id:Sr(),type:"text",content:t.sectionTitle,x:60,y:180,width:i?500:840,height:100,rotation:0,fontSize:48,fontFamily:"Noto Sans KR",fill:e.text,align:"left",textStyle:"title",fontWeight:"800",lineHeight:1.1}),t.summary&&n.push({id:Sr(),type:"text",content:t.summary,x:60,y:300,width:i?500:700,height:80,rotation:0,fontSize:20,fontFamily:"Noto Sans KR",fill:"#64748b",align:"left",textStyle:"subtitle",fontWeight:"400",lineHeight:1.5}),n.push({id:Sr(),type:"text",content:t.slideNumber.padStart(2,"0"),x:860,y:480,width:80,height:40,rotation:0,fontSize:14,fontFamily:"Noto Sans KR",fill:"#94a3b8",align:"right",textStyle:"caption",fontWeight:"500",lineHeight:1});else{const d=c==="left"?420:60,h=i&&c!=="bottom"?480:840,p=c==="left"?40:620,u=c==="bottom"?340:140,A=c==="bottom"?400:280,y=c==="bottom"?160:240;n.push({id:Sr(),type:"shape",shapeType:"rect",x:0,y:0,width:960,height:100,rotation:0,fill:e.primary+"10",stroke:"transparent",strokeWidth:0,cornerRadius:0}),n.push({id:Sr(),type:"text",content:t.sectionTitle,x:60,y:30,width:760,height:50,rotation:0,fontSize:32,fontFamily:"Noto Sans KR",fill:e.text,align:"left",textStyle:"title",fontWeight:"700",lineHeight:1.2}),n.push({id:Sr(),type:"shape",shapeType:"rect",x:860,y:30,width:50,height:50,rotation:0,fill:e.primary,stroke:"transparent",strokeWidth:0,cornerRadius:8}),n.push({id:Sr(),type:"text",content:t.slideNumber.padStart(2,"0"),x:860,y:42,width:50,height:30,rotation:0,fontSize:18,fontFamily:"Noto Sans KR",fill:"#ffffff",align:"center",textStyle:"caption",fontWeight:"700",lineHeight:1});let x=120;if(i&&n.push(...$y(p,u,A,y,e,t.visualElements||"차트/그래프")),t.summary&&(n.push({id:Sr(),type:"text",content:t.summary,x:d,y:x,width:h,height:40,rotation:0,fontSize:16,fontFamily:"Noto Sans KR",fill:"#64748b",align:"left",textStyle:"body",fontWeight:"400",lineHeight:1.5}),x+=50),t.keyPoints.length>0&&(n.push({id:Sr(),type:"shape",shapeType:"rect",x:d,y:x,width:h,height:1,rotation:0,fill:"#e2e8f0",stroke:"transparent",strokeWidth:0,cornerRadius:0}),x+=20,t.keyPoints.forEach(S=>{n.push({id:Sr(),type:"shape",shapeType:"ellipse",x:d,y:x+8,width:8,height:8,rotation:0,fill:e.primary,stroke:"transparent",strokeWidth:0,cornerRadius:0});const C=S.replace(/^[•\-\*]\s*/,"");n.push({id:Sr(),type:"text",content:C,x:d+20,y:x,width:h-20,height:35,rotation:0,fontSize:18,fontFamily:"Noto Sans KR",fill:e.text,align:"left",textStyle:"body",fontWeight:"400",lineHeight:1.6}),x+=45})),t.keywords.length>0){x=480;let S=d;t.keywords.forEach(C=>{const R=C.length*12+24;n.push({id:Sr(),type:"shape",shapeType:"rect",x:S,y:x,width:R,height:28,rotation:0,fill:e.primary+"15",stroke:e.primary+"30",strokeWidth:1,cornerRadius:14}),n.push({id:Sr(),type:"text",content:`#${C}`,x:S,y:x+5,width:R,height:20,rotation:0,fontSize:12,fontFamily:"Noto Sans KR",fill:e.primary,align:"center",textStyle:"caption",fontWeight:"500",lineHeight:1}),S+=R+8})}}return n},D6={title:"제목",subtitle:"소제목",body:"본문",caption:"캡션"},L6=({isOpen:t,onClose:e,onBack:n})=>{const[s,i]=oe.useState(""),[c,d]=oe.useState("body"),[h,p]=oe.useState(null),{generateText:u,isLoading:A,error:y,reset:x}=cA(),{addElement:S}=Ve(),C=()=>`text-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,R=async()=>{if(s.trim())try{const M=await u({prompt:s.trim(),style:c,language:"ko"});p(M.content)}catch{}},T=()=>{if(!h)return;const M=Eu[c],O={id:C(),type:"text",content:h,x:280,y:220,width:400,height:100,rotation:0,fontSize:M.fontSize,fontFamily:"Noto Sans KR",fill:"#1e293b",align:"center",textStyle:c,fontWeight:M.fontWeight,lineHeight:M.lineHeight};S(O),D()},D=()=>{i(""),p(null),x(),e()},P=()=>{p(null),R()};return w.jsx(z.Modal,{opened:t,onClose:D,title:w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",onClick:n,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:20},children:"arrow_back"})}),w.jsx(z.Text,{fw:700,children:"텍스트 생성"})]}),centered:!0,size:"md",children:w.jsxs(z.Stack,{gap:"md",children:[w.jsx(z.Textarea,{label:"프롬프트",description:"어떤 텍스트를 생성할지 설명해주세요",placeholder:"예: 인공지능의 미래에 대한 소개 문구",value:s,onChange:M=>i(M.currentTarget.value),minRows:3,autosize:!0}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"sm",fw:500,mb:"xs",children:"텍스트 스타일"}),w.jsx(z.SegmentedControl,{value:c,onChange:M=>d(M),data:Object.entries(D6).map(([M,O])=>({value:M,label:O})),fullWidth:!0,color:"devdive"})]}),y&&w.jsx(z.Alert,{color:"red",variant:"light",children:y}),h&&w.jsxs(z.Paper,{p:"md",radius:"md",withBorder:!0,bg:"gray.0",children:[w.jsxs(z.Group,{justify:"space-between",mb:"xs",children:[w.jsx(z.Text,{size:"sm",fw:500,c:"dimmed",children:"생성된 텍스트"}),w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.CopyButton,{value:h,children:({copied:M,copy:O})=>w.jsx(z.Tooltip,{label:M?"복사됨!":"복사",children:w.jsx(z.ActionIcon,{variant:"subtle",color:M?"teal":"gray",onClick:O,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:M?"check":"content_copy"})})})}),w.jsx(z.Tooltip,{label:"다시 생성",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",onClick:P,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"refresh"})})})]})]}),w.jsx(z.Text,{size:c==="title"?"xl":c==="subtitle"?"lg":"sm",fw:c==="title"?700:c==="subtitle"?600:400,children:h})]}),w.jsxs(z.Group,{justify:"flex-end",gap:"sm",children:[w.jsx(z.Button,{variant:"subtle",color:"gray",onClick:D,children:"취소"}),h?w.jsx(z.Button,{color:"devdive",onClick:T,children:"슬라이드에 적용"}):w.jsx(z.Button,{color:"devdive",onClick:R,loading:A,disabled:!s.trim(),leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"auto_awesome"}),children:"생성"})]})]})})},k6=[{value:"cover",label:"커버"},{value:"content",label:"콘텐츠"},{value:"data",label:"데이터/차트"},{value:"closing",label:"클로징"}],N6=({isOpen:t,onClose:e,slide:n,slideIndex:s,onSave:i,onDelete:c})=>{const[d,h]=oe.useState(n),p=(S,C)=>{h(R=>({...R,[S]:C}))},u=S=>{const C=S.split(`
|
|
252
252
|
`).filter(R=>R.trim());p("keyPoints",C)},A=S=>{const C=S.split(",").map(R=>R.trim()).filter(Boolean);p("keywords",C)},y=()=>{i(s,d),e()},x=()=>{c(s),e()};return w.jsx(z.Modal,{opened:t,onClose:e,title:w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.Badge,{color:"devdive",size:"sm",children:s+1}),w.jsx(z.Text,{fw:700,children:"슬라이드 편집"})]}),centered:!0,size:"md",children:w.jsxs(z.Stack,{gap:"md",children:[w.jsx(z.Select,{label:"섹션 타입",data:k6,value:d.sectionType,onChange:S=>p("sectionType",S||"content")}),w.jsx(z.TextInput,{label:"제목",value:d.sectionTitle,onChange:S=>p("sectionTitle",S.currentTarget.value),placeholder:"슬라이드 제목"}),w.jsx(z.Textarea,{label:"요약",value:d.summary,onChange:S=>p("summary",S.currentTarget.value),placeholder:"슬라이드 요약 또는 부제목",minRows:2}),w.jsx(z.Textarea,{label:"핵심 포인트",description:"한 줄에 하나씩 입력하세요",value:d.keyPoints.join(`
|
|
253
253
|
`),onChange:S=>u(S.currentTarget.value),placeholder:`첫 번째 포인트
|
|
254
254
|
두 번째 포인트
|
|
255
|
-
세 번째 포인트`,minRows:4,autosize:!0}),w.jsx(z.TextInput,{label:"키워드",description:"쉼표로 구분",value:d.keywords.join(", "),onChange:S=>A(S.currentTarget.value),placeholder:"키워드1, 키워드2, 키워드3"}),w.jsxs(z.Group,{justify:"space-between",mt:"md",children:[w.jsx(z.Button,{variant:"subtle",color:"red",onClick:x,children:"삭제"}),w.jsxs(z.Group,{gap:"sm",children:[w.jsx(z.Button,{variant:"subtle",color:"gray",onClick:e,children:"취소"}),w.jsx(z.Button,{color:"devdive",onClick:y,children:"저장"})]})]})]})})},B6=[{value:"business",label:"비즈니스"},{value:"creative",label:"크리에이티브"},{value:"minimal",label:"미니멀"},{value:"educational",label:"교육"}],P6=[{value:"title",label:"표지",icon:"title"},{value:"content",label:"본문",icon:"article"},{value:"bullets",label:"불릿",icon:"format_list_bulleted"},{value:"two-column",label:"2단",icon:"view_column"},{value:"image-left",label:"이미지 좌",icon:"image"},{value:"image-right",label:"이미지 우",icon:"image"},{value:"graph",label:"차트",icon:"insert_chart"}],M6=({isOpen:t,onClose:e,onBack:n})=>{const[s,i]=oe.useState("ai"),[c,d]=oe.useState("input"),[h,p]=oe.useState(0),[u,A]=oe.useState(!1),[y,x]=oe.useState(""),[S,C]=oe.useState(5),[R,T]=oe.useState("business"),[D,P]=oe.useState(!0),[M,O]=oe.useState([]),[I,
|
|
255
|
+
세 번째 포인트`,minRows:4,autosize:!0}),w.jsx(z.TextInput,{label:"키워드",description:"쉼표로 구분",value:d.keywords.join(", "),onChange:S=>A(S.currentTarget.value),placeholder:"키워드1, 키워드2, 키워드3"}),w.jsxs(z.Group,{justify:"space-between",mt:"md",children:[w.jsx(z.Button,{variant:"subtle",color:"red",onClick:x,children:"삭제"}),w.jsxs(z.Group,{gap:"sm",children:[w.jsx(z.Button,{variant:"subtle",color:"gray",onClick:e,children:"취소"}),w.jsx(z.Button,{color:"devdive",onClick:y,children:"저장"})]})]})]})})},B6=[{value:"business",label:"비즈니스"},{value:"creative",label:"크리에이티브"},{value:"minimal",label:"미니멀"},{value:"educational",label:"교육"}],P6=[{value:"title",label:"표지",icon:"title"},{value:"content",label:"본문",icon:"article"},{value:"bullets",label:"불릿",icon:"format_list_bulleted"},{value:"two-column",label:"2단",icon:"view_column"},{value:"image-left",label:"이미지 좌",icon:"image"},{value:"image-right",label:"이미지 우",icon:"image"},{value:"graph",label:"차트",icon:"insert_chart"}],M6=({isOpen:t,onClose:e,onBack:n})=>{const[s,i]=oe.useState("ai"),[c,d]=oe.useState("input"),[h,p]=oe.useState(0),[u,A]=oe.useState(!1),[y,x]=oe.useState(""),[S,C]=oe.useState(5),[R,T]=oe.useState("business"),[D,P]=oe.useState(!0),[M,O]=oe.useState([]),[I,Y]=oe.useState(null),[K,q]=oe.useState(""),[Q,V]=oe.useState(null),[ge,W]=oe.useState(null),[se,L]=oe.useState(null),[ne,le]=oe.useState("devdive"),{generateSlides:pe,generateSlideContent:J,isLoading:ae,error:re,reset:U}=cA(),ee=async()=>{if(!(!y.trim()||u)){A(!0);try{const j=(await pe({topic:y.trim(),slideCount:S,style:R,includeImages:D,language:"ko"})).slides.map($=>({layout:$.layout,purpose:$.title||"",content:void 0}));O(j),d("structure")}catch{}finally{A(!1)}}},Ee=async()=>{if(M.length===0)return;d("content"),p(0);const G={business:"비즈니스/전문적인 톤",creative:"창의적이고 흥미로운 톤",minimal:"간결하고 핵심만 담은 톤",educational:"교육적이고 설명적인 톤"},j=[];for(let $=0;$<M.length;$++){const ye=M[$];try{const Ce=await J({topic:y.trim(),slideIndex:$,totalSlides:M.length,layout:ye.layout,purpose:ye.purpose,style:G[R],language:"ko"});j.push(Ce),p(($+1)/M.length*100)}catch(Ce){console.error(`슬라이드 ${$+1} 콘텐츠 생성 실패:`,Ce),j.push({layout:ye.layout,title:ye.purpose,subtitle:"",content:"",bulletPoints:[],imagePrompt:""})}}Y(j),d("preview")},Re=(G,j)=>{const $=[...M];$[G]={...$[G],layout:j},O($)},Ne=(G,j)=>{const $=[...M];$[G]={...$[G],purpose:j},O($)},Ue=G=>{M.length<=1||O(M.filter((j,$)=>$!==G))},ot=()=>{O([...M,{layout:"content",purpose:"새 슬라이드"}])},lt=()=>{if(K.trim())try{W(null);const G=_6(K);if(G.length===0){W("슬라이드 데이터를 찾을 수 없습니다. 형식을 확인해주세요.");return}V(G)}catch(G){W("데이터 파싱 중 오류가 발생했습니다."),console.error(G)}},pt=(G,j)=>{if(!Q)return;const $=[...Q];$[G]=j,V($)},Lt=G=>{if(!Q)return;const j=Q.filter(($,ye)=>ye!==G);V(j.length>0?j:null)},qe=()=>{if(!Q)return;const G=fs[ne],j=Ve.getState(),$=j.slides;let Ce=$.length===1&&$[0].elements.length===0;Q.forEach(Ae=>{const ze=e2(Ae,G);if(Ce)j.selectSlide(0),Ce=!1;else{j.addSlide();const Ie=Ve.getState().slides.length-1;j.selectSlide(Ie)}ze.forEach(Xe=>{Ve.getState().addElement(Xe)}),Ve.getState().updateSlideBackground(G.background)}),ce()},Dt=(G,j)=>{const $=j===0,ye=j===I.length-1;return{slideNumber:String(j+1),sectionType:$?"cover":ye?"closing":"content",recommendedLayout:G.layout,visualElements:G.imagePrompt||"",layoutReason:"",sectionTitle:G.title||"",summary:G.subtitle||G.content||"",keyPoints:G.bulletPoints||[],keywords:[]}},me=()=>{if(!I)return;const G=fs[ne],j=Ve.getState(),$=j.slides;let Ce=$.length===1&&$[0].elements.length===0;I.forEach((Ae,ze)=>{const Xe=Dt(Ae,ze),Ie=e2(Xe,G);if(Ce)j.selectSlide(0),Ce=!1;else{j.addSlide();const Jt=Ve.getState().slides.length-1;j.selectSlide(Jt)}Ie.forEach(dt=>{Ve.getState().addElement(dt)}),Ve.getState().updateSlideBackground(G.background)}),ce()},k=()=>{c==="structure"?d("input"):c==="preview"&&(d("structure"),Y(null))},ce=()=>{x(""),O([]),Y(null),d("input"),p(0),A(!1),q(""),V(null),W(null),U(),e()},de=()=>{switch(c){case"input":return 0;case"structure":return 1;case"content":return 2;case"preview":return 3;default:return 0}};return w.jsxs(z.Modal,{opened:t,onClose:ce,title:w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",onClick:c==="input"?n:k,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:20},children:"arrow_back"})}),w.jsx(z.Text,{fw:700,children:"슬라이드 자동 생성"})]}),centered:!0,size:"lg",children:[w.jsxs(z.Box,{pos:"relative",children:[w.jsx(z.LoadingOverlay,{visible:ae||u||c==="content",zIndex:1e3,overlayProps:{radius:"sm",blur:2},loaderProps:{color:"devdive",type:"dots",size:"lg"}}),w.jsxs(z.Stack,{gap:"md",children:[s==="ai"&&w.jsxs(z.Stepper,{active:de(),size:"xs",color:"devdive",children:[w.jsx(z.Stepper.Step,{label:"주제 입력"}),w.jsx(z.Stepper.Step,{label:"구조 편집"}),w.jsx(z.Stepper.Step,{label:"콘텐츠 생성"}),w.jsx(z.Stepper.Step,{label:"미리보기"})]}),c==="content"&&w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"sm",mb:"xs",children:["콘텐츠 생성 중... (",Math.round(h),"%)"]}),w.jsx(z.Progress,{value:h,color:"devdive",animated:!0})]}),w.jsxs(z.Tabs,{value:s,onChange:i,children:[w.jsxs(z.Tabs.List,{grow:!0,children:[w.jsx(z.Tabs.Tab,{value:"ai",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"auto_awesome"}),children:"AI 생성"}),w.jsx(z.Tabs.Tab,{value:"paste",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"content_paste"}),children:"데이터 붙여넣기"})]}),w.jsx(z.Tabs.Panel,{value:"ai",pt:"md",children:w.jsxs(z.Stack,{gap:"md",children:[c==="input"&&w.jsxs(w.Fragment,{children:[w.jsx(z.TextInput,{label:"프레젠테이션 주제",description:"어떤 주제로 슬라이드를 만들까요?",placeholder:"예: 2024년 마케팅 전략 발표",value:y,onChange:G=>x(G.currentTarget.value)}),w.jsxs(z.Group,{grow:!0,children:[w.jsx(z.NumberInput,{label:"슬라이드 개수",value:S,onChange:G=>C(typeof G=="number"?G:5),min:1,max:10,clampBehavior:"strict"}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"sm",fw:500,mb:"xs",children:"이미지 포함"}),w.jsx(z.Switch,{checked:D,onChange:G=>P(G.currentTarget.checked),label:D?"포함":"미포함",color:"devdive"})]})]}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"sm",fw:500,mb:"xs",children:"프레젠테이션 스타일"}),w.jsx(z.SegmentedControl,{value:R,onChange:G=>T(G),data:B6,fullWidth:!0,color:"devdive"})]})]}),c==="structure"&&w.jsxs(z.Box,{children:[w.jsxs(z.Group,{justify:"space-between",mb:"xs",children:[w.jsxs(z.Text,{size:"sm",fw:500,children:["슬라이드 구조 (",M.length,"개)"]}),w.jsx(z.ActionIcon,{variant:"light",color:"devdive",size:"sm",onClick:ot,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"add"})})]}),w.jsx(z.ScrollArea,{h:250,children:w.jsx(z.Stack,{gap:"xs",children:M.map((G,j)=>w.jsx(z.Paper,{p:"sm",radius:"md",withBorder:!0,children:w.jsxs(z.Group,{gap:"xs",align:"flex-start",children:[w.jsx(z.Badge,{size:"sm",color:"devdive",variant:"light",w:28,children:j+1}),w.jsx(z.Box,{style:{flex:1},children:w.jsxs(z.Group,{gap:"xs",mb:"xs",children:[w.jsx(z.Select,{size:"xs",value:G.layout,onChange:$=>Re(j,$||"content"),data:P6.map($=>({value:$.value,label:$.label})),w:100}),w.jsx(z.TextInput,{size:"xs",placeholder:"슬라이드 목적",value:G.purpose,onChange:$=>Ne(j,$.currentTarget.value),style:{flex:1}})]})}),M.length>1&&w.jsx(z.ActionIcon,{variant:"subtle",color:"red",size:"xs",onClick:()=>Ue(j),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"delete"})})]})},j))})})]}),c==="preview"&&I&&w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"sm",fw:500,mb:"xs",children:["생성된 슬라이드 (",I.length,"개)"]}),w.jsx(z.ScrollArea,{h:200,children:w.jsx(z.Stack,{gap:"xs",children:I.map((G,j)=>w.jsxs(z.Paper,{p:"sm",radius:"md",withBorder:!0,children:[w.jsxs(z.Group,{justify:"space-between",mb:4,children:[w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.Badge,{size:"xs",color:"devdive",children:j+1}),w.jsx(z.Text,{size:"sm",fw:500,children:G.title||`슬라이드 ${j+1}`})]}),w.jsx(z.Badge,{size:"xs",variant:"light",color:"gray",children:G.layout})]}),G.subtitle&&w.jsx(z.Text,{size:"xs",c:"dimmed",lineClamp:1,children:G.subtitle}),G.bulletPoints&&G.bulletPoints.length>0&&w.jsxs(z.Text,{size:"xs",c:"dimmed",mt:4,children:["• ",G.bulletPoints[0],G.bulletPoints.length>1&&` 외 ${G.bulletPoints.length-1}개`]})]},j))})})]}),re&&w.jsx(z.Alert,{color:"red",variant:"light",children:re})]})}),w.jsx(z.Tabs.Panel,{value:"paste",pt:"md",children:w.jsxs(z.Stack,{gap:"md",children:[w.jsx(z.Textarea,{label:"슬라이드 데이터",description:"구조화된 슬라이드 데이터를 붙여넣으세요",placeholder:`[슬라이드 번호] 01
|
|
256
256
|
[섹션 타입] cover
|
|
257
257
|
[추천 레이아웃] full_title_center
|
|
258
258
|
[섹션 제목] 프레젠테이션 제목
|
|
@@ -260,7 +260,7 @@ ${t.language==="ko"?"한국어로 작성하세요.":"Write in English."}`,c=e.mo
|
|
|
260
260
|
[핵심 포인트]
|
|
261
261
|
• 첫 번째 포인트
|
|
262
262
|
• 두 번째 포인트
|
|
263
|
-
[키워드] 키워드1, 키워드2`,value:K,onChange:j=>q(j.currentTarget.value),minRows:8,maxRows:12,autosize:!0,styles:{input:{fontFamily:"monospace",fontSize:12}}}),he&&w.jsx(z.Alert,{color:"red",variant:"light",children:he}),Y&&w.jsxs(z.Box,{children:[w.jsxs(z.Group,{gap:"xs",mb:"xs",children:[w.jsx(z.Text,{size:"sm",fw:500,children:"파싱된 슬라이드"}),w.jsxs(z.Badge,{color:"devdive",size:"sm",children:[Y.length,"개"]})]}),w.jsx(z.ScrollArea,{h:150,children:w.jsx(z.Stack,{gap:"xs",children:Y.map((j,U)=>w.jsxs(z.Paper,{p:"sm",radius:"md",withBorder:!0,style:{cursor:"pointer"},onClick:()=>L(U),children:[w.jsxs(z.Group,{justify:"space-between",children:[w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.Text,{size:"xs",c:"dimmed",children:j.slideNumber}),w.jsx(z.Text,{size:"sm",fw:500,children:j.sectionTitle})]}),w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.Badge,{size:"xs",variant:"light",color:"gray",children:j.sectionType}),w.jsx(z.ActionIcon,{variant:"subtle",size:"xs",color:"gray",onClick:Z=>{Z.stopPropagation(),L(U)},children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"edit"})})]})]}),j.keyPoints.length>0&&w.jsxs(z.Text,{size:"xs",c:"dimmed",mt:4,lineClamp:1,children:[j.keyPoints[0],"..."]})]},U))})})]})]})})]}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"sm",fw:500,mb:"xs",children:"컬러 테마"}),w.jsx(z.SimpleGrid,{cols:4,spacing:"xs",children:Object.keys(fs).map(j=>w.jsx(z.Paper,{p:"xs",radius:"md",withBorder:!0,style:{cursor:"pointer",borderColor:ne===j?"var(--devdive-primary)":void 0,borderWidth:ne===j?2:1},onClick:()=>le(j),children:w.jsxs(z.Group,{gap:4,children:[w.jsx(z.Box,{w:16,h:16,style:{borderRadius:"50%",backgroundColor:fs[j].primary}}),w.jsx(z.Text,{size:"xs",tt:"capitalize",children:j})]})},j))})]}),w.jsxs(z.Group,{justify:"flex-end",gap:"sm",children:[w.jsx(z.Button,{variant:"subtle",color:"gray",onClick:ce,children:"취소"}),s==="ai"?w.jsxs(w.Fragment,{children:[c==="input"&&w.jsx(z.Button,{color:"devdive",onClick:$,loading:u||ie,disabled:!y.trim()||u||ie,leftSection:!u&&!ie?w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"account_tree"}):void 0,children:u||ie?"생성 중...":"구조 생성"}),c==="structure"&&w.jsx(z.Button,{color:"devdive",onClick:Ee,leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"auto_awesome"}),children:"콘텐츠 생성"}),c==="preview"&&I&&w.jsxs(z.Button,{color:"devdive",onClick:ge,children:[I.length,"개 슬라이드 추가"]})]}):Y?w.jsxs(z.Button,{color:"devdive",onClick:qe,children:[Y.length,"개 슬라이드 추가"]}):w.jsx(z.Button,{color:"devdive",onClick:ft,disabled:!K.trim(),leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"data_object"}),children:"데이터 파싱"})]})]})]}),Y&&te!==null&&w.jsx(N6,{isOpen:te!==null,onClose:()=>L(null),slide:Y[te],slideIndex:te,onSave:ht,onDelete:Lt})]})},z6=[{value:"realistic",label:"사실적"},{value:"illustration",label:"일러스트"},{value:"abstract",label:"추상"},{value:"3d",label:"3D"},{value:"minimalist",label:"미니멀"}],F6=[{value:"512x512",label:"512×512"},{value:"1024x1024",label:"1024×1024"}],I6=({isOpen:t,onClose:e,onBack:n})=>{const[s,i]=oe.useState(""),[c,d]=oe.useState("illustration"),[h,p]=oe.useState("512x512"),[u,A]=oe.useState(null),{generateImage:y,isLoading:x,error:S,reset:C}=cA(),{addElement:R}=Ve(),T=()=>`image-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,D=async()=>{if(s.trim())try{const I=await y({prompt:s.trim(),style:c,size:h});A(I.base64||I.imageUrl)}catch{}},P=()=>{if(!u)return;const[I,V]=h.split("x").map(Number),K=Math.min(I,300),q=K/I*V,Y={id:T(),type:"image",src:u.startsWith("data:")?u:`data:image/png;base64,${u}`,x:480-K/2,y:270-q/2,width:K,height:q,rotation:0};R(Y),M()},M=()=>{i(""),A(null),C(),e()},O=()=>{A(null),D()};return w.jsx(z.Modal,{opened:t,onClose:M,title:w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",onClick:n,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:20},children:"arrow_back"})}),w.jsx(z.Text,{fw:700,children:"이미지 생성"})]}),centered:!0,size:"md",children:w.jsxs(z.Stack,{gap:"md",children:[w.jsx(z.Textarea,{label:"이미지 설명",description:"생성하고 싶은 이미지를 자세히 설명해주세요",placeholder:"예: 미래 도시의 스카이라인, 푸른 하늘과 유리 건물",value:s,onChange:I=>i(I.currentTarget.value),minRows:3,autosize:!0}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"sm",fw:500,mb:"xs",children:"이미지 스타일"}),w.jsx(z.SegmentedControl,{value:c,onChange:I=>d(I),data:z6,fullWidth:!0,color:"devdive"})]}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"sm",fw:500,mb:"xs",children:"이미지 크기"}),w.jsx(z.SegmentedControl,{value:h,onChange:I=>p(I),data:F6,color:"devdive"})]}),S&&w.jsx(z.Alert,{color:"red",variant:"light",children:S}),x&&w.jsx(z.Paper,{p:"xl",radius:"md",withBorder:!0,bg:"gray.0",children:w.jsx(z.Center,{children:w.jsxs(z.Stack,{align:"center",gap:"md",children:[w.jsx(z.Loader,{color:"devdive",size:"lg"}),w.jsx(z.Text,{size:"sm",c:"dimmed",children:"이미지를 생성하고 있습니다..."})]})})}),u&&!x&&w.jsxs(z.Paper,{p:"md",radius:"md",withBorder:!0,bg:"gray.0",children:[w.jsxs(z.Group,{justify:"space-between",mb:"xs",children:[w.jsx(z.Text,{size:"sm",fw:500,c:"dimmed",children:"생성된 이미지"}),w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",onClick:O,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"refresh"})})]}),w.jsx(z.Center,{children:w.jsx(z.Image,{src:u.startsWith("data:")?u:`data:image/png;base64,${u}`,alt:"Generated image",radius:"md",maw:300,fit:"contain"})})]}),w.jsxs(z.Group,{justify:"flex-end",gap:"sm",children:[w.jsx(z.Button,{variant:"subtle",color:"gray",onClick:M,children:"취소"}),u?w.jsx(z.Button,{color:"devdive",onClick:P,children:"슬라이드에 추가"}):w.jsx(z.Button,{color:"devdive",onClick:D,loading:x,disabled:!s.trim(),leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"auto_awesome"}),children:"이미지 생성"})]})]})})},O6=[{type:"text",icon:"edit_note",title:"텍스트 생성",description:"AI로 슬라이드 텍스트를 자동 생성",color:"blue"},{type:"slide",icon:"auto_awesome_mosaic",title:"슬라이드 자동 생성",description:"주제를 입력하면 여러 슬라이드 구성",color:"violet"},{type:"image",icon:"image",title:"이미지 생성",description:"AI로 맞춤 이미지를 생성",color:"pink"},{type:"design",icon:"palette",title:"디자인 제안",description:"레이아웃과 색상을 자동 추천",color:"teal"}],U6=({isOpen:t,onClose:e})=>{const[n,s]=oe.useState(null),i=h=>{s(h)},c=()=>{s(null)},d=()=>{s(null),e()};return w.jsxs(w.Fragment,{children:[w.jsx(z.Modal,{opened:t&&!n,onClose:d,title:w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.ThemeIcon,{variant:"gradient",gradient:{from:"#5B6EF7",to:"#3b82f6"},size:"md",radius:"md",children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"auto_awesome"})}),w.jsx(z.Text,{fw:700,children:"AI 생성"}),w.jsx(z.Badge,{variant:"light",color:"devdive",size:"sm",children:"Beta"})]}),centered:!0,size:"lg",children:w.jsxs(z.Stack,{gap:"md",children:[w.jsx(z.Text,{size:"sm",c:"dimmed",children:"AI를 활용하여 프레젠테이션을 더 빠르고 쉽게 만들어보세요."}),w.jsx(z.SimpleGrid,{cols:2,spacing:"md",children:O6.map(h=>w.jsx(z.Card,{padding:"lg",radius:"md",withBorder:!0,style:{cursor:"pointer",transition:"all 0.2s ease"},onClick:()=>i(h.type),onMouseEnter:p=>{p.currentTarget.style.borderColor="var(--devdive-primary)",p.currentTarget.style.transform="translateY(-2px)",p.currentTarget.style.boxShadow="0 4px 12px rgba(91, 110, 247, 0.15)"},onMouseLeave:p=>{p.currentTarget.style.borderColor="",p.currentTarget.style.transform="",p.currentTarget.style.boxShadow=""},children:w.jsxs(z.Group,{gap:"md",children:[w.jsx(z.ThemeIcon,{variant:"light",color:h.color,size:"xl",radius:"md",children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:24},children:h.icon})}),w.jsxs("div",{children:[w.jsx(z.Text,{fw:600,size:"sm",children:h.title}),w.jsx(z.Text,{size:"xs",c:"dimmed",mt:4,children:h.description})]})]})},h.type))})]})}),w.jsx(L6,{isOpen:n==="text",onClose:c,onBack:c}),w.jsx(M6,{isOpen:n==="slide",onClose:c,onBack:c}),w.jsx(I6,{isOpen:n==="image",onClose:c,onBack:c})]})},Ax=()=>{const[t,e]=oe.useState("Untitled Presentation"),[n,s]=oe.useState(!1),[i,c]=oe.useState(!1),[d,h]=oe.useState("new"),[p,u]=oe.useState(!1),[A,y]=oe.useState(!1),x=Ve(I=>I.slides),S=Ve(I=>I.defaultBackground),C=Ve(I=>I.resetPresentation),R=Ve(I=>I.loadSlides),T=oe.useRef(null),D=async()=>{if(!n){s(!0);try{await fx(x,t.replace(/\s+/g,"_"))}catch(I){console.error("PPTX 생성 실패:",I)}finally{s(!1)}}},P=()=>{const I={version:1,title:t,slides:x,defaultBackground:S,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},V=new Blob([JSON.stringify(I,null,2)],{type:"application/json"}),K=URL.createObjectURL(V),q=document.createElement("a");q.href=K,q.download=`${t.replace(/\s+/g,"_")}.ddslide`,document.body.appendChild(q),q.click(),document.body.removeChild(q),URL.revokeObjectURL(K)},M=I=>{var q;const V=(q=I.target.files)==null?void 0:q[0];if(!V)return;const K=new FileReader;K.onload=Y=>{var X;try{const he=(X=Y.target)==null?void 0:X.result,G=JSON.parse(he);if(!G.slides||!Array.isArray(G.slides))throw new Error("Invalid file format");R(G.slides,G.defaultBackground),G.title&&e(G.title)}catch(he){console.error("파일 불러오기 실패:",he),alert("파일을 불러올 수 없습니다. 올바른 .ddslide 파일인지 확인해주세요.")}},K.readAsText(V),I.target.value=""},O=()=>{C(),e("Untitled Presentation"),y(!1)};return w.jsxs(z.Box,{component:"header",h:56,px:"md",bg:"white",style:{borderBottom:"1px solid var(--devdive-border-light)",zIndex:20,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.05)"},children:[w.jsxs(z.Group,{h:"100%",justify:"space-between",children:[w.jsxs(z.Group,{gap:"md",children:[w.jsx(z.Box,{w:32,h:32,bg:"var(--devdive-primary)",style:{borderRadius:"var(--mantine-radius-md)",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 6px rgba(91, 110, 247, 0.2)"},children:w.jsx("span",{className:"material-symbols-outlined",style:{color:"white",fontSize:20},children:"auto_awesome"})}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"xs",fw:700,c:"dimmed",tt:"uppercase",lts:"-0.05em",children:"Presentation"}),w.jsx(z.TextInput,{value:t,onChange:I=>e(I.currentTarget.value),placeholder:"제목을 입력하세요",variant:"unstyled",size:"sm",w:192,styles:{input:{fontWeight:600,letterSpacing:"-0.01em",padding:0,height:"auto",minHeight:"auto"}}})]})]}),w.jsxs(z.Group,{gap:"sm",children:[w.jsxs(z.Menu,{shadow:"md",width:180,position:"bottom-start",children:[w.jsx(z.Menu.Target,{children:w.jsx(z.Button,{variant:"subtle",color:"gray",size:"xs",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"folder"}),children:"파일"})}),w.jsxs(z.Menu.Dropdown,{children:[w.jsx(z.Menu.Item,{leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"note_add"}),onClick:()=>y(!0),children:"새로 만들기"}),w.jsx(z.Menu.Divider,{}),w.jsx(z.Menu.Item,{leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"save"}),onClick:P,children:"저장 (.ddslide)"}),w.jsx(z.Menu.Item,{leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"folder_open"}),onClick:()=>{var I;return(I=T.current)==null?void 0:I.click()},children:"불러오기"}),w.jsx(z.Menu.Divider,{}),w.jsx(z.Menu.Item,{leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"download"}),onClick:D,disabled:n,children:"PPTX 내보내기"})]})]}),w.jsx("input",{ref:T,type:"file",accept:".ddslide,.json",style:{display:"none"},onChange:M}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Button,{variant:"subtle",color:"gray",size:"xs",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"dashboard"}),onClick:()=>{h("apply"),c(!0)},children:"템플릿"}),w.jsx(z.Button,{variant:"light",color:"devdive",size:"xs",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"add"}),onClick:()=>{h("new"),c(!0)},children:"새 슬라이드"}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Button,{variant:"gradient",gradient:{from:"#5B6EF7",to:"#3b82f6"},size:"xs",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"auto_awesome"}),onClick:()=>u(!0),children:"AI 생성"}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Button,{color:"devdive",size:"xs",fw:700,leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"download"}),onClick:D,loading:n,style:{boxShadow:"0 4px 6px rgba(91, 110, 247, 0.2)"},children:n?"Exporting...":"EXPORT"})]})]}),w.jsx(hx,{isOpen:i,onClose:()=>c(!1),mode:d}),w.jsx(U6,{isOpen:p,onClose:()=>u(!1)}),w.jsx(z.Modal,{opened:A,onClose:()=>y(!1),title:w.jsxs(z.Group,{gap:"xs",children:[w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:20,color:"#f59e0b"},children:"warning"}),w.jsx(z.Text,{fw:700,children:"새 프레젠테이션"})]}),centered:!0,size:"sm",children:w.jsxs(z.Stack,{gap:"md",children:[w.jsxs(z.Text,{size:"sm",c:"dimmed",children:["현재 작업 중인 프레젠테이션이 삭제됩니다.",w.jsx("br",{}),"저장하지 않은 변경사항은 복구할 수 없습니다."]}),w.jsxs(z.Group,{justify:"flex-end",children:[w.jsx(z.Button,{variant:"subtle",color:"gray",onClick:()=>y(!1),children:"취소"}),w.jsx(z.Button,{color:"red",onClick:O,children:"새로 만들기"})]})]})})]})};function uA(){return(uA=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t}).apply(this,arguments)}function mx(t,e){if(t==null)return{};var n,s,i={},c=Object.keys(t);for(s=0;s<c.length;s++)e.indexOf(n=c[s])>=0||(i[n]=t[n]);return i}function bg(t){var e=oe.useRef(t),n=oe.useRef(function(s){e.current&&e.current(s)});return e.current=t,n.current}var Tf=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t<e?e:t},xf=function(t){return"touches"in t},Sg=function(t){return t&&t.ownerDocument.defaultView||self},t2=function(t,e,n){var s=t.getBoundingClientRect(),i=xf(e)?(function(c,d){for(var h=0;h<c.length;h++)if(c[h].identifier===d)return c[h];return c[0]})(e.touches,n):e;return{left:Tf((i.pageX-(s.left+Sg(t).pageXOffset))/s.width),top:Tf((i.pageY-(s.top+Sg(t).pageYOffset))/s.height)}},n2=function(t){!xf(t)&&t.preventDefault()},gx=oe.memo(function(t){var e=t.onMove,n=t.onKey,s=mx(t,["onMove","onKey"]),i=oe.useRef(null),c=bg(e),d=bg(n),h=oe.useRef(null),p=oe.useRef(!1),u=oe.useMemo(function(){var S=function(T){n2(T),(xf(T)?T.touches.length>0:T.buttons>0)&&i.current?c(t2(i.current,T,h.current)):R(!1)},C=function(){return R(!1)};function R(T){var D=p.current,P=Sg(i.current),M=T?P.addEventListener:P.removeEventListener;M(D?"touchmove":"mousemove",S),M(D?"touchend":"mouseup",C)}return[function(T){var D=T.nativeEvent,P=i.current;if(P&&(n2(D),!(function(O,I){return I&&!xf(O)})(D,p.current)&&P)){if(xf(D)){p.current=!0;var M=D.changedTouches||[];M.length&&(h.current=M[0].identifier)}P.focus(),c(t2(P,D,h.current)),R(!0)}},function(T){var D=T.which||T.keyCode;D<37||D>40||(T.preventDefault(),d({left:D===39?.05:D===37?-.05:0,top:D===40?.05:D===38?-.05:0}))},R]},[d,c]),A=u[0],y=u[1],x=u[2];return oe.useEffect(function(){return x},[x]),oe.createElement("div",uA({},s,{onTouchStart:A,onMouseDown:A,className:"react-colorful__interactive",ref:i,onKeyDown:y,tabIndex:0,role:"slider"}))}),Wg=function(t){return t.filter(Boolean).join(" ")},vx=function(t){var e=t.color,n=t.left,s=t.top,i=s===void 0?.5:s,c=Wg(["react-colorful__pointer",t.className]);return oe.createElement("div",{className:c,style:{top:100*i+"%",left:100*n+"%"}},oe.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Br=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n},j6=function(t){return Q6(Cg(t))},Cg=function(t){return t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Br(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?Br(parseInt(t.substring(6,8),16)/255,2):1}},G6=function(t){return X6(W6(t))},H6=function(t){var e=t.s,n=t.v,s=t.a,i=(200-e)*n/100;return{h:Br(t.h),s:Br(i>0&&i<200?e*n/100/(i<=100?i:200-i)*100:0),l:Br(i/2),a:Br(s,2)}},wg=function(t){var e=H6(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},W6=function(t){var e=t.h,n=t.s,s=t.v,i=t.a;e=e/360*6,n/=100,s/=100;var c=Math.floor(e),d=s*(1-n),h=s*(1-(e-c)*n),p=s*(1-(1-e+c)*n),u=c%6;return{r:Br(255*[s,h,d,d,p,s][u]),g:Br(255*[p,s,s,h,d,d][u]),b:Br(255*[d,d,p,s,s,h][u]),a:Br(i,2)}},Pp=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},X6=function(t){var e=t.r,n=t.g,s=t.b,i=t.a,c=i<1?Pp(Br(255*i)):"";return"#"+Pp(e)+Pp(n)+Pp(s)+c},Q6=function(t){var e=t.r,n=t.g,s=t.b,i=t.a,c=Math.max(e,n,s),d=c-Math.min(e,n,s),h=d?c===e?(n-s)/d:c===n?2+(s-e)/d:4+(e-n)/d:0;return{h:Br(60*(h<0?h+6:h)),s:Br(c?d/c*100:0),v:Br(c/255*100),a:i}},Y6=oe.memo(function(t){var e=t.hue,n=t.onChange,s=Wg(["react-colorful__hue",t.className]);return oe.createElement("div",{className:s},oe.createElement(gx,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:Tf(e+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":Br(e),"aria-valuemax":"360","aria-valuemin":"0"},oe.createElement(vx,{className:"react-colorful__hue-pointer",left:e/360,color:wg({h:e,s:100,v:100,a:1})})))}),V6=oe.memo(function(t){var e=t.hsva,n=t.onChange,s={backgroundColor:wg({h:e.h,s:100,v:100,a:1})};return oe.createElement("div",{className:"react-colorful__saturation",style:s},oe.createElement(gx,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:Tf(e.s+100*i.left,0,100),v:Tf(e.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Br(e.s)+"%, Brightness "+Br(e.v)+"%"},oe.createElement(vx,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:wg(e)})))}),yx=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0},q6=function(t,e){return t.toLowerCase()===e.toLowerCase()||yx(Cg(t),Cg(e))};function K6(t,e,n){var s=bg(n),i=oe.useState(function(){return t.toHsva(e)}),c=i[0],d=i[1],h=oe.useRef({color:e,hsva:c});oe.useEffect(function(){if(!t.equal(e,h.current.color)){var u=t.toHsva(e);h.current={hsva:u,color:e},d(u)}},[e,t]),oe.useEffect(function(){var u;yx(c,h.current.hsva)||t.equal(u=t.fromHsva(c),h.current.color)||(h.current={hsva:c,color:u},s(u))},[c,t,s]);var p=oe.useCallback(function(u){d(function(A){return Object.assign({},A,u)})},[]);return[c,p]}var J6=typeof window<"u"?oe.useLayoutEffect:oe.useEffect,Z6=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},r2=new Map,$6=function(t){J6(function(){var e=t.current?t.current.ownerDocument:document;if(e!==void 0&&!r2.has(e)){var n=e.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,r2.set(e,n);var s=Z6();s&&n.setAttribute("nonce",s),e.head.appendChild(n)}},[])},eC=function(t){var e=t.className,n=t.colorModel,s=t.color,i=s===void 0?n.defaultColor:s,c=t.onChange,d=mx(t,["className","colorModel","color","onChange"]),h=oe.useRef(null);$6(h);var p=K6(n,i,c),u=p[0],A=p[1],y=Wg(["react-colorful",e]);return oe.createElement("div",uA({},d,{ref:h,className:y}),oe.createElement(V6,{hsva:u,onChange:A}),oe.createElement(Y6,{hue:u.h,onChange:A,className:"react-colorful__last-control"}))},tC={defaultColor:"000",toHsva:j6,fromHsva:function(t){return G6({h:t.h,s:t.s,v:t.v,a:1})},equal:q6},xx=function(t){return oe.createElement(eC,uA({},t,{colorModel:tC}))};const bx=()=>{var ae;const t=Ve(H=>H.mode),e=Ve(H=>H.currentShapeType),n=Ve(H=>H.currentTextStyle),s=Ve(H=>H.currentFontFamily),i=Ve(H=>H.selectedElementId),c=Ve(H=>H.slides),d=Ve(H=>H.currentSlideIndex),h=Ve(H=>H.setMode),p=Ve(H=>H.setShapeType),u=Ve(H=>H.setTextStyle),A=Ve(H=>H.setFontFamily),y=Ve(H=>H.deleteElement),x=Ve(H=>H.addElement),S=Ve(H=>H.updateSlideBackground),C=Ve(H=>H.updateAllSlidesBackground),R=Ve(H=>H.snapSettings),T=Ve(H=>H.toggleSnap),[D,P]=oe.useState(!1),M=oe.useRef(null),O=oe.useRef(null),[I,V]=oe.useState({x:0,y:0}),[K,q]=oe.useState({isDragging:!1,startX:0,startY:0,offsetX:0,offsetY:0}),Y=((ae=c[d])==null?void 0:ae.background)||"#ffffff",X=oe.useCallback(H=>{const $=H.target;$.closest("button")||$.closest('[role="button"]')||$.closest("input")||$.closest("[data-mantine-popover]")||(H.preventDefault(),q({isDragging:!0,startX:H.clientX,startY:H.clientY,offsetX:I.x,offsetY:I.y}))},[I]);oe.useEffect(()=>{if(!K.isDragging)return;const H=Ee=>{const Re=Ee.clientX-K.startX,Ne=Ee.clientY-K.startY;let je=K.offsetX+Re,gt=K.offsetY+Ne;if(O.current){const ft=O.current.getBoundingClientRect(),ht=window.innerWidth,Lt=window.innerHeight,qe=ft.width,Dt=ft.height,ge=ht/2,k=24,ce=8,de=-ge+qe/2+ce,j=ge-qe/2-ce;je=Math.max(de,Math.min(j,je));const U=-k+ce,Z=Lt-k-Dt-ce;gt=Math.max(U,Math.min(Z,gt))}V({x:je,y:gt})},$=()=>{q(Ee=>({...Ee,isDragging:!1}))};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",$),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",$)}},[K.isDragging,K.startX,K.startY,K.offsetX,K.offsetY]);const he=H=>{h(H)},G=H=>{p(H),h("shape")},te=H=>{u(H),h("text")},L=()=>{i&&y(i)},ne=H=>{var Re;const $=(Re=H.target.files)==null?void 0:Re[0];if(!$)return;const Ee=new FileReader;Ee.onload=Ne=>{var ft;const je=(ft=Ne.target)==null?void 0:ft.result,gt=new window.Image;gt.onload=()=>{let qe=gt.width,Dt=gt.height;qe>400&&(Dt=400/qe*Dt,qe=400),Dt>300&&(qe=300/Dt*qe,Dt=300);const ge={id:fi(),type:"image",x:100,y:100,width:qe,height:Dt,rotation:0,src:je};x(ge)},gt.src=je},Ee.readAsDataURL($),H.target.value=""},le=()=>{const H={id:fi(),type:"shape",x:100,y:100,width:300,height:200,rotation:0,shapeType:"rect",fill:"#5B6EF720",stroke:"#5B6EF7",strokeWidth:2,text:"클릭하여 이미지 추가",textColor:"#5B6EF7",textSize:16,cornerRadius:12,isImagePlaceholder:!0};x(H),h("select")},Ae={title:"제목",subtitle:"소제목",body:"본문",caption:"캡션"},re={rect:{label:"사각형",icon:"rectangle"},ellipse:{label:"원형",icon:"circle"},triangle:{label:"삼각형",icon:"change_history"},line:{label:"선",icon:"horizontal_rule"},arrow:{label:"화살표",icon:"arrow_forward"}},ie=["#ffffff","#f8fafc","#f1f5f9","#e2e8f0","#1e293b","#0f172a","#5B6EF7","#3b82f6","#ef4444","#22c55e","#f97316","#8b5cf6"];return w.jsx(z.Box,{ref:O,pos:"absolute",top:24,left:"50%",style:{transform:`translate(calc(-50% + ${I.x}px), ${I.y}px)`,zIndex:30,cursor:K.isDragging?"grabbing":"default"},children:w.jsxs(z.Group,{gap:4,px:"sm",py:10,bg:"white",wrap:"nowrap",onMouseDown:X,style:{border:"1px solid var(--devdive-border-light)",borderRadius:"var(--mantine-radius-xl)",boxShadow:"0 8px 30px rgb(0, 0, 0, 0.08)",userSelect:"none",whiteSpace:"nowrap"},children:[w.jsx(z.Tooltip,{label:"드래그하여 이동",children:w.jsx(z.Box,{style:{cursor:"grab",display:"flex",alignItems:"center",padding:"0 4px"},children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16,color:"var(--mantine-color-gray-5)"},children:"drag_indicator"})})}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Tooltip,{label:"선택 도구",children:w.jsx(z.ActionIcon,{variant:t==="select"?"light":"subtle",color:t==="select"?"devdive":"gray",size:"lg",radius:"lg",onClick:()=>he("select"),children:w.jsx("span",{className:"material-symbols-outlined",children:"arrow_selector_tool"})})}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsxs(z.Menu,{shadow:"md",radius:"lg",children:[w.jsx(z.Menu.Target,{children:w.jsx(z.Button,{variant:t==="text"?"light":"subtle",color:t==="text"?"devdive":"gray",size:"xs",radius:"lg",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"title"}),rightSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"expand_more"}),children:Ae[n]})}),w.jsx(z.Menu.Dropdown,{children:Object.keys(Eu).map(H=>w.jsx(z.Menu.Item,{onClick:()=>te(H),rightSection:n===H?w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"check"}):null,style:{backgroundColor:n===H?"rgba(91, 110, 247, 0.05)":void 0,color:n===H?"var(--devdive-primary)":void 0},children:w.jsx("span",{style:{fontSize:Math.max(14,Math.min(Eu[H].fontSize/2,18)),fontWeight:Eu[H].fontWeight},children:Ae[H]})},H))})]}),w.jsx(z.Select,{value:s,onChange:H=>H&&A(H),data:f6.map(H=>({value:H.value,label:H.name})),size:"xs",w:100,variant:"unstyled",styles:{input:{fontWeight:500,cursor:"pointer"}}}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx("input",{ref:M,type:"file",accept:"image/*",onChange:ne,style:{display:"none"}}),w.jsxs(z.Menu,{shadow:"md",radius:"lg",children:[w.jsx(z.Menu.Target,{children:w.jsx(z.Button,{variant:t==="shape"?"light":"subtle",color:t==="shape"?"devdive":"gray",size:"xs",radius:"lg",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:re[e].icon}),rightSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"expand_more"}),children:re[e].label})}),w.jsxs(z.Menu.Dropdown,{children:[Object.keys(re).map(H=>w.jsx(z.Menu.Item,{onClick:()=>G(H),leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:re[H].icon}),rightSection:e===H?w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"check"}):null,style:{backgroundColor:e===H?"rgba(91, 110, 247, 0.05)":void 0,color:e===H?"var(--devdive-primary)":void 0},children:re[H].label},H)),w.jsx(z.Menu.Divider,{}),w.jsx(z.Menu.Item,{onClick:le,leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"image"}),children:"이미지"})]})]}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsxs(z.Popover,{opened:D,onChange:P,position:"bottom-end",radius:"lg",shadow:"xl",children:[w.jsx(z.Popover.Target,{children:w.jsx(z.Tooltip,{label:"배경 색상",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"lg",radius:"lg",onClick:()=>P(!D),children:w.jsxs(z.Group,{gap:4,children:[w.jsx(z.Box,{w:20,h:20,style:{borderRadius:4,border:"1px solid var(--devdive-border-light)",backgroundColor:Y}}),w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14,color:"var(--mantine-color-gray-5)"},children:"expand_more"})]})})})}),w.jsx(z.Popover.Dropdown,{p:"sm",miw:220,children:w.jsxs(z.Stack,{gap:"sm",children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",children:"배경 색상"}),w.jsx(xx,{color:Y,onChange:H=>S(H)}),w.jsx(z.Box,{pt:"sm",style:{borderTop:"1px solid var(--devdive-border-light)"},children:w.jsx(z.SimpleGrid,{cols:4,spacing:6,children:ie.map(H=>w.jsx(z.ActionIcon,{size:"sm",variant:"outline",color:"gray",onClick:()=>S(H),style:{backgroundColor:H,borderColor:"var(--devdive-border-light)"}},H))})}),w.jsx(z.Box,{pt:"sm",style:{borderTop:"1px solid var(--devdive-border-light)"},children:w.jsx(z.Button,{variant:"light",color:"gray",size:"xs",fullWidth:!0,leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"layers"}),onClick:()=>{C(Y),P(!1)},children:"전체 슬라이드에 적용"})})]})})]}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Tooltip,{label:`스냅 ${R.enabled?"ON":"OFF"}`,children:w.jsx(z.ActionIcon,{variant:R.enabled?"light":"subtle",color:R.enabled?"devdive":"gray",size:"lg",radius:"lg",onClick:T,children:w.jsx("span",{className:"material-symbols-outlined",children:"grid_on"})})}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Tooltip,{label:"삭제",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"red",size:"lg",radius:"lg",onClick:L,disabled:!i,children:w.jsx("span",{className:"material-symbols-outlined",children:"delete"})})})]})})},nC=Math.PI/180;function rC(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const Pl=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},Qe={_global:Pl,version:"10.2.0",isBrowser:rC(),isUnminified:/param/.test((function(t){}).toString()),dblClickWindow:400,getAngle(t){return Qe.angleDeg?t*nC:t},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_renderBackend:"web",legacyTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return Qe.DD.isDragging},isTransforming(){var t,e;return(e=(t=Qe.Transformer)===null||t===void 0?void 0:t.isTransforming())!==null&&e!==void 0?e:!1},isDragReady(){return!!Qe.DD.node},releaseCanvasOnDestroy:!0,document:Pl.document,_injectGlobal(t){typeof Pl.Konva<"u"&&console.error("Several Konva instances detected. It is not recommended to use multiple Konva instances in the same environment."),Pl.Konva=t}},Mn=t=>{Qe[t.prototype.getClassName()]=t};Qe._injectGlobal(Qe);const aC=`Konva.js unsupported environment.
|
|
263
|
+
[키워드] 키워드1, 키워드2`,value:K,onChange:G=>q(G.currentTarget.value),minRows:8,maxRows:12,autosize:!0,styles:{input:{fontFamily:"monospace",fontSize:12}}}),ge&&w.jsx(z.Alert,{color:"red",variant:"light",children:ge}),Q&&w.jsxs(z.Box,{children:[w.jsxs(z.Group,{gap:"xs",mb:"xs",children:[w.jsx(z.Text,{size:"sm",fw:500,children:"파싱된 슬라이드"}),w.jsxs(z.Badge,{color:"devdive",size:"sm",children:[Q.length,"개"]})]}),w.jsx(z.ScrollArea,{h:150,children:w.jsx(z.Stack,{gap:"xs",children:Q.map((G,j)=>w.jsxs(z.Paper,{p:"sm",radius:"md",withBorder:!0,style:{cursor:"pointer"},onClick:()=>L(j),children:[w.jsxs(z.Group,{justify:"space-between",children:[w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.Text,{size:"xs",c:"dimmed",children:G.slideNumber}),w.jsx(z.Text,{size:"sm",fw:500,children:G.sectionTitle})]}),w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.Badge,{size:"xs",variant:"light",color:"gray",children:G.sectionType}),w.jsx(z.ActionIcon,{variant:"subtle",size:"xs",color:"gray",onClick:$=>{$.stopPropagation(),L(j)},children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"edit"})})]})]}),G.keyPoints.length>0&&w.jsxs(z.Text,{size:"xs",c:"dimmed",mt:4,lineClamp:1,children:[G.keyPoints[0],"..."]})]},j))})})]})]})})]}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"sm",fw:500,mb:"xs",children:"컬러 테마"}),w.jsx(z.SimpleGrid,{cols:4,spacing:"xs",children:Object.keys(fs).map(G=>w.jsx(z.Paper,{p:"xs",radius:"md",withBorder:!0,style:{cursor:"pointer",borderColor:ne===G?"var(--devdive-primary)":void 0,borderWidth:ne===G?2:1},onClick:()=>le(G),children:w.jsxs(z.Group,{gap:4,children:[w.jsx(z.Box,{w:16,h:16,style:{borderRadius:"50%",backgroundColor:fs[G].primary}}),w.jsx(z.Text,{size:"xs",tt:"capitalize",children:G})]})},G))})]}),w.jsxs(z.Group,{justify:"flex-end",gap:"sm",children:[w.jsx(z.Button,{variant:"subtle",color:"gray",onClick:ce,children:"취소"}),s==="ai"?w.jsxs(w.Fragment,{children:[c==="input"&&w.jsx(z.Button,{color:"devdive",onClick:ee,loading:u||ae,disabled:!y.trim()||u||ae,leftSection:!u&&!ae?w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"account_tree"}):void 0,children:u||ae?"생성 중...":"구조 생성"}),c==="structure"&&w.jsx(z.Button,{color:"devdive",onClick:Ee,leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"auto_awesome"}),children:"콘텐츠 생성"}),c==="preview"&&I&&w.jsxs(z.Button,{color:"devdive",onClick:me,children:[I.length,"개 슬라이드 추가"]})]}):Q?w.jsxs(z.Button,{color:"devdive",onClick:qe,children:[Q.length,"개 슬라이드 추가"]}):w.jsx(z.Button,{color:"devdive",onClick:lt,disabled:!K.trim(),leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"data_object"}),children:"데이터 파싱"})]})]})]}),Q&&se!==null&&w.jsx(N6,{isOpen:se!==null,onClose:()=>L(null),slide:Q[se],slideIndex:se,onSave:pt,onDelete:Lt})]})},z6=[{value:"realistic",label:"사실적"},{value:"illustration",label:"일러스트"},{value:"abstract",label:"추상"},{value:"3d",label:"3D"},{value:"minimalist",label:"미니멀"}],F6=[{value:"512x512",label:"512×512"},{value:"1024x1024",label:"1024×1024"}],I6=({isOpen:t,onClose:e,onBack:n})=>{const[s,i]=oe.useState(""),[c,d]=oe.useState("illustration"),[h,p]=oe.useState("512x512"),[u,A]=oe.useState(null),{generateImage:y,isLoading:x,error:S,reset:C}=cA(),{addElement:R}=Ve(),T=()=>`image-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,D=async()=>{if(s.trim())try{const I=await y({prompt:s.trim(),style:c,size:h});A(I.base64||I.imageUrl)}catch{}},P=()=>{if(!u)return;const[I,Y]=h.split("x").map(Number),K=Math.min(I,300),q=K/I*Y,Q={id:T(),type:"image",src:u.startsWith("data:")?u:`data:image/png;base64,${u}`,x:480-K/2,y:270-q/2,width:K,height:q,rotation:0};R(Q),M()},M=()=>{i(""),A(null),C(),e()},O=()=>{A(null),D()};return w.jsx(z.Modal,{opened:t,onClose:M,title:w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",onClick:n,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:20},children:"arrow_back"})}),w.jsx(z.Text,{fw:700,children:"이미지 생성"})]}),centered:!0,size:"md",children:w.jsxs(z.Stack,{gap:"md",children:[w.jsx(z.Textarea,{label:"이미지 설명",description:"생성하고 싶은 이미지를 자세히 설명해주세요",placeholder:"예: 미래 도시의 스카이라인, 푸른 하늘과 유리 건물",value:s,onChange:I=>i(I.currentTarget.value),minRows:3,autosize:!0}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"sm",fw:500,mb:"xs",children:"이미지 스타일"}),w.jsx(z.SegmentedControl,{value:c,onChange:I=>d(I),data:z6,fullWidth:!0,color:"devdive"})]}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"sm",fw:500,mb:"xs",children:"이미지 크기"}),w.jsx(z.SegmentedControl,{value:h,onChange:I=>p(I),data:F6,color:"devdive"})]}),S&&w.jsx(z.Alert,{color:"red",variant:"light",children:S}),x&&w.jsx(z.Paper,{p:"xl",radius:"md",withBorder:!0,bg:"gray.0",children:w.jsx(z.Center,{children:w.jsxs(z.Stack,{align:"center",gap:"md",children:[w.jsx(z.Loader,{color:"devdive",size:"lg"}),w.jsx(z.Text,{size:"sm",c:"dimmed",children:"이미지를 생성하고 있습니다..."})]})})}),u&&!x&&w.jsxs(z.Paper,{p:"md",radius:"md",withBorder:!0,bg:"gray.0",children:[w.jsxs(z.Group,{justify:"space-between",mb:"xs",children:[w.jsx(z.Text,{size:"sm",fw:500,c:"dimmed",children:"생성된 이미지"}),w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",onClick:O,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"refresh"})})]}),w.jsx(z.Center,{children:w.jsx(z.Image,{src:u.startsWith("data:")?u:`data:image/png;base64,${u}`,alt:"Generated image",radius:"md",maw:300,fit:"contain"})})]}),w.jsxs(z.Group,{justify:"flex-end",gap:"sm",children:[w.jsx(z.Button,{variant:"subtle",color:"gray",onClick:M,children:"취소"}),u?w.jsx(z.Button,{color:"devdive",onClick:P,children:"슬라이드에 추가"}):w.jsx(z.Button,{color:"devdive",onClick:D,loading:x,disabled:!s.trim(),leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"auto_awesome"}),children:"이미지 생성"})]})]})})},O6=[{type:"text",icon:"edit_note",title:"텍스트 생성",description:"AI로 슬라이드 텍스트를 자동 생성",color:"blue"},{type:"slide",icon:"auto_awesome_mosaic",title:"슬라이드 자동 생성",description:"주제를 입력하면 여러 슬라이드 구성",color:"violet"},{type:"image",icon:"image",title:"이미지 생성",description:"AI로 맞춤 이미지를 생성",color:"pink"},{type:"design",icon:"palette",title:"디자인 제안",description:"레이아웃과 색상을 자동 추천",color:"teal"}],U6=({isOpen:t,onClose:e})=>{const[n,s]=oe.useState(null),i=h=>{s(h)},c=()=>{s(null)},d=()=>{s(null),e()};return w.jsxs(w.Fragment,{children:[w.jsx(z.Modal,{opened:t&&!n,onClose:d,title:w.jsxs(z.Group,{gap:"xs",children:[w.jsx(z.ThemeIcon,{variant:"gradient",gradient:{from:"#5B6EF7",to:"#3b82f6"},size:"md",radius:"md",children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"auto_awesome"})}),w.jsx(z.Text,{fw:700,children:"AI 생성"}),w.jsx(z.Badge,{variant:"light",color:"devdive",size:"sm",children:"Beta"})]}),centered:!0,size:"lg",children:w.jsxs(z.Stack,{gap:"md",children:[w.jsx(z.Text,{size:"sm",c:"dimmed",children:"AI를 활용하여 프레젠테이션을 더 빠르고 쉽게 만들어보세요."}),w.jsx(z.SimpleGrid,{cols:2,spacing:"md",children:O6.map(h=>w.jsx(z.Card,{padding:"lg",radius:"md",withBorder:!0,style:{cursor:"pointer",transition:"all 0.2s ease"},onClick:()=>i(h.type),onMouseEnter:p=>{p.currentTarget.style.borderColor="var(--devdive-primary)",p.currentTarget.style.transform="translateY(-2px)",p.currentTarget.style.boxShadow="0 4px 12px rgba(91, 110, 247, 0.15)"},onMouseLeave:p=>{p.currentTarget.style.borderColor="",p.currentTarget.style.transform="",p.currentTarget.style.boxShadow=""},children:w.jsxs(z.Group,{gap:"md",children:[w.jsx(z.ThemeIcon,{variant:"light",color:h.color,size:"xl",radius:"md",children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:24},children:h.icon})}),w.jsxs("div",{children:[w.jsx(z.Text,{fw:600,size:"sm",children:h.title}),w.jsx(z.Text,{size:"xs",c:"dimmed",mt:4,children:h.description})]})]})},h.type))})]})}),w.jsx(L6,{isOpen:n==="text",onClose:c,onBack:c}),w.jsx(M6,{isOpen:n==="slide",onClose:c,onBack:c}),w.jsx(I6,{isOpen:n==="image",onClose:c,onBack:c})]})},Ax=()=>{const[t,e]=oe.useState("Untitled Presentation"),[n,s]=oe.useState(!1),[i,c]=oe.useState(!1),[d,h]=oe.useState("new"),[p,u]=oe.useState(!1),[A,y]=oe.useState(!1),x=Ve(I=>I.slides),S=Ve(I=>I.defaultBackground),C=Ve(I=>I.resetPresentation),R=Ve(I=>I.loadSlides),T=oe.useRef(null),D=async()=>{if(!n){s(!0);try{await fx(x,t.replace(/\s+/g,"_"))}catch(I){console.error("PPTX 생성 실패:",I)}finally{s(!1)}}},P=()=>{const I={version:1,title:t,slides:x,defaultBackground:S,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},Y=new Blob([JSON.stringify(I,null,2)],{type:"application/json"}),K=URL.createObjectURL(Y),q=document.createElement("a");q.href=K,q.download=`${t.replace(/\s+/g,"_")}.ddslide`,document.body.appendChild(q),q.click(),document.body.removeChild(q),URL.revokeObjectURL(K)},M=I=>{var q;const Y=(q=I.target.files)==null?void 0:q[0];if(!Y)return;const K=new FileReader;K.onload=Q=>{var V;try{const ge=(V=Q.target)==null?void 0:V.result,W=JSON.parse(ge);if(!W.slides||!Array.isArray(W.slides))throw new Error("Invalid file format");R(W.slides,W.defaultBackground),W.title&&e(W.title)}catch(ge){console.error("파일 불러오기 실패:",ge),alert("파일을 불러올 수 없습니다. 올바른 .ddslide 파일인지 확인해주세요.")}},K.readAsText(Y),I.target.value=""},O=()=>{C(),e("Untitled Presentation"),y(!1)};return w.jsxs(z.Box,{component:"header",h:56,px:"md",bg:"white",style:{borderBottom:"1px solid var(--devdive-border-light)",zIndex:20,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.05)"},children:[w.jsxs(z.Group,{h:"100%",justify:"space-between",children:[w.jsxs(z.Group,{gap:"md",children:[w.jsx(z.Box,{w:32,h:32,bg:"var(--devdive-primary)",style:{borderRadius:"var(--mantine-radius-md)",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 6px rgba(91, 110, 247, 0.2)"},children:w.jsx("span",{className:"material-symbols-outlined",style:{color:"white",fontSize:20},children:"auto_awesome"})}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"xs",fw:700,c:"dimmed",tt:"uppercase",lts:"-0.05em",children:"Presentation"}),w.jsx(z.TextInput,{value:t,onChange:I=>e(I.currentTarget.value),placeholder:"제목을 입력하세요",variant:"unstyled",size:"sm",w:192,styles:{input:{fontWeight:600,letterSpacing:"-0.01em",padding:0,height:"auto",minHeight:"auto"}}})]})]}),w.jsxs(z.Group,{gap:"sm",children:[w.jsxs(z.Menu,{shadow:"md",width:180,position:"bottom-start",children:[w.jsx(z.Menu.Target,{children:w.jsx(z.Button,{variant:"subtle",color:"gray",size:"xs",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"folder"}),children:"파일"})}),w.jsxs(z.Menu.Dropdown,{children:[w.jsx(z.Menu.Item,{leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"note_add"}),onClick:()=>y(!0),children:"새로 만들기"}),w.jsx(z.Menu.Divider,{}),w.jsx(z.Menu.Item,{leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"save"}),onClick:P,children:"저장 (.ddslide)"}),w.jsx(z.Menu.Item,{leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"folder_open"}),onClick:()=>{var I;return(I=T.current)==null?void 0:I.click()},children:"불러오기"}),w.jsx(z.Menu.Divider,{}),w.jsx(z.Menu.Item,{leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"download"}),onClick:D,disabled:n,children:"PPTX 내보내기"})]})]}),w.jsx("input",{ref:T,type:"file",accept:".ddslide,.json",style:{display:"none"},onChange:M}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Button,{variant:"subtle",color:"gray",size:"xs",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"dashboard"}),onClick:()=>{h("apply"),c(!0)},children:"템플릿"}),w.jsx(z.Button,{variant:"light",color:"devdive",size:"xs",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"add"}),onClick:()=>{h("new"),c(!0)},children:"새 슬라이드"}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Button,{variant:"gradient",gradient:{from:"#5B6EF7",to:"#3b82f6"},size:"xs",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"auto_awesome"}),onClick:()=>u(!0),children:"AI 생성"}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Button,{color:"devdive",size:"xs",fw:700,leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"download"}),onClick:D,loading:n,style:{boxShadow:"0 4px 6px rgba(91, 110, 247, 0.2)"},children:n?"Exporting...":"EXPORT"})]})]}),w.jsx(hx,{isOpen:i,onClose:()=>c(!1),mode:d}),w.jsx(U6,{isOpen:p,onClose:()=>u(!1)}),w.jsx(z.Modal,{opened:A,onClose:()=>y(!1),title:w.jsxs(z.Group,{gap:"xs",children:[w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:20,color:"#f59e0b"},children:"warning"}),w.jsx(z.Text,{fw:700,children:"새 프레젠테이션"})]}),centered:!0,size:"sm",children:w.jsxs(z.Stack,{gap:"md",children:[w.jsxs(z.Text,{size:"sm",c:"dimmed",children:["현재 작업 중인 프레젠테이션이 삭제됩니다.",w.jsx("br",{}),"저장하지 않은 변경사항은 복구할 수 없습니다."]}),w.jsxs(z.Group,{justify:"flex-end",children:[w.jsx(z.Button,{variant:"subtle",color:"gray",onClick:()=>y(!1),children:"취소"}),w.jsx(z.Button,{color:"red",onClick:O,children:"새로 만들기"})]})]})})]})};function uA(){return(uA=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t}).apply(this,arguments)}function mx(t,e){if(t==null)return{};var n,s,i={},c=Object.keys(t);for(s=0;s<c.length;s++)e.indexOf(n=c[s])>=0||(i[n]=t[n]);return i}function bg(t){var e=oe.useRef(t),n=oe.useRef(function(s){e.current&&e.current(s)});return e.current=t,n.current}var Tf=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t<e?e:t},xf=function(t){return"touches"in t},Sg=function(t){return t&&t.ownerDocument.defaultView||self},t2=function(t,e,n){var s=t.getBoundingClientRect(),i=xf(e)?(function(c,d){for(var h=0;h<c.length;h++)if(c[h].identifier===d)return c[h];return c[0]})(e.touches,n):e;return{left:Tf((i.pageX-(s.left+Sg(t).pageXOffset))/s.width),top:Tf((i.pageY-(s.top+Sg(t).pageYOffset))/s.height)}},n2=function(t){!xf(t)&&t.preventDefault()},gx=oe.memo(function(t){var e=t.onMove,n=t.onKey,s=mx(t,["onMove","onKey"]),i=oe.useRef(null),c=bg(e),d=bg(n),h=oe.useRef(null),p=oe.useRef(!1),u=oe.useMemo(function(){var S=function(T){n2(T),(xf(T)?T.touches.length>0:T.buttons>0)&&i.current?c(t2(i.current,T,h.current)):R(!1)},C=function(){return R(!1)};function R(T){var D=p.current,P=Sg(i.current),M=T?P.addEventListener:P.removeEventListener;M(D?"touchmove":"mousemove",S),M(D?"touchend":"mouseup",C)}return[function(T){var D=T.nativeEvent,P=i.current;if(P&&(n2(D),!(function(O,I){return I&&!xf(O)})(D,p.current)&&P)){if(xf(D)){p.current=!0;var M=D.changedTouches||[];M.length&&(h.current=M[0].identifier)}P.focus(),c(t2(P,D,h.current)),R(!0)}},function(T){var D=T.which||T.keyCode;D<37||D>40||(T.preventDefault(),d({left:D===39?.05:D===37?-.05:0,top:D===40?.05:D===38?-.05:0}))},R]},[d,c]),A=u[0],y=u[1],x=u[2];return oe.useEffect(function(){return x},[x]),oe.createElement("div",uA({},s,{onTouchStart:A,onMouseDown:A,className:"react-colorful__interactive",ref:i,onKeyDown:y,tabIndex:0,role:"slider"}))}),Wg=function(t){return t.filter(Boolean).join(" ")},vx=function(t){var e=t.color,n=t.left,s=t.top,i=s===void 0?.5:s,c=Wg(["react-colorful__pointer",t.className]);return oe.createElement("div",{className:c,style:{top:100*i+"%",left:100*n+"%"}},oe.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Br=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n},j6=function(t){return Q6(Cg(t))},Cg=function(t){return t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Br(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?Br(parseInt(t.substring(6,8),16)/255,2):1}},G6=function(t){return X6(W6(t))},H6=function(t){var e=t.s,n=t.v,s=t.a,i=(200-e)*n/100;return{h:Br(t.h),s:Br(i>0&&i<200?e*n/100/(i<=100?i:200-i)*100:0),l:Br(i/2),a:Br(s,2)}},wg=function(t){var e=H6(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},W6=function(t){var e=t.h,n=t.s,s=t.v,i=t.a;e=e/360*6,n/=100,s/=100;var c=Math.floor(e),d=s*(1-n),h=s*(1-(e-c)*n),p=s*(1-(1-e+c)*n),u=c%6;return{r:Br(255*[s,h,d,d,p,s][u]),g:Br(255*[p,s,s,h,d,d][u]),b:Br(255*[d,d,p,s,s,h][u]),a:Br(i,2)}},Pp=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},X6=function(t){var e=t.r,n=t.g,s=t.b,i=t.a,c=i<1?Pp(Br(255*i)):"";return"#"+Pp(e)+Pp(n)+Pp(s)+c},Q6=function(t){var e=t.r,n=t.g,s=t.b,i=t.a,c=Math.max(e,n,s),d=c-Math.min(e,n,s),h=d?c===e?(n-s)/d:c===n?2+(s-e)/d:4+(e-n)/d:0;return{h:Br(60*(h<0?h+6:h)),s:Br(c?d/c*100:0),v:Br(c/255*100),a:i}},Y6=oe.memo(function(t){var e=t.hue,n=t.onChange,s=Wg(["react-colorful__hue",t.className]);return oe.createElement("div",{className:s},oe.createElement(gx,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:Tf(e+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":Br(e),"aria-valuemax":"360","aria-valuemin":"0"},oe.createElement(vx,{className:"react-colorful__hue-pointer",left:e/360,color:wg({h:e,s:100,v:100,a:1})})))}),V6=oe.memo(function(t){var e=t.hsva,n=t.onChange,s={backgroundColor:wg({h:e.h,s:100,v:100,a:1})};return oe.createElement("div",{className:"react-colorful__saturation",style:s},oe.createElement(gx,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:Tf(e.s+100*i.left,0,100),v:Tf(e.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Br(e.s)+"%, Brightness "+Br(e.v)+"%"},oe.createElement(vx,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:wg(e)})))}),yx=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0},q6=function(t,e){return t.toLowerCase()===e.toLowerCase()||yx(Cg(t),Cg(e))};function K6(t,e,n){var s=bg(n),i=oe.useState(function(){return t.toHsva(e)}),c=i[0],d=i[1],h=oe.useRef({color:e,hsva:c});oe.useEffect(function(){if(!t.equal(e,h.current.color)){var u=t.toHsva(e);h.current={hsva:u,color:e},d(u)}},[e,t]),oe.useEffect(function(){var u;yx(c,h.current.hsva)||t.equal(u=t.fromHsva(c),h.current.color)||(h.current={hsva:c,color:u},s(u))},[c,t,s]);var p=oe.useCallback(function(u){d(function(A){return Object.assign({},A,u)})},[]);return[c,p]}var J6=typeof window<"u"?oe.useLayoutEffect:oe.useEffect,Z6=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},r2=new Map,$6=function(t){J6(function(){var e=t.current?t.current.ownerDocument:document;if(e!==void 0&&!r2.has(e)){var n=e.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,r2.set(e,n);var s=Z6();s&&n.setAttribute("nonce",s),e.head.appendChild(n)}},[])},eC=function(t){var e=t.className,n=t.colorModel,s=t.color,i=s===void 0?n.defaultColor:s,c=t.onChange,d=mx(t,["className","colorModel","color","onChange"]),h=oe.useRef(null);$6(h);var p=K6(n,i,c),u=p[0],A=p[1],y=Wg(["react-colorful",e]);return oe.createElement("div",uA({},d,{ref:h,className:y}),oe.createElement(V6,{hsva:u,onChange:A}),oe.createElement(Y6,{hue:u.h,onChange:A,className:"react-colorful__last-control"}))},tC={defaultColor:"000",toHsva:j6,fromHsva:function(t){return G6({h:t.h,s:t.s,v:t.v,a:1})},equal:q6},xx=function(t){return oe.createElement(eC,uA({},t,{colorModel:tC}))};const bx=()=>{var re;const t=Ve(U=>U.mode),e=Ve(U=>U.currentShapeType),n=Ve(U=>U.currentTextStyle),s=Ve(U=>U.currentFontFamily),i=Ve(U=>U.selectedElementId),c=Ve(U=>U.slides),d=Ve(U=>U.currentSlideIndex),h=Ve(U=>U.setMode),p=Ve(U=>U.setShapeType),u=Ve(U=>U.setTextStyle),A=Ve(U=>U.setFontFamily),y=Ve(U=>U.deleteElement),x=Ve(U=>U.addElement),S=Ve(U=>U.updateSlideBackground),C=Ve(U=>U.updateAllSlidesBackground),R=Ve(U=>U.snapSettings),T=Ve(U=>U.toggleSnap),[D,P]=oe.useState(!1),M=oe.useRef(null),O=oe.useRef(null),[I,Y]=oe.useState({x:0,y:0}),[K,q]=oe.useState({isDragging:!1,startX:0,startY:0,offsetX:0,offsetY:0}),Q=((re=c[d])==null?void 0:re.background)||"#ffffff",V=oe.useCallback(U=>{const ee=U.target;ee.closest("button")||ee.closest('[role="button"]')||ee.closest("input")||ee.closest("[data-mantine-popover]")||(U.preventDefault(),q({isDragging:!0,startX:U.clientX,startY:U.clientY,offsetX:I.x,offsetY:I.y}))},[I]);oe.useEffect(()=>{if(!K.isDragging)return;const U=Ee=>{const Re=Ee.clientX-K.startX,Ne=Ee.clientY-K.startY;let Ue=K.offsetX+Re,ot=K.offsetY+Ne;if(O.current){const lt=O.current.getBoundingClientRect(),pt=window.innerWidth,Lt=window.innerHeight,qe=lt.width,Dt=lt.height,me=pt/2,k=24,ce=8,de=-me+qe/2+ce,G=me-qe/2-ce;Ue=Math.max(de,Math.min(G,Ue));const j=-k+ce,$=Lt-k-Dt-ce;ot=Math.max(j,Math.min($,ot))}Y({x:Ue,y:ot})},ee=()=>{q(Ee=>({...Ee,isDragging:!1}))};return document.addEventListener("mousemove",U),document.addEventListener("mouseup",ee),()=>{document.removeEventListener("mousemove",U),document.removeEventListener("mouseup",ee)}},[K.isDragging,K.startX,K.startY,K.offsetX,K.offsetY]);const ge=U=>{h(U)},W=U=>{p(U),h("shape")},se=U=>{u(U),h("text")},L=()=>{i&&y(i)},ne=U=>{var Re;const ee=(Re=U.target.files)==null?void 0:Re[0];if(!ee)return;const Ee=new FileReader;Ee.onload=Ne=>{var lt;const Ue=(lt=Ne.target)==null?void 0:lt.result,ot=new window.Image;ot.onload=()=>{let qe=ot.width,Dt=ot.height;qe>400&&(Dt=400/qe*Dt,qe=400),Dt>300&&(qe=300/Dt*qe,Dt=300);const me={id:fi(),type:"image",x:100,y:100,width:qe,height:Dt,rotation:0,src:Ue};x(me)},ot.src=Ue},Ee.readAsDataURL(ee),U.target.value=""},le=()=>{const U={id:fi(),type:"shape",x:100,y:100,width:300,height:200,rotation:0,shapeType:"rect",fill:"#5B6EF720",stroke:"#5B6EF7",strokeWidth:2,text:"클릭하여 이미지 추가",textColor:"#5B6EF7",textSize:16,cornerRadius:12,isImagePlaceholder:!0};x(U),h("select")},pe={title:"제목",subtitle:"소제목",body:"본문",caption:"캡션"},J={rect:{label:"사각형",icon:"rectangle"},ellipse:{label:"원형",icon:"circle"},triangle:{label:"삼각형",icon:"change_history"},line:{label:"선",icon:"horizontal_rule"},arrow:{label:"화살표",icon:"arrow_forward"}},ae=["#ffffff","#f8fafc","#f1f5f9","#e2e8f0","#1e293b","#0f172a","#5B6EF7","#3b82f6","#ef4444","#22c55e","#f97316","#8b5cf6"];return w.jsx(z.Box,{ref:O,pos:"absolute",top:24,left:"50%",style:{transform:`translate(calc(-50% + ${I.x}px), ${I.y}px)`,zIndex:30,cursor:K.isDragging?"grabbing":"default"},children:w.jsxs(z.Group,{gap:4,px:"sm",py:10,bg:"white",wrap:"nowrap",onMouseDown:V,style:{border:"1px solid var(--devdive-border-light)",borderRadius:"var(--mantine-radius-xl)",boxShadow:"0 8px 30px rgb(0, 0, 0, 0.08)",userSelect:"none",whiteSpace:"nowrap"},children:[w.jsx(z.Tooltip,{label:"드래그하여 이동",children:w.jsx(z.Box,{style:{cursor:"grab",display:"flex",alignItems:"center",padding:"0 4px"},children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16,color:"var(--mantine-color-gray-5)"},children:"drag_indicator"})})}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Tooltip,{label:"선택 도구",children:w.jsx(z.ActionIcon,{variant:t==="select"?"light":"subtle",color:t==="select"?"devdive":"gray",size:"lg",radius:"lg",onClick:()=>ge("select"),children:w.jsx("span",{className:"material-symbols-outlined",children:"arrow_selector_tool"})})}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsxs(z.Menu,{shadow:"md",radius:"lg",children:[w.jsx(z.Menu.Target,{children:w.jsx(z.Button,{variant:t==="text"?"light":"subtle",color:t==="text"?"devdive":"gray",size:"xs",radius:"lg",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"title"}),rightSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"expand_more"}),children:pe[n]})}),w.jsx(z.Menu.Dropdown,{children:Object.keys(Eu).map(U=>w.jsx(z.Menu.Item,{onClick:()=>se(U),rightSection:n===U?w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"check"}):null,style:{backgroundColor:n===U?"rgba(91, 110, 247, 0.05)":void 0,color:n===U?"var(--devdive-primary)":void 0},children:w.jsx("span",{style:{fontSize:Math.max(14,Math.min(Eu[U].fontSize/2,18)),fontWeight:Eu[U].fontWeight},children:pe[U]})},U))})]}),w.jsx(z.Select,{value:s,onChange:U=>U&&A(U),data:f6.map(U=>({value:U.value,label:U.name})),size:"xs",w:100,variant:"unstyled",styles:{input:{fontWeight:500,cursor:"pointer"}}}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx("input",{ref:M,type:"file",accept:"image/*",onChange:ne,style:{display:"none"}}),w.jsxs(z.Menu,{shadow:"md",radius:"lg",children:[w.jsx(z.Menu.Target,{children:w.jsx(z.Button,{variant:t==="shape"?"light":"subtle",color:t==="shape"?"devdive":"gray",size:"xs",radius:"lg",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:J[e].icon}),rightSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"expand_more"}),children:J[e].label})}),w.jsxs(z.Menu.Dropdown,{children:[Object.keys(J).map(U=>w.jsx(z.Menu.Item,{onClick:()=>W(U),leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:J[U].icon}),rightSection:e===U?w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"check"}):null,style:{backgroundColor:e===U?"rgba(91, 110, 247, 0.05)":void 0,color:e===U?"var(--devdive-primary)":void 0},children:J[U].label},U)),w.jsx(z.Menu.Divider,{}),w.jsx(z.Menu.Item,{onClick:le,leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"image"}),children:"이미지"})]})]}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsxs(z.Popover,{opened:D,onChange:P,position:"bottom-end",radius:"lg",shadow:"xl",children:[w.jsx(z.Popover.Target,{children:w.jsx(z.Tooltip,{label:"배경 색상",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"lg",radius:"lg",onClick:()=>P(!D),children:w.jsxs(z.Group,{gap:4,children:[w.jsx(z.Box,{w:20,h:20,style:{borderRadius:4,border:"1px solid var(--devdive-border-light)",backgroundColor:Q}}),w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14,color:"var(--mantine-color-gray-5)"},children:"expand_more"})]})})})}),w.jsx(z.Popover.Dropdown,{p:"sm",miw:220,children:w.jsxs(z.Stack,{gap:"sm",children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",children:"배경 색상"}),w.jsx(xx,{color:Q,onChange:U=>S(U)}),w.jsx(z.Box,{pt:"sm",style:{borderTop:"1px solid var(--devdive-border-light)"},children:w.jsx(z.SimpleGrid,{cols:4,spacing:6,children:ae.map(U=>w.jsx(z.ActionIcon,{size:"sm",variant:"outline",color:"gray",onClick:()=>S(U),style:{backgroundColor:U,borderColor:"var(--devdive-border-light)"}},U))})}),w.jsx(z.Box,{pt:"sm",style:{borderTop:"1px solid var(--devdive-border-light)"},children:w.jsx(z.Button,{variant:"light",color:"gray",size:"xs",fullWidth:!0,leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"layers"}),onClick:()=>{C(Q),P(!1)},children:"전체 슬라이드에 적용"})})]})})]}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Tooltip,{label:`스냅 ${R.enabled?"ON":"OFF"}`,children:w.jsx(z.ActionIcon,{variant:R.enabled?"light":"subtle",color:R.enabled?"devdive":"gray",size:"lg",radius:"lg",onClick:T,children:w.jsx("span",{className:"material-symbols-outlined",children:"grid_on"})})}),w.jsx(z.Divider,{orientation:"vertical",h:24,my:"auto"}),w.jsx(z.Tooltip,{label:"삭제",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"red",size:"lg",radius:"lg",onClick:L,disabled:!i,children:w.jsx("span",{className:"material-symbols-outlined",children:"delete"})})})]})})},nC=Math.PI/180;function rC(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const Pl=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},Qe={_global:Pl,version:"10.2.0",isBrowser:rC(),isUnminified:/param/.test((function(t){}).toString()),dblClickWindow:400,getAngle(t){return Qe.angleDeg?t*nC:t},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_renderBackend:"web",legacyTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return Qe.DD.isDragging},isTransforming(){var t,e;return(e=(t=Qe.Transformer)===null||t===void 0?void 0:t.isTransforming())!==null&&e!==void 0?e:!1},isDragReady(){return!!Qe.DD.node},releaseCanvasOnDestroy:!0,document:Pl.document,_injectGlobal(t){typeof Pl.Konva<"u"&&console.error("Several Konva instances detected. It is not recommended to use multiple Konva instances in the same environment."),Pl.Konva=t}},Mn=t=>{Qe[t.prototype.getClassName()]=t};Qe._injectGlobal(Qe);const aC=`Konva.js unsupported environment.
|
|
264
264
|
|
|
265
265
|
Looks like you are trying to use Konva.js in Node.js environment. because "document" object is undefined.
|
|
266
266
|
|
|
@@ -273,8 +273,8 @@ or
|
|
|
273
273
|
|
|
274
274
|
bash: npm install skia-canvas
|
|
275
275
|
js: import "konva/skia-backend";
|
|
276
|
-
`,a2=()=>{if(typeof document>"u")throw new Error(aC)};class Qa{constructor(e=[1,0,0,1,0,0]){this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new Qa(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){const n=this.m;return{x:n[0]*e.x+n[2]*e.y+n[4],y:n[1]*e.x+n[3]*e.y+n[5]}}translate(e,n){return this.m[4]+=this.m[0]*e+this.m[2]*n,this.m[5]+=this.m[1]*e+this.m[3]*n,this}scale(e,n){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=n,this.m[3]*=n,this}rotate(e){const n=Math.cos(e),s=Math.sin(e),i=this.m[0]*n+this.m[2]*s,c=this.m[1]*n+this.m[3]*s,d=this.m[0]*-s+this.m[2]*n,h=this.m[1]*-s+this.m[3]*n;return this.m[0]=i,this.m[1]=c,this.m[2]=d,this.m[3]=h,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,n){const s=this.m[0]+this.m[2]*n,i=this.m[1]+this.m[3]*n,c=this.m[2]+this.m[0]*e,d=this.m[3]+this.m[1]*e;return this.m[0]=s,this.m[1]=i,this.m[2]=c,this.m[3]=d,this}multiply(e){const n=this.m[0]*e.m[0]+this.m[2]*e.m[1],s=this.m[1]*e.m[0]+this.m[3]*e.m[1],i=this.m[0]*e.m[2]+this.m[2]*e.m[3],c=this.m[1]*e.m[2]+this.m[3]*e.m[3],d=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],h=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=n,this.m[1]=s,this.m[2]=i,this.m[3]=c,this.m[4]=d,this.m[5]=h,this}invert(){const e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),n=this.m[3]*e,s=-this.m[1]*e,i=-this.m[2]*e,c=this.m[0]*e,d=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),h=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=n,this.m[1]=s,this.m[2]=i,this.m[3]=c,this.m[4]=d,this.m[5]=h,this}getMatrix(){return this.m}decompose(){const e=this.m[0],n=this.m[1],s=this.m[2],i=this.m[3],c=this.m[4],d=this.m[5],h=e*i-n*s,p={x:c,y:d,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(e!=0||n!=0){const u=Math.sqrt(e*e+n*n);p.rotation=n>0?Math.acos(e/u):-Math.acos(e/u),p.scaleX=u,p.scaleY=h/u,p.skewX=(e*s+n*i)/h,p.skewY=0}else if(s!=0||i!=0){const u=Math.sqrt(s*s+i*i);p.rotation=Math.PI/2-(i>0?Math.acos(-s/u):-Math.acos(s/u)),p.scaleX=h/u,p.scaleY=u,p.skewX=0,p.skewY=(e*s+n*i)/h}return p.rotation=pe._getRotation(p.rotation),p}}const iC="[object Array]",sC="[object Number]",oC="[object String]",lC="[object Boolean]",cC=Math.PI/180,uC=180/Math.PI,af="#",dC="",fC="0",hC="Konva warning: ",i2="Konva error: ",pC="rgb(",Jm={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},AC=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let Mp=[],sf=null;const mC=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(t){setTimeout(t,16)},pe={_isElement(t){return!!(t&&t.nodeType==1)},_isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isPlainObject(t){return!!t&&t.constructor===Object},_isArray(t){return Object.prototype.toString.call(t)===iC},_isNumber(t){return Object.prototype.toString.call(t)===sC&&!isNaN(t)&&isFinite(t)},_isString(t){return Object.prototype.toString.call(t)===oC},_isBoolean(t){return Object.prototype.toString.call(t)===lC},isObject(t){return t instanceof Object},isValidSelector(t){if(typeof t!="string")return!1;const e=t[0];return e==="#"||e==="."||e===e.toUpperCase()},_sign(t){return t===0||t>0?1:-1},requestAnimFrame(t){Mp.push(t),Mp.length===1&&mC(function(){const e=Mp;Mp=[],e.forEach(function(n){n()})})},createCanvasElement(){a2();const t=document.createElement("canvas");try{t.style=t.style||{}}catch{}return t},createImageElement(){return a2(),document.createElement("img")},_isInDocument(t){for(;t=t.parentNode;)if(t==document)return!0;return!1},_urlToImage(t,e){const n=pe.createImageElement();n.onload=function(){e(n)},n.src=t},_rgbToHex(t,e,n){return((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)},_hexToRgb(t){t=t.replace(af,dC);const e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:e&255}},getRandomColor(){let t=(Math.random()*16777215<<0).toString(16);for(;t.length<6;)t=fC+t;return af+t},isCanvasFarblingActive(){if(sf!==null)return sf;if(typeof document>"u")return sf=!1,!1;const t=this.createCanvasElement();t.width=10,t.height=10;const e=t.getContext("2d",{willReadFrequently:!0});e.clearRect(0,0,10,10),e.fillStyle="#282828",e.fillRect(0,0,10,10);const n=e.getImageData(0,0,10,10).data;let s=!1;for(let i=0;i<100;i++)if(n[i*4]!==40||n[i*4+1]!==40||n[i*4+2]!==40||n[i*4+3]!==255){s=!0;break}return sf=s,this.releaseCanvas(t),sf},getHitColor(){const t=this.getRandomColor();return this.isCanvasFarblingActive()?this.getSnappedHexColor(t):t},getHitColorKey(t,e,n){return this.isCanvasFarblingActive()&&(t=Math.round(t/5)*5,e=Math.round(e/5)*5,n=Math.round(n/5)*5),af+this._rgbToHex(t,e,n)},getSnappedHexColor(t){const e=this._hexToRgb(t);return af+this._rgbToHex(Math.round(e.r/5)*5,Math.round(e.g/5)*5,Math.round(e.b/5)*5)},getRGB(t){let e;return t in Jm?(e=Jm[t],{r:e[0],g:e[1],b:e[2]}):t[0]===af?this._hexToRgb(t.substring(1)):t.substr(0,4)===pC?(e=AC.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA(t){return t=t||"black",pe._namedColorToRBA(t)||pe._hex3ColorToRGBA(t)||pe._hex4ColorToRGBA(t)||pe._hex6ColorToRGBA(t)||pe._hex8ColorToRGBA(t)||pe._rgbColorToRGBA(t)||pe._rgbaColorToRGBA(t)||pe._hslColorToRGBA(t)},_namedColorToRBA(t){const e=Jm[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA(t){if(t.indexOf("rgb(")===0){t=t.match(/rgb\(([^)]+)\)/)[1];const e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA(t){if(t.indexOf("rgba(")===0){t=t.match(/rgba\(([^)]+)\)/)[1];const e=t.split(/ *, */).map((n,s)=>n.slice(-1)==="%"?s===3?parseInt(n)/100:parseInt(n)/100*255:Number(n));return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex8ColorToRGBA(t){if(t[0]==="#"&&t.length===9)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:parseInt(t.slice(7,9),16)/255}},_hex6ColorToRGBA(t){if(t[0]==="#"&&t.length===7)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex4ColorToRGBA(t){if(t[0]==="#"&&t.length===5)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:parseInt(t[4]+t[4],16)/255}},_hex3ColorToRGBA(t){if(t[0]==="#"&&t.length===4)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){const[e,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),s=Number(n[0])/360,i=Number(n[1])/100,c=Number(n[2])/100;let d,h,p;if(i===0)return p=c*255,{r:Math.round(p),g:Math.round(p),b:Math.round(p),a:1};c<.5?d=c*(1+i):d=c+i-c*i;const u=2*c-d,A=[0,0,0];for(let y=0;y<3;y++)h=s+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?p=u+(d-u)*6*h:2*h<1?p=d:3*h<2?p=u+(d-u)*(2/3-h)*6:p=u,A[y]=p*255;return{r:Math.round(A[0]),g:Math.round(A[1]),b:Math.round(A[2]),a:1}}},haveIntersection(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject(t){const e={};for(const n in t)this._isPlainObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray(t){return t.slice(0)},degToRad(t){return t*cC},radToDeg(t){return t*uC},_degToRad(t){return pe.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),pe.degToRad(t)},_radToDeg(t){return pe.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),pe.radToDeg(t)},_getRotation(t){return Qe.angleDeg?pe.radToDeg(t):t},_capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw(t){throw new Error(i2+t)},error(t){console.error(i2+t)},warn(t){Qe.showWarnings&&console.warn(hC+t)},each(t,e){for(const n in t)e(n,t[n])},_inRange(t,e,n){return e<=t&&t<n},_getProjectionToSegment(t,e,n,s,i,c){let d,h,p;const u=(t-n)*(t-n)+(e-s)*(e-s);if(u==0)d=t,h=e,p=(i-n)*(i-n)+(c-s)*(c-s);else{const A=((i-t)*(n-t)+(c-e)*(s-e))/u;A<0?(d=t,h=e,p=(t-i)*(t-i)+(e-c)*(e-c)):A>1?(d=n,h=s,p=(n-i)*(n-i)+(s-c)*(s-c)):(d=t+A*(n-t),h=e+A*(s-e),p=(d-i)*(d-i)+(h-c)*(h-c))}return[d,h,p]},_getProjectionToLine(t,e,n){const s=pe.cloneObject(t);let i=Number.MAX_VALUE;return e.forEach(function(c,d){if(!n&&d===e.length-1)return;const h=e[(d+1)%e.length],p=pe._getProjectionToSegment(c.x,c.y,h.x,h.y,t.x,t.y),u=p[0],A=p[1],y=p[2];y<i&&(s.x=u,s.y=A,i=y)}),s},_prepareArrayForTween(t,e,n){const s=[],i=[];if(t.length>e.length){const d=e;e=t,t=d}for(let d=0;d<t.length;d+=2)s.push({x:t[d],y:t[d+1]});for(let d=0;d<e.length;d+=2)i.push({x:e[d],y:e[d+1]});const c=[];return i.forEach(function(d){const h=pe._getProjectionToLine(d,s,n);c.push(h.x),c.push(h.y)}),c},_prepareToStringify(t){let e;t.visitedByCircularReferenceRemoval=!0;for(const n in t)if(t.hasOwnProperty(n)&&t[n]&&typeof t[n]=="object"){if(e=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||pe._isElement(t[n]))if(e.configurable)delete t[n];else return null;else if(pe._prepareToStringify(t[n])===null)if(e.configurable)delete t[n];else return null}return delete t.visitedByCircularReferenceRemoval,t},_assign(t,e){for(const n in e)t[n]=e[n];return t},_getFirstPointerId(t){return t.touches?t.changedTouches[0].identifier:t.pointerId||999},releaseCanvas(...t){Qe.releaseCanvasOnDestroy&&t.forEach(e=>{e.width=0,e.height=0})},drawRoundedRectPath(t,e,n,s){let i=e<0?e:0,c=n<0?n:0;e=Math.abs(e),n=Math.abs(n);let d=0,h=0,p=0,u=0;typeof s=="number"?d=h=p=u=Math.min(s,e/2,n/2):(d=Math.min(s[0]||0,e/2,n/2),h=Math.min(s[1]||0,e/2,n/2),u=Math.min(s[2]||0,e/2,n/2),p=Math.min(s[3]||0,e/2,n/2)),t.moveTo(i+d,c),t.lineTo(i+e-h,c),t.arc(i+e-h,c+h,h,Math.PI*3/2,0,!1),t.lineTo(i+e,c+n-u),t.arc(i+e-u,c+n-u,u,0,Math.PI/2,!1),t.lineTo(i+p,c+n),t.arc(i+p,c+n-p,p,Math.PI/2,Math.PI,!1),t.lineTo(i,c+d),t.arc(i+d,c+d,d,Math.PI,Math.PI*3/2,!1)},drawRoundedPolygonPath(t,e,n,s,i){s=Math.abs(s);for(let c=0;c<n;c++){const d=e[(c-1+n)%n],h=e[c],p=e[(c+1)%n],u={x:h.x-d.x,y:h.y-d.y},A={x:p.x-h.x,y:p.y-h.y},y=Math.hypot(u.x,u.y),x=Math.hypot(A.x,A.y);let S;typeof i=="number"?S=i:S=c<i.length?i[c]:0,S=s*Math.cos(Math.PI/n)*Math.min(1,S/s*2);const R={x:u.x/y,y:u.y/y},T={x:A.x/x,y:A.y/x},D={x:h.x-R.x*S,y:h.y-R.y*S},P={x:h.x+T.x*S,y:h.y+T.y*S};c===0?t.moveTo(D.x,D.y):t.lineTo(D.x,D.y),t.arcTo(h.x,h.y,P.x,P.y,S)}}};function gC(t){const e=[],n=t.length,s=pe;for(let i=0;i<n;i++){let c=t[i];s._isNumber(c)?c=Math.round(c*1e3)/1e3:s._isString(c)||(c=c+""),e.push(c)}return e}const s2=",",vC="(",yC=")",xC="([",bC="])",SC=";",CC="()",wC="=",o2=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],_C=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled","filter"],EC=100;let zp=null;function l2(){if(zp!==null)return zp;try{const e=pe.createCanvasElement().getContext("2d");return e?!!e&&"filter"in e:(zp=!1,!1)}catch{return zp=!1,!1}}class dA{constructor(e){this.canvas=e,Qe.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,n){let s=this.traceArr,i=s.length,c="",d,h,p,u;for(d=0;d<i;d++)h=s[d],p=h.method,p?(u=h.args,c+=p,e?c+=CC:pe._isArray(u[0])?c+=xC+u.join(s2)+bC:(n&&(u=u.map(A=>typeof A=="number"?Math.floor(A):A)),c+=vC+u.join(s2)+yC)):(c+=h.property,e||(c+=wC+h.val)),c+=SC;return c}clearTrace(){this.traceArr=[]}_trace(e){let n=this.traceArr,s;n.push(e),s=n.length,s>=EC&&n.shift()}reset(){const e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){const n=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,n.getWidth()/n.pixelRatio,n.getHeight()/n.pixelRatio)}_applyLineCap(e){const n=e.attrs.lineCap;n&&this.setAttr("lineCap",n)}_applyOpacity(e){const n=e.getAbsoluteOpacity();n!==1&&this.setAttr("globalAlpha",n)}_applyLineJoin(e){const n=e.attrs.lineJoin;n&&this.setAttr("lineJoin",n)}_applyMiterLimit(e){const n=e.attrs.miterLimit;n!=null&&this.setAttr("miterLimit",n)}setAttr(e,n){this._context[e]=n}arc(e,n,s,i,c,d){this._context.arc(e,n,s,i,c,d)}arcTo(e,n,s,i,c){this._context.arcTo(e,n,s,i,c)}beginPath(){this._context.beginPath()}bezierCurveTo(e,n,s,i,c,d){this._context.bezierCurveTo(e,n,s,i,c,d)}clearRect(e,n,s,i){this._context.clearRect(e,n,s,i)}clip(...e){this._context.clip.apply(this._context,e)}closePath(){this._context.closePath()}createImageData(e,n){const s=arguments;if(s.length===2)return this._context.createImageData(e,n);if(s.length===1)return this._context.createImageData(e)}createLinearGradient(e,n,s,i){return this._context.createLinearGradient(e,n,s,i)}createPattern(e,n){return this._context.createPattern(e,n)}createRadialGradient(e,n,s,i,c,d){return this._context.createRadialGradient(e,n,s,i,c,d)}drawImage(e,n,s,i,c,d,h,p,u){const A=arguments,y=this._context;A.length===3?y.drawImage(e,n,s):A.length===5?y.drawImage(e,n,s,i,c):A.length===9&&y.drawImage(e,n,s,i,c,d,h,p,u)}ellipse(e,n,s,i,c,d,h,p){this._context.ellipse(e,n,s,i,c,d,h,p)}isPointInPath(e,n,s,i){return s?this._context.isPointInPath(s,e,n,i):this._context.isPointInPath(e,n,i)}fill(...e){this._context.fill.apply(this._context,e)}fillRect(e,n,s,i){this._context.fillRect(e,n,s,i)}strokeRect(e,n,s,i){this._context.strokeRect(e,n,s,i)}fillText(e,n,s,i){i?this._context.fillText(e,n,s,i):this._context.fillText(e,n,s)}measureText(e){return this._context.measureText(e)}getImageData(e,n,s,i){return this._context.getImageData(e,n,s,i)}lineTo(e,n){this._context.lineTo(e,n)}moveTo(e,n){this._context.moveTo(e,n)}rect(e,n,s,i){this._context.rect(e,n,s,i)}roundRect(e,n,s,i,c){this._context.roundRect(e,n,s,i,c)}putImageData(e,n,s){this._context.putImageData(e,n,s)}quadraticCurveTo(e,n,s,i){this._context.quadraticCurveTo(e,n,s,i)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,n){this._context.scale(e,n)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,n,s,i,c,d){this._context.setTransform(e,n,s,i,c,d)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,n,s,i){this._context.strokeText(e,n,s,i)}transform(e,n,s,i,c,d){this._context.transform(e,n,s,i,c,d)}translate(e,n){this._context.translate(e,n)}_enableTrace(){let e=this,n=o2.length,s=this.setAttr,i,c;const d=function(h){let p=e[h],u;e[h]=function(){return c=gC(Array.prototype.slice.call(arguments,0)),u=p.apply(e,arguments),e._trace({method:h,args:c}),u}};for(i=0;i<n;i++)d(o2[i]);e.setAttr=function(){s.apply(e,arguments);const h=arguments[0];let p=arguments[1];(h==="shadowOffsetX"||h==="shadowOffsetY"||h==="shadowBlur")&&(p=p/this.canvas.getPixelRatio()),e._trace({property:h,val:p})}}_applyGlobalCompositeOperation(e){const n=e.attrs.globalCompositeOperation;!n||n==="source-over"||this.setAttr("globalCompositeOperation",n)}}_C.forEach(function(t){Object.defineProperty(dA.prototype,t,{get(){return this._context[t]},set(e){this._context[t]=e}})});class RC extends dA{constructor(e,{willReadFrequently:n=!1}={}){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:n})}_fillColor(e){const n=e.fill();this.setAttr("fillStyle",n),e._fillFunc(this)}_fillPattern(e){this.setAttr("fillStyle",e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){const n=e._getLinearGradient();n&&(this.setAttr("fillStyle",n),e._fillFunc(this))}_fillRadialGradient(e){const n=e._getRadialGradient();n&&(this.setAttr("fillStyle",n),e._fillFunc(this))}_fill(e){const n=e.fill(),s=e.getFillPriority();if(n&&s==="color"){this._fillColor(e);return}const i=e.getFillPatternImage();if(i&&s==="pattern"){this._fillPattern(e);return}const c=e.getFillLinearGradientColorStops();if(c&&s==="linear-gradient"){this._fillLinearGradient(e);return}const d=e.getFillRadialGradientColorStops();if(d&&s==="radial-gradient"){this._fillRadialGradient(e);return}n?this._fillColor(e):i?this._fillPattern(e):c?this._fillLinearGradient(e):d&&this._fillRadialGradient(e)}_strokeLinearGradient(e){const n=e.getStrokeLinearGradientStartPoint(),s=e.getStrokeLinearGradientEndPoint(),i=e.getStrokeLinearGradientColorStops(),c=this.createLinearGradient(n.x,n.y,s.x,s.y);if(i){for(let d=0;d<i.length;d+=2)c.addColorStop(i[d],i[d+1]);this.setAttr("strokeStyle",c)}}_stroke(e){const n=e.dash(),s=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!s){this.save();const c=this.getCanvas().getPixelRatio();this.setTransform(c,0,0,c,0,0)}this._applyLineCap(e),n&&e.dashEnabled()&&(this.setLineDash(n),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),s||this.restore()}}_applyShadow(e){var n,s,i;const c=(n=e.getShadowRGBA())!==null&&n!==void 0?n:"black",d=(s=e.getShadowBlur())!==null&&s!==void 0?s:5,h=(i=e.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},p=e.getAbsoluteScale(),u=this.canvas.getPixelRatio(),A=p.x*u,y=p.y*u;this.setAttr("shadowColor",c),this.setAttr("shadowBlur",d*Math.min(Math.abs(A),Math.abs(y))),this.setAttr("shadowOffsetX",h.x*A),this.setAttr("shadowOffsetY",h.y*y)}}class TC extends dA{constructor(e){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:!0})}_fill(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){const n=e.getStrokeScaleEnabled();if(!n){this.save();const c=this.getCanvas().getPixelRatio();this.setTransform(c,0,0,c,0,0)}this._applyLineCap(e);const s=e.hitStrokeWidth(),i=s==="auto"?e.strokeWidth():s;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),n||this.restore()}}}let Fp;function DC(){if(Fp)return Fp;const t=pe.createCanvasElement(),e=t.getContext("2d");return Fp=(function(){const n=Qe._global.devicePixelRatio||1,s=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/s})(),pe.releaseCanvas(t),Fp}class Xg{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const s=(e||{}).pixelRatio||Qe.pixelRatio||DC();this.pixelRatio=s,this._canvas=pe.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){const n=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/n,this.getHeight()/n)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";const n=this.pixelRatio;this.getContext()._context.scale(n,n)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";const n=this.pixelRatio;this.getContext()._context.scale(n,n)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,n){this.setWidth(e||0),this.setHeight(n||0)}toDataURL(e,n){try{return this._canvas.toDataURL(e,n)}catch{try{return this._canvas.toDataURL()}catch(i){return pe.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}class Oo extends Xg{constructor(e={width:0,height:0,willReadFrequently:!1}){super(e),this.context=new RC(this,{willReadFrequently:e.willReadFrequently}),this.setSize(e.width,e.height)}}class Qg extends Xg{constructor(e={width:0,height:0}){super(e),this.hitCanvas=!0,this.context=new TC(this),this.setSize(e.width,e.height)}}const on={get isDragging(){let t=!1;return on._dragElements.forEach(e=>{e.dragStatus==="dragging"&&(t=!0)}),t},justDragged:!1,get node(){let t;return on._dragElements.forEach(e=>{t=e.node}),t},_dragElements:new Map,_drag(t){const e=[];on._dragElements.forEach((n,s)=>{const{node:i}=n,c=i.getStage();c.setPointersPositions(t),n.pointerId===void 0&&(n.pointerId=pe._getFirstPointerId(t));const d=c._changedPointerPositions.find(h=>h.id===n.pointerId);if(d){if(n.dragStatus!=="dragging"){const h=i.dragDistance();if(Math.max(Math.abs(d.x-n.startPointerPos.x),Math.abs(d.y-n.startPointerPos.y))<h||(i.startDrag({evt:t}),!i.isDragging()))return}i._setDragPosition(t,n),e.push(i)}}),e.forEach(n=>{n.fire("dragmove",{type:"dragmove",target:n,evt:t},!0)})},_endDragBefore(t){const e=[];on._dragElements.forEach(n=>{const{node:s}=n,i=s.getStage();if(t&&i.setPointersPositions(t),!i._changedPointerPositions.find(h=>h.id===n.pointerId))return;(n.dragStatus==="dragging"||n.dragStatus==="stopped")&&(on.justDragged=!0,Qe._mouseListenClick=!1,Qe._touchListenClick=!1,Qe._pointerListenClick=!1,n.dragStatus="stopped");const d=n.node.getLayer()||n.node instanceof Qe.Stage&&n.node;d&&e.indexOf(d)===-1&&e.push(d)}),e.forEach(n=>{n.draw()})},_endDragAfter(t){on._dragElements.forEach((e,n)=>{e.dragStatus==="stopped"&&e.node.fire("dragend",{type:"dragend",target:e.node,evt:t},!0),e.dragStatus!=="dragging"&&on._dragElements.delete(n)})}};Qe.isBrowser&&(window.addEventListener("mouseup",on._endDragBefore,!0),window.addEventListener("touchend",on._endDragBefore,!0),window.addEventListener("touchcancel",on._endDragBefore,!0),window.addEventListener("mousemove",on._drag),window.addEventListener("touchmove",on._drag),window.addEventListener("mouseup",on._endDragAfter,!1),window.addEventListener("touchend",on._endDragAfter,!1),window.addEventListener("touchcancel",on._endDragAfter,!1));function Go(t){return pe._isString(t)?'"'+t+'"':Object.prototype.toString.call(t)==="[object Number]"||pe._isBoolean(t)?t:Object.prototype.toString.call(t)}function Sx(t){return t>255?255:t<0?0:Math.round(t)}function We(){if(Qe.isUnminified)return function(t,e){return pe._isNumber(t)||pe.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function fA(t){if(Qe.isUnminified)return function(e,n){let s=pe._isNumber(e),i=pe._isArray(e)&&e.length==t;return!s&&!i&&pe.warn(Go(e)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+t+")"),e}}function Yg(){if(Qe.isUnminified)return function(t,e){return pe._isNumber(t)||t==="auto"||pe.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function zl(){if(Qe.isUnminified)return function(t,e){return pe._isString(t)||pe.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function Cx(){if(Qe.isUnminified)return function(t,e){const n=pe._isString(t),s=Object.prototype.toString.call(t)==="[object CanvasGradient]"||t&&t.addColorStop;return n||s||pe.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}function LC(){if(Qe.isUnminified)return function(t,e){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&t instanceof n||(pe._isArray(t)?t.forEach(function(s){pe._isNumber(s)||pe.warn('"'+e+'" attribute has non numeric element '+s+". Make sure that all elements are numbers.")}):pe.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}function zi(){if(Qe.isUnminified)return function(t,e){return t===!0||t===!1||pe.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}function kC(t){if(Qe.isUnminified)return function(e,n){return e==null||pe.isObject(e)||pe.warn(Go(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}const of="get",lf="set",ee={addGetterSetter(t,e,n,s,i){ee.addGetter(t,e,n),ee.addSetter(t,e,s,i),ee.addOverloadedGetterSetter(t,e)},addGetter(t,e,n){const s=of+pe._capitalize(e);t.prototype[s]=t.prototype[s]||function(){const i=this.attrs[e];return i===void 0?n:i}},addSetter(t,e,n,s){const i=lf+pe._capitalize(e);t.prototype[i]||ee.overWriteSetter(t,e,n,s)},overWriteSetter(t,e,n,s){const i=lf+pe._capitalize(e);t.prototype[i]=function(c){return n&&c!==void 0&&c!==null&&(c=n.call(this,c,e)),this._setAttr(e,c),s&&s.call(this),this}},addComponentsGetterSetter(t,e,n,s,i){const c=n.length,d=pe._capitalize,h=of+d(e),p=lf+d(e);t.prototype[h]=function(){const A={};for(let y=0;y<c;y++){const x=n[y];A[x]=this.getAttr(e+d(x))}return A};const u=kC(n);t.prototype[p]=function(A){const y=this.attrs[e];s&&(A=s.call(this,A,e)),u&&u.call(this,A,e);for(const x in A)A.hasOwnProperty(x)&&this._setAttr(e+d(x),A[x]);return A||n.forEach(x=>{this._setAttr(e+d(x),void 0)}),this._fireChangeEvent(e,y,A),i&&i.call(this),this},ee.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter(t,e){const n=pe._capitalize(e),s=lf+n,i=of+n;t.prototype[e]=function(){return arguments.length?(this[s](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter(t,e,n,s){pe.error("Adding deprecated "+e);const i=of+pe._capitalize(e),c=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[i]=function(){pe.error(c);const d=this.attrs[e];return d===void 0?n:d},ee.addSetter(t,e,s,function(){pe.error(c)}),ee.addOverloadedGetterSetter(t,e)},backCompat(t,e){pe.each(e,function(n,s){const i=t.prototype[s],c=of+pe._capitalize(n),d=lf+pe._capitalize(n);function h(){i.apply(this,arguments),pe.error('"'+n+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}t.prototype[n]=h,t.prototype[c]=h,t.prototype[d]=h})},afterSetFilter(){this._filterUpToDate=!1}};function NC(t){const e=/(\w+)\(([^)]+)\)/g;let n;for(;(n=e.exec(t))!==null;){const[,s,i]=n;switch(s){case"blur":{const c=parseFloat(i.replace("px",""));return function(d){this.blurRadius(c*.5);const h=Qe.Filters;h&&h.Blur&&h.Blur.call(this,d)}}case"brightness":{const c=i.includes("%")?parseFloat(i)/100:parseFloat(i);return function(d){this.brightness(c);const h=Qe.Filters;h&&h.Brightness&&h.Brightness.call(this,d)}}case"contrast":{const c=parseFloat(i);return function(d){const h=100*(Math.sqrt(c)-1);this.contrast(h);const p=Qe.Filters;p&&p.Contrast&&p.Contrast.call(this,d)}}case"grayscale":return function(c){const d=Qe.Filters;d&&d.Grayscale&&d.Grayscale.call(this,c)};case"sepia":return function(c){const d=Qe.Filters;d&&d.Sepia&&d.Sepia.call(this,c)};case"invert":return function(c){const d=Qe.Filters;d&&d.Invert&&d.Invert.call(this,c)};default:pe.warn(`CSS filter "${s}" is not supported in fallback mode. Consider using function filters for better compatibility.`);break}}return()=>{}}const $p="absoluteOpacity",c2="allEventListeners",Vs="absoluteTransform",u2="absoluteScale",kl="canvas",BC="Change",PC="children",MC="konva",_g="listening",zC="mouseenter",FC="mouseleave",IC="pointerenter",OC="pointerleave",UC="touchenter",jC="touchleave",d2="set",f2="Shape",eA=" ",h2="stage",zo="transform",GC="Stage",Eg="visible",HC=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(eA);let WC=1;class Ge{constructor(e){this._id=WC++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){(e===zo||e===Vs)&&this._cache.get(e)?this._cache.get(e).dirty=!0:e?this._cache.delete(e):this._cache.clear()}_getCache(e,n){let s=this._cache.get(e);return(s===void 0||(e===zo||e===Vs)&&s.dirty===!0)&&(s=n.call(this),this._cache.set(e,s)),s}_calculate(e,n,s){if(!this._attachedDepsListeners.get(e)){const i=n.map(c=>c+"Change.konva").join(eA);this.on(i,()=>{this._clearCache(e)}),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,s)}_getCanvasCache(){return this._cache.get(kl)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===Vs&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(kl)){const{scene:e,filter:n,hit:s}=this._cache.get(kl);pe.releaseCanvas(e._canvas,n._canvas,s._canvas),this._cache.delete(kl)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){const n=e||{};let s={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(s=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let i=Math.ceil(n.width||s.width),c=Math.ceil(n.height||s.height),d=n.pixelRatio,h=n.x===void 0?Math.floor(s.x):n.x,p=n.y===void 0?Math.floor(s.y):n.y,u=n.offset||0,A=n.drawBorder||!1,y=n.hitCanvasPixelRatio||1;if(!i||!c){pe.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const x=Math.abs(Math.round(s.x)-h)>.5?1:0,S=Math.abs(Math.round(s.y)-p)>.5?1:0;i+=u*2+x,c+=u*2+S,h-=u,p-=u;const C=new Oo({pixelRatio:d,width:i,height:c}),R=new Oo({pixelRatio:d,width:0,height:0,willReadFrequently:!0}),T=new Qg({pixelRatio:y,width:i,height:c}),D=C.getContext(),P=T.getContext(),M=new Oo({width:C.width/C.pixelRatio+Math.abs(h),height:C.height/C.pixelRatio+Math.abs(p),pixelRatio:C.pixelRatio}),O=M.getContext();return T.isCache=!0,C.isCache=!0,this._cache.delete(kl),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(C.getContext()._context.imageSmoothingEnabled=!1,R.getContext()._context.imageSmoothingEnabled=!1),D.save(),P.save(),O.save(),D.translate(-h,-p),P.translate(-h,-p),O.translate(-h,-p),M.x=h,M.y=p,this._isUnderCache=!0,this._clearSelfAndDescendantCache($p),this._clearSelfAndDescendantCache(u2),this.drawScene(C,this,M),this.drawHit(T,this),this._isUnderCache=!1,D.restore(),P.restore(),A&&(D.save(),D.beginPath(),D.rect(0,0,i,c),D.closePath(),D.setAttr("strokeStyle","red"),D.setAttr("lineWidth",5),D.stroke(),D.restore()),pe.releaseCanvas(M._canvas),this._cache.set(kl,{scene:C,filter:R,hit:T,x:h,y:p}),this._requestDraw(),this}isCached(){return this._cache.has(kl)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,n){const s=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}];let i=1/0,c=1/0,d=-1/0,h=-1/0;const p=this.getAbsoluteTransform(n);return s.forEach(function(u){const A=p.point(u);i===void 0&&(i=d=A.x,c=h=A.y),i=Math.min(i,A.x),c=Math.min(c,A.y),d=Math.max(d,A.x),h=Math.max(h,A.y)}),{x:i,y:c,width:d-i,height:h-c}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();e.translate(n.x,n.y);const s=this._getCachedSceneCanvas(),i=s.pixelRatio;e.drawImage(s._canvas,0,0,s.width/i,s.height/i),e.restore()}_drawCachedHitCanvas(e){const n=this._getCanvasCache(),s=n.hit;e.save(),e.translate(n.x,n.y),e.drawImage(s._canvas,0,0,s.width/s.pixelRatio,s.height/s.pixelRatio),e.restore()}_getCachedSceneCanvas(){let e=this.filters(),n=this._getCanvasCache(),s=n.scene,i=n.filter,c=i.getContext(),d,h,p,u;if(!e||e.length===0)return s;if(this._filterUpToDate)return i;let A=!0;for(let x=0;x<e.length;x++)if(typeof e[x]=="string"&&l2(),typeof e[x]!="string"||!l2()){A=!1;break}const y=s.pixelRatio;if(i.setSize(s.width/s.pixelRatio,s.height/s.pixelRatio),A){const x=e.join(" ");return c.save(),c.setAttr("filter",x),c.drawImage(s._canvas,0,0,s.getWidth()/y,s.getHeight()/y),c.restore(),this._filterUpToDate=!0,i}try{for(d=e.length,c.clear(),c.drawImage(s._canvas,0,0,s.getWidth()/y,s.getHeight()/y),h=c.getImageData(0,0,i.getWidth(),i.getHeight()),p=0;p<d;p++)u=e[p],typeof u=="string"&&(u=NC(u)),u.call(this,h),c.putImageData(h,0,0)}catch(x){pe.error("Unable to apply filter. "+x.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}return this._filterUpToDate=!0,i}on(e,n){if(this._cache&&this._cache.delete(c2),arguments.length===3)return this._delegate.apply(this,arguments);const s=e.split(eA);for(let i=0;i<s.length;i++){const d=s[i].split("."),h=d[0],p=d[1]||"";this.eventListeners[h]||(this.eventListeners[h]=[]),this.eventListeners[h].push({name:p,handler:n})}return this}off(e,n){let s=(e||"").split(eA),i=s.length,c,d,h,p,u,A;if(this._cache&&this._cache.delete(c2),!e)for(d in this.eventListeners)this._off(d);for(c=0;c<i;c++)if(h=s[c],p=h.split("."),u=p[0],A=p[1],u)this.eventListeners[u]&&this._off(u,A,n);else for(d in this.eventListeners)this._off(d,A,n);return this}dispatchEvent(e){const n={target:this,type:e.type,evt:e};return this.fire(e.type,n),this}addEventListener(e,n){return this.on(e,function(s){n.call(this,s.evt)}),this}removeEventListener(e){return this.off(e),this}_delegate(e,n,s){const i=this;this.on(e,function(c){const d=c.target.findAncestors(n,!0,i);for(let h=0;h<d.length;h++)c=pe.cloneObject(c),c.currentTarget=d[h],s.call(d[h],c)})}remove(){return this.isDragging()&&this.stopDrag(),on._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Vs),this._clearSelfAndDescendantCache($p),this._clearSelfAndDescendantCache(u2),this._clearSelfAndDescendantCache(h2),this._clearSelfAndDescendantCache(Eg),this._clearSelfAndDescendantCache(_g)}_remove(){this._clearCaches();const e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(e){const n="get"+pe._capitalize(e);return pe._isFunction(this[n])?this[n]():this.attrs[e]}getAncestors(){let e=this.getParent(),n=[];for(;e;)n.push(e),e=e.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges(()=>{let n,s;if(!e)return this;for(n in e)n!==PC&&(s=d2+pe._capitalize(n),pe._isFunction(this[s])?this[s](e[n]):this._setAttr(n,e[n]))}),this}isListening(){return this._getCache(_g,this._isListening)}_isListening(e){if(!this.listening())return!1;const s=this.getParent();return s&&s!==e&&this!==e?s._isListening(e):!0}isVisible(){return this._getCache(Eg,this._isVisible)}_isVisible(e){if(!this.visible())return!1;const s=this.getParent();return s&&s!==e&&this!==e?s._isVisible(e):!0}shouldDrawHit(e,n=!1){if(e)return this._isVisible(e)&&this._isListening(e);const s=this.getLayer();let i=!1;on._dragElements.forEach(d=>{d.dragStatus==="dragging"&&(d.node.nodeType==="Stage"||d.node.getLayer()===s)&&(i=!0)});const c=!n&&!Qe.hitOnDragEnabled&&(i||Qe.isTransforming());return this.isListening()&&this.isVisible()&&!c}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let e=this.getDepth(),n=this,s=0,i,c,d,h;function p(A){for(i=[],c=A.length,d=0;d<c;d++)h=A[d],s++,h.nodeType!==f2&&(i=i.concat(h.getChildren().slice())),h._id===n._id&&(d=c);i.length>0&&i[0].getDepth()<=e&&p(i)}const u=this.getStage();return n.nodeType!==GC&&u&&p(u.getChildren()),s}getDepth(){let e=0,n=this.parent;for(;n;)e++,n=n.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(zo),this._clearSelfAndDescendantCache(Vs)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges(()=>{this.x(e.x),this.y(e.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const e=this.getStage();if(!e)return null;const n=e.getPointerPosition();if(!n)return null;const s=this.getAbsoluteTransform().copy();return s.invert(),s.point(n)}getAbsolutePosition(e){let n=!1,s=this.parent;for(;s;){if(s.isCached()){n=!0;break}s=s.parent}n&&!e&&(e=!0);const i=this.getAbsoluteTransform(e).getMatrix(),c=new Qa,d=this.offset();return c.m=i.slice(),c.translate(d.x,d.y),c.getTranslation()}setAbsolutePosition(e){const{x:n,y:s,...i}=this._clearTransform();this.attrs.x=n,this.attrs.y=s,this._clearCache(zo);const c=this._getAbsoluteTransform().copy();return c.invert(),c.translate(e.x,e.y),e={x:this.attrs.x+c.getTranslation().x,y:this.attrs.y+c.getTranslation().y},this._setTransform(i),this.setPosition({x:e.x,y:e.y}),this._clearCache(zo),this._clearSelfAndDescendantCache(Vs),this}_setTransform(e){let n;for(n in e)this.attrs[n]=e[n]}_clearTransform(){const e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){let n=e.x,s=e.y,i=this.x(),c=this.y();return n!==void 0&&(i+=n),s!==void 0&&(c+=s),this.setPosition({x:i,y:c}),this}_eachAncestorReverse(e,n){let s=[],i=this.getParent(),c,d;if(!(n&&n._id===this._id)){for(s.unshift(this);i&&(!n||i._id!==n._id);)s.unshift(i),i=i.parent;for(c=s.length,d=0;d<c;d++)e(s[d])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return pe.warn("Node has no parent. moveToTop function is ignored."),!1;const e=this.index,n=this.parent.getChildren().length;return e<n-1?(this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return pe.warn("Node has no parent. moveUp function is ignored."),!1;const e=this.index,n=this.parent.getChildren().length;return e<n-1?(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return pe.warn("Node has no parent. moveDown function is ignored."),!1;const e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return pe.warn("Node has no parent. moveToBottom function is ignored."),!1;const e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(e){if(!this.parent)return pe.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&pe.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache($p,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let e=this.opacity();const n=this.getParent();return n&&!n._isUnderCache&&(e*=n.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){let e=this.getAttrs(),n,s,i,c,d;const h={attrs:{},className:this.getClassName()};for(n in e)s=e[n],d=pe.isObject(s)&&!pe._isPlainObject(s)&&!pe._isArray(s),!d&&(i=typeof this[n]=="function"&&this[n],delete e[n],c=i?i.call(this):null,e[n]=s,c!==s&&(h.attrs[n]=s));return pe._prepareToStringify(h)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,n,s){const i=[];n&&this._isMatch(e)&&i.push(this);let c=this.parent;for(;c;){if(c===s)return i;c._isMatch(e)&&i.push(c),c=c.parent}return i}isAncestorOf(e){return!1}findAncestor(e,n,s){return this.findAncestors(e,n,s)[0]}_isMatch(e){if(!e)return!1;if(typeof e=="function")return e(this);let n=e.replace(/ /g,"").split(","),s=n.length,i,c;for(i=0;i<s;i++)if(c=n[i],pe.isValidSelector(c)||(pe.warn('Selector "'+c+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),pe.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),pe.warn("Konva is awesome, right?")),c.charAt(0)==="#"){if(this.id()===c.slice(1))return!0}else if(c.charAt(0)==="."){if(this.hasName(c.slice(1)))return!0}else if(this.className===c||this.nodeType===c)return!0;return!1}getLayer(){const e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(h2,this._getStage)}_getStage(){const e=this.getParent();return e?e.getStage():null}fire(e,n={},s){return n.target=n.target||this,s?this._fireAndBubble(e,n):this._fire(e,n),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(Vs,this._getAbsoluteTransform)}_getAbsoluteTransform(e){let n;if(e)return n=new Qa,this._eachAncestorReverse(function(s){const i=s.transformsEnabled();i==="all"?n.multiply(s.getTransform()):i==="position"&&n.translate(s.x()-s.offsetX(),s.y()-s.offsetY())},e),n;{n=this._cache.get(Vs)||new Qa,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();const s=this.transformsEnabled();if(s==="all")n.multiply(this.getTransform());else if(s==="position"){const i=this.attrs.x||0,c=this.attrs.y||0,d=this.attrs.offsetX||0,h=this.attrs.offsetY||0;n.translate(i-d,c-h)}return n.dirty=!1,n}}getAbsoluteScale(e){let n=this;for(;n;)n._isUnderCache&&(e=n),n=n.getParent();const i=this.getAbsoluteTransform(e).decompose();return{x:i.scaleX,y:i.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(zo,this._getTransform)}_getTransform(){var e,n;const s=this._cache.get(zo)||new Qa;s.reset();const i=this.x(),c=this.y(),d=Qe.getAngle(this.rotation()),h=(e=this.attrs.scaleX)!==null&&e!==void 0?e:1,p=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,u=this.attrs.skewX||0,A=this.attrs.skewY||0,y=this.attrs.offsetX||0,x=this.attrs.offsetY||0;return(i!==0||c!==0)&&s.translate(i,c),d!==0&&s.rotate(d),(u!==0||A!==0)&&s.skew(u,A),(h!==1||p!==1)&&s.scale(h,p),(y!==0||x!==0)&&s.translate(-1*y,-1*x),s.dirty=!1,s}clone(e){let n=pe.cloneObject(this.attrs),s,i,c,d,h;for(s in e)n[s]=e[s];const p=new this.constructor(n);for(s in this.eventListeners)for(i=this.eventListeners[s],c=i.length,d=0;d<c;d++)h=i[d],h.name.indexOf(MC)<0&&(p.eventListeners[s]||(p.eventListeners[s]=[]),p.eventListeners[s].push(h));return p}_toKonvaCanvas(e){e=e||{};const n=this.getClientRect(),s=this.getStage(),i=e.x!==void 0?e.x:Math.floor(n.x),c=e.y!==void 0?e.y:Math.floor(n.y),d=e.pixelRatio||1,h=new Oo({width:e.width||Math.ceil(n.width)||(s?s.width():0),height:e.height||Math.ceil(n.height)||(s?s.height():0),pixelRatio:d}),p=h.getContext(),u=new Oo({width:h.width/h.pixelRatio+Math.abs(i),height:h.height/h.pixelRatio+Math.abs(c),pixelRatio:h.pixelRatio});return e.imageSmoothingEnabled===!1&&(p._context.imageSmoothingEnabled=!1),p.save(),(i||c)&&p.translate(-1*i,-1*c),this.drawScene(h,void 0,u),p.restore(),h}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){e=e||{};const n=e.mimeType||null,s=e.quality||null,i=this._toKonvaCanvas(e).toDataURL(n,s);return e.callback&&e.callback(i),i}toImage(e){return new Promise((n,s)=>{try{const i=e==null?void 0:e.callback;i&&delete e.callback,pe._urlToImage(this.toDataURL(e),function(c){n(c),i==null||i(c)})}catch(i){s(i)}})}toBlob(e){return new Promise((n,s)=>{try{const i=e==null?void 0:e.callback;i&&delete e.callback,this.toCanvas(e).toBlob(c=>{n(c),i==null||i(c)},e==null?void 0:e.mimeType,e==null?void 0:e.quality)}catch(i){s(i)}})}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Qe.dragDistance}_off(e,n,s){let i=this.eventListeners[e],c,d,h;for(c=0;c<i.length;c++)if(d=i[c].name,h=i[c].handler,(d!=="konva"||n==="konva")&&(!n||d===n)&&(!s||s===h)){if(i.splice(c,1),i.length===0){delete this.eventListeners[e];break}c--}}_fireChangeEvent(e,n,s){this._fire(e+BC,{oldVal:n,newVal:s})}addName(e){if(!this.hasName(e)){const n=this.name(),s=n?n+" "+e:e;this.name(s)}return this}hasName(e){if(!e)return!1;const n=this.name();return n?(n||"").split(/\s/g).indexOf(e)!==-1:!1}removeName(e){const n=(this.name()||"").split(/\s/g),s=n.indexOf(e);return s!==-1&&(n.splice(s,1),this.name(n.join(" "))),this}setAttr(e,n){const s=this[d2+pe._capitalize(e)];return pe._isFunction(s)?s.call(this,n):this._setAttr(e,n),this}_requestDraw(){if(Qe.autoDrawEnabled){const e=this.getLayer()||this.getStage();e==null||e.batchDraw()}}_setAttr(e,n){const s=this.attrs[e];s===n&&!pe.isObject(n)||(n==null?delete this.attrs[e]:this.attrs[e]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(e,s,n),this._requestDraw())}_setComponentAttr(e,n,s){let i;s!==void 0&&(i=this.attrs[e],i||(this.attrs[e]=this.getAttr(e)),this.attrs[e][n]=s,this._fireChangeEvent(e,i,s))}_fireAndBubble(e,n,s){n&&this.nodeType===f2&&(n.target=this);const i=[zC,FC,IC,OC,UC,jC];if(!(i.indexOf(e)!==-1&&(s&&(this===s||this.isAncestorOf&&this.isAncestorOf(s))||this.nodeType==="Stage"&&!s))){this._fire(e,n);const d=i.indexOf(e)!==-1&&s&&s.isAncestorOf&&s.isAncestorOf(this)&&!s.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!d&&(s&&s.parent?this._fireAndBubble.call(this.parent,e,n,s):this._fireAndBubble.call(this.parent,e,n))}}_getProtoListeners(e){var n,s;const{nodeType:i}=this,c=Ge.protoListenerMap.get(i)||{};let d=c==null?void 0:c[e];if(d===void 0){d=[];let h=Object.getPrototypeOf(this);for(;h;){const p=(s=(n=h.eventListeners)===null||n===void 0?void 0:n[e])!==null&&s!==void 0?s:[];d.push(...p),h=Object.getPrototypeOf(h)}c[e]=d,Ge.protoListenerMap.set(i,c)}return d}_fire(e,n){n=n||{},n.currentTarget=this,n.type=e;const s=this._getProtoListeners(e);if(s)for(let c=0;c<s.length;c++)s[c].handler.call(this,n);const i=this.eventListeners[e];if(i)for(let c=0;c<i.length;c++)i[c].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){const n=e?e.pointerId:void 0,s=this.getStage(),i=this.getAbsolutePosition();if(!s)return;const c=s._getPointerById(n)||s._changedPointerPositions[0]||i;on._dragElements.set(this._id,{node:this,startPointerPos:c,offset:{x:c.x-i.x,y:c.y-i.y},dragStatus:"ready",pointerId:n})}startDrag(e,n=!0){on._dragElements.has(this._id)||this._createDragElement(e);const s=on._dragElements.get(this._id);s.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:e&&e.evt},n)}_setDragPosition(e,n){const s=this.getStage()._getPointerById(n.pointerId);if(!s)return;let i={x:s.x-n.offset.x,y:s.y-n.offset.y};const c=this.dragBoundFunc();if(c!==void 0){const d=c.call(this,i,e);d?i=d:pe.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}stopDrag(e){const n=on._dragElements.get(this._id);n&&(n.dragStatus="stopped"),on._endDragBefore(e),on._endDragAfter(e)}setDraggable(e){this._setAttr("draggable",e),this._dragChange()}isDragging(){const e=on._dragElements.get(this._id);return e?e.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(e){if(!(!(e.evt.button!==void 0)||Qe.dragButtons.indexOf(e.evt.button)>=0)||this.isDragging())return;let i=!1;on._dragElements.forEach(c=>{this.isAncestorOf(c.node)&&(i=!0)}),i||this._createDragElement(e)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const n=on._dragElements.get(this._id),s=n&&n.dragStatus==="dragging",i=n&&n.dragStatus==="ready";s?this.stopDrag():i&&on._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(e={x:0,y:0}){const n=this.getStage();if(!n)return!1;const s={x:-e.x,y:-e.y,width:n.width()+2*e.x,height:n.height()+2*e.y};return pe.haveIntersection(s,this.getClientRect())}static create(e,n){return pe._isString(e)&&(e=JSON.parse(e)),this._createNode(e,n)}static _createNode(e,n){let s=Ge.prototype.getClassName.call(e),i=e.children,c,d,h;n&&(e.attrs.container=n),Qe[s]||(pe.warn('Can not find a node with class name "'+s+'". Fallback to "Shape".'),s="Shape");const p=Qe[s];if(c=new p(e.attrs),i)for(d=i.length,h=0;h<d;h++)c.add(Ge._createNode(i[h]));return c}}Ge.protoListenerMap=new Map;Ge.prototype.nodeType="Node";Ge.prototype._attrsAffectingSize=[];Ge.prototype.eventListeners={};Ge.prototype.on.call(Ge.prototype,HC,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(zo),this._clearSelfAndDescendantCache(Vs)});Ge.prototype.on.call(Ge.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(Eg)});Ge.prototype.on.call(Ge.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(_g)});Ge.prototype.on.call(Ge.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache($p)});const xn=ee.addGetterSetter;xn(Ge,"zIndex");xn(Ge,"absolutePosition");xn(Ge,"position");xn(Ge,"x",0,We());xn(Ge,"y",0,We());xn(Ge,"globalCompositeOperation","source-over",zl());xn(Ge,"opacity",1,We());xn(Ge,"name","",zl());xn(Ge,"id","",zl());xn(Ge,"rotation",0,We());ee.addComponentsGetterSetter(Ge,"scale",["x","y"]);xn(Ge,"scaleX",1,We());xn(Ge,"scaleY",1,We());ee.addComponentsGetterSetter(Ge,"skew",["x","y"]);xn(Ge,"skewX",0,We());xn(Ge,"skewY",0,We());ee.addComponentsGetterSetter(Ge,"offset",["x","y"]);xn(Ge,"offsetX",0,We());xn(Ge,"offsetY",0,We());xn(Ge,"dragDistance",void 0,We());xn(Ge,"width",0,We());xn(Ge,"height",0,We());xn(Ge,"listening",!0,zi());xn(Ge,"preventDefault",!0,zi());xn(Ge,"filters",void 0,function(t){return this._filterUpToDate=!1,t});xn(Ge,"visible",!0,zi());xn(Ge,"transformsEnabled","all",zl());xn(Ge,"size");xn(Ge,"dragBoundFunc");xn(Ge,"draggable",!1,zi());ee.backCompat(Ge,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});class Ya extends Ge{constructor(){super(...arguments),this.children=[]}getChildren(e){const n=this.children||[];return e?n.filter(e):n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(e.length===0)return this;if(e.length>1){for(let s=0;s<e.length;s++)this.add(e[s]);return this}const n=e[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire("add",{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){const n=this._generalFind(e,!0);return n.length>0?n[0]:void 0}_generalFind(e,n){const s=[];return this._descendants(i=>{const c=i._isMatch(e);return c&&s.push(i),!!(c&&n)}),s}_descendants(e){let n=!1;const s=this.getChildren();for(const i of s){if(n=e(i),n)return!0;if(i.hasChildren()&&(n=i._descendants(e),n))return!0}return!1}toObject(){const e=Ge.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(n=>{e.children.push(n.toObject())}),e}isAncestorOf(e){let n=e.getParent();for(;n;){if(n._id===this._id)return!0;n=n.getParent()}return!1}clone(e){const n=Ge.prototype.clone.call(this,e);return this.getChildren().forEach(function(s){n.add(s.clone())}),n}getAllIntersections(e){const n=[];return this.find("Shape").forEach(s=>{s.isVisible()&&s.intersects(e)&&n.push(s)}),n}_clearSelfAndDescendantCache(e){var n;super._clearSelfAndDescendantCache(e),!this.isCached()&&((n=this.children)===null||n===void 0||n.forEach(function(s){s._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)===null||e===void 0||e.forEach(function(n,s){n.index=s}),this._requestDraw()}drawScene(e,n,s){const i=this.getLayer(),c=e||i&&i.getCanvas(),d=c&&c.getContext(),h=this._getCanvasCache(),p=h&&h.scene,u=c&&c.isCache;if(!this.isVisible()&&!u)return this;if(p){d.save();const A=this.getAbsoluteTransform(n).getMatrix();d.transform(A[0],A[1],A[2],A[3],A[4],A[5]),this._drawCachedSceneCanvas(d),d.restore()}else this._drawChildren("drawScene",c,n,s);return this}drawHit(e,n){if(!this.shouldDrawHit(n))return this;const s=this.getLayer(),i=e||s&&s.hitCanvas,c=i&&i.getContext(),d=this._getCanvasCache();if(d&&d.hit){c.save();const p=this.getAbsoluteTransform(n).getMatrix();c.transform(p[0],p[1],p[2],p[3],p[4],p[5]),this._drawCachedHitCanvas(c),c.restore()}else this._drawChildren("drawHit",i,n);return this}_drawChildren(e,n,s,i){var c;const d=n&&n.getContext(),h=this.clipWidth(),p=this.clipHeight(),u=this.clipFunc(),A=typeof h=="number"&&typeof p=="number"||u,y=s===this;if(A){d.save();const S=this.getAbsoluteTransform(s);let C=S.getMatrix();d.transform(C[0],C[1],C[2],C[3],C[4],C[5]),d.beginPath();let R;if(u)R=u.call(this,d,this);else{const T=this.clipX(),D=this.clipY();d.rect(T||0,D||0,h,p)}d.clip.apply(d,R),C=S.copy().invert().getMatrix(),d.transform(C[0],C[1],C[2],C[3],C[4],C[5])}const x=!y&&this.globalCompositeOperation()!=="source-over"&&e==="drawScene";x&&(d.save(),d._applyGlobalCompositeOperation(this)),(c=this.children)===null||c===void 0||c.forEach(function(S){S[e](n,s,i)}),x&&d.restore(),A&&d.restore()}getClientRect(e={}){var n;const s=e.skipTransform,i=e.relativeTo;let c,d,h,p,u={x:1/0,y:1/0,width:0,height:0};const A=this;(n=this.children)===null||n===void 0||n.forEach(function(S){if(!S.visible())return;const C=S.getClientRect({relativeTo:A,skipShadow:e.skipShadow,skipStroke:e.skipStroke});C.width===0&&C.height===0||(c===void 0?(c=C.x,d=C.y,h=C.x+C.width,p=C.y+C.height):(c=Math.min(c,C.x),d=Math.min(d,C.y),h=Math.max(h,C.x+C.width),p=Math.max(p,C.y+C.height)))});const y=this.find("Shape");let x=!1;for(let S=0;S<y.length;S++)if(y[S]._isVisible(this)){x=!0;break}return x&&c!==void 0?u={x:c,y:d,width:h-c,height:p-d}:u={x:0,y:0,width:0,height:0},s?u:this._transformedRect(u,i)}}ee.addComponentsGetterSetter(Ya,"clip",["x","y","width","height"]);ee.addGetterSetter(Ya,"clipX",void 0,We());ee.addGetterSetter(Ya,"clipY",void 0,We());ee.addGetterSetter(Ya,"clipWidth",void 0,We());ee.addGetterSetter(Ya,"clipHeight",void 0,We());ee.addGetterSetter(Ya,"clipFunc");const Df=new Map,wx=Qe._global.PointerEvent!==void 0;function Zm(t){return Df.get(t)}function Vg(t){return{evt:t,pointerId:t.pointerId}}function _x(t,e){return Df.get(t)===e}function Ex(t,e){bf(t),e.getStage()&&(Df.set(t,e),wx&&e._fire("gotpointercapture",Vg(new PointerEvent("gotpointercapture"))))}function bf(t,e){const n=Df.get(t);if(!n)return;const s=n.getStage();s&&s.content,Df.delete(t),wx&&n._fire("lostpointercapture",Vg(new PointerEvent("lostpointercapture")))}const XC="Stage",QC="string",p2="px",YC="mouseout",Rx="mouseleave",Tx="mouseover",Dx="mouseenter",Lx="mousemove",kx="mousedown",Nx="mouseup",hf="pointermove",pf="pointerdown",_u="pointerup",Af="pointercancel",VC="lostpointercapture",Ip="pointerout",mf="pointerleave",Op="pointerover",Up="pointerenter",Rg="contextmenu",Bx="touchstart",Px="touchend",Mx="touchmove",zx="touchcancel",Tg="wheel",qC=5,KC=[[Dx,"_pointerenter"],[kx,"_pointerdown"],[Lx,"_pointermove"],[Nx,"_pointerup"],[Rx,"_pointerleave"],[Bx,"_pointerdown"],[Mx,"_pointermove"],[Px,"_pointerup"],[zx,"_pointercancel"],[Tx,"_pointerover"],[Tg,"_wheel"],[Rg,"_contextmenu"],[pf,"_pointerdown"],[hf,"_pointermove"],[_u,"_pointerup"],[Af,"_pointercancel"],[mf,"_pointerleave"],[VC,"_lostpointercapture"]],$m={mouse:{[Ip]:YC,[mf]:Rx,[Op]:Tx,[Up]:Dx,[hf]:Lx,[pf]:kx,[_u]:Nx,[Af]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[Ip]:"touchout",[mf]:"touchleave",[Op]:"touchover",[Up]:"touchenter",[hf]:Mx,[pf]:Bx,[_u]:Px,[Af]:zx,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[Ip]:Ip,[mf]:mf,[Op]:Op,[Up]:Up,[hf]:hf,[pf]:pf,[_u]:_u,[Af]:Af,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},gf=t=>t.indexOf("pointer")>=0?"pointer":t.indexOf("touch")>=0?"touch":"mouse",mu=t=>{const e=gf(t);if(e==="pointer")return Qe.pointerEventsEnabled&&$m.pointer;if(e==="touch")return $m.touch;if(e==="mouse")return $m.mouse};function A2(t={}){return(t.clipFunc||t.clipWidth||t.clipHeight)&&pe.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}const JC="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",Sf=[];let hA=class extends Ya{constructor(e){super(A2(e)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),Sf.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{A2(this.attrs)}),this._checkVisibility()}_validateAdd(e){const n=e.getType()==="Layer",s=e.getType()==="FastLayer";n||s||pe.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const e=this.visible()?"":"none";this.content.style.display=e}setContainer(e){if(typeof e===QC){let n;if(e.charAt(0)==="."){const s=e.slice(1);e=document.getElementsByClassName(s)[0]}else e.charAt(0)!=="#"?n=e:n=e.slice(1),e=document.getElementById(n);if(!e)throw"Can not find container in document with id "+n}return this._setAttr("container",e),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),e.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const e=this.children,n=e.length;for(let s=0;s<n;s++)e[s].clear();return this}clone(e){return e||(e={}),e.container=typeof document<"u"&&document.createElement("div"),Ya.prototype.clone.call(this,e)}destroy(){super.destroy();const e=this.content;e&&pe._isInDocument(e)&&this.container().removeChild(e);const n=Sf.indexOf(this);return n>-1&&Sf.splice(n,1),pe.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const e=this._pointerPositions[0]||this._changedPointerPositions[0];return e?{x:e.x,y:e.y}:(pe.warn(JC),null)}_getPointerById(e){return this._pointerPositions.find(n=>n.id===e)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(e){e={...e},e.x=e.x||0,e.y=e.y||0,e.width=e.width||this.width(),e.height=e.height||this.height();const n=new Oo({width:e.width,height:e.height,pixelRatio:e.pixelRatio||1}),s=n.getContext()._context,i=this.children;return(e.x||e.y)&&s.translate(-1*e.x,-1*e.y),i.forEach(function(c){if(!c.isVisible())return;const d=c._toKonvaCanvas(e);s.drawImage(d._canvas,e.x,e.y,d.getWidth()/d.getPixelRatio(),d.getHeight()/d.getPixelRatio())}),n}getIntersection(e){if(!e)return null;const n=this.children,s=n.length,i=s-1;for(let c=i;c>=0;c--){const d=n[c].getIntersection(e);if(d)return d}return null}_resizeDOM(){const e=this.width(),n=this.height();this.content&&(this.content.style.width=e+p2,this.content.style.height=n+p2),this.bufferCanvas.setSize(e,n),this.bufferHitCanvas.setSize(e,n),this.children.forEach(s=>{s.setSize({width:e,height:n}),s.draw()})}add(e,...n){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.add(arguments[i]);return this}super.add(e);const s=this.children.length;return s>qC&&pe.warn("The stage has "+s+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e.setSize({width:this.width(),height:this.height()}),e.draw(),Qe.isBrowser&&this.content.appendChild(e.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(e){return _x(e,this)}setPointerCapture(e){Ex(e,this)}releaseCapture(e){bf(e)}getLayers(){return this.children}_bindContentEvents(){Qe.isBrowser&&KC.forEach(([e,n])=>{this.content.addEventListener(e,s=>{this[n](s)},{passive:!1})})}_pointerenter(e){this.setPointersPositions(e);const n=mu(e.type);n&&this._fire(n.pointerenter,{evt:e,target:this,currentTarget:this})}_pointerover(e){this.setPointersPositions(e);const n=mu(e.type);n&&this._fire(n.pointerover,{evt:e,target:this,currentTarget:this})}_getTargetShape(e){let n=this[e+"targetShape"];return n&&!n.getStage()&&(n=null),n}_pointerleave(e){const n=mu(e.type),s=gf(e.type);if(!n)return;this.setPointersPositions(e);const i=this._getTargetShape(s),c=!(Qe.isDragging()||Qe.isTransforming())||Qe.hitOnDragEnabled;i&&c?(i._fireAndBubble(n.pointerout,{evt:e}),i._fireAndBubble(n.pointerleave,{evt:e}),this._fire(n.pointerleave,{evt:e,target:this,currentTarget:this}),this[s+"targetShape"]=null):c&&(this._fire(n.pointerleave,{evt:e,target:this,currentTarget:this}),this._fire(n.pointerout,{evt:e,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(e){const n=mu(e.type),s=gf(e.type);if(!n)return;this.setPointersPositions(e);let i=!1;this._changedPointerPositions.forEach(c=>{const d=this.getIntersection(c);if(on.justDragged=!1,Qe["_"+s+"ListenClick"]=!0,!d||!d.isListening()){this[s+"ClickStartShape"]=void 0;return}Qe.capturePointerEventsEnabled&&d.setPointerCapture(c.id),this[s+"ClickStartShape"]=d,d._fireAndBubble(n.pointerdown,{evt:e,pointerId:c.id}),i=!0;const h=e.type.indexOf("touch")>=0;d.preventDefault()&&e.cancelable&&h&&e.preventDefault()}),i||this._fire(n.pointerdown,{evt:e,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(e){const n=mu(e.type),s=gf(e.type);if(!n)return;const i=e.type.indexOf("touch")>=0||e.pointerType==="touch";if(Qe.isDragging()&&on.node.preventDefault()&&e.cancelable&&i&&e.preventDefault(),this.setPointersPositions(e),!(!(Qe.isDragging()||Qe.isTransforming())||Qe.hitOnDragEnabled))return;const d={};let h=!1;const p=this._getTargetShape(s);this._changedPointerPositions.forEach(u=>{const A=Zm(u.id)||this.getIntersection(u),y=u.id,x={evt:e,pointerId:y},S=p!==A;if(S&&p&&(p._fireAndBubble(n.pointerout,{...x},A),p._fireAndBubble(n.pointerleave,{...x},A)),A){if(d[A._id])return;d[A._id]=!0}A&&A.isListening()?(h=!0,S&&(A._fireAndBubble(n.pointerover,{...x},p),A._fireAndBubble(n.pointerenter,{...x},p),this[s+"targetShape"]=A),A._fireAndBubble(n.pointermove,{...x})):p&&(this._fire(n.pointerover,{evt:e,target:this,currentTarget:this,pointerId:y}),this[s+"targetShape"]=null)}),h||this._fire(n.pointermove,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(e){const n=mu(e.type),s=gf(e.type);if(!n)return;this.setPointersPositions(e);const i=this[s+"ClickStartShape"],c=this[s+"ClickEndShape"],d={};let h=!1;this._changedPointerPositions.forEach(p=>{const u=Zm(p.id)||this.getIntersection(p);if(u){if(u.releaseCapture(p.id),d[u._id])return;d[u._id]=!0}const A=p.id,y={evt:e,pointerId:A};let x=!1;Qe["_"+s+"InDblClickWindow"]?(x=!0,clearTimeout(this[s+"DblTimeout"])):on.justDragged||(Qe["_"+s+"InDblClickWindow"]=!0,clearTimeout(this[s+"DblTimeout"])),this[s+"DblTimeout"]=setTimeout(function(){Qe["_"+s+"InDblClickWindow"]=!1},Qe.dblClickWindow),u&&u.isListening()?(h=!0,this[s+"ClickEndShape"]=u,u._fireAndBubble(n.pointerup,{...y}),Qe["_"+s+"ListenClick"]&&i&&i===u&&(u._fireAndBubble(n.pointerclick,{...y}),x&&c&&c===u&&u._fireAndBubble(n.pointerdblclick,{...y}))):(this[s+"ClickEndShape"]=null,h||(this._fire(n.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),h=!0),Qe["_"+s+"ListenClick"]&&this._fire(n.pointerclick,{evt:e,target:this,currentTarget:this,pointerId:A}),x&&this._fire(n.pointerdblclick,{evt:e,target:this,currentTarget:this,pointerId:A}))}),h||this._fire(n.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),Qe["_"+s+"ListenClick"]=!1,e.cancelable&&s!=="touch"&&s!=="pointer"&&e.preventDefault()}_contextmenu(e){this.setPointersPositions(e);const n=this.getIntersection(this.getPointerPosition());n&&n.isListening()?n._fireAndBubble(Rg,{evt:e}):this._fire(Rg,{evt:e,target:this,currentTarget:this})}_wheel(e){this.setPointersPositions(e);const n=this.getIntersection(this.getPointerPosition());n&&n.isListening()?n._fireAndBubble(Tg,{evt:e}):this._fire(Tg,{evt:e,target:this,currentTarget:this})}_pointercancel(e){this.setPointersPositions(e);const n=Zm(e.pointerId)||this.getIntersection(this.getPointerPosition());n&&n._fireAndBubble(_u,Vg(e)),bf(e.pointerId)}_lostpointercapture(e){bf(e.pointerId)}setPointersPositions(e){const n=this._getContentPosition();let s=null,i=null;e=e||window.event,e.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(e.touches,c=>{this._pointerPositions.push({id:c.identifier,x:(c.clientX-n.left)/n.scaleX,y:(c.clientY-n.top)/n.scaleY})}),Array.prototype.forEach.call(e.changedTouches||e.touches,c=>{this._changedPointerPositions.push({id:c.identifier,x:(c.clientX-n.left)/n.scaleX,y:(c.clientY-n.top)/n.scaleY})})):(s=(e.clientX-n.left)/n.scaleX,i=(e.clientY-n.top)/n.scaleY,this.pointerPos={x:s,y:i},this._pointerPositions=[{x:s,y:i,id:pe._getFirstPointerId(e)}],this._changedPointerPositions=[{x:s,y:i,id:pe._getFirstPointerId(e)}])}_setPointerPosition(e){pe.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(e)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const e=this.content.getBoundingClientRect();return{top:e.top,left:e.left,scaleX:e.width/this.content.clientWidth||1,scaleY:e.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new Oo({width:this.width(),height:this.height()}),this.bufferHitCanvas=new Qg({pixelRatio:1,width:this.width(),height:this.height()}),!Qe.isBrowser)return;const e=this.container();if(!e)throw"Stage has no container. A container is required.";e.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),e.appendChild(this.content),this._resizeDOM()}cache(){return pe.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(e){e.batchDraw()}),this}};hA.prototype.nodeType=XC;Mn(hA);ee.addGetterSetter(hA,"container");Qe.isBrowser&&document.addEventListener("visibilitychange",()=>{Sf.forEach(t=>{t.batchDraw()})});const Fx="hasShadow",Ix="shadowRGBA",Ox="patternImage",Ux="linearGradient",jx="radialGradient";let jp;function eg(){return jp||(jp=pe.createCanvasElement().getContext("2d"),jp)}const Cf={};function ZC(t){const e=this.attrs.fillRule;e?t.fill(e):t.fill()}function $C(t){t.stroke()}function ew(t){const e=this.attrs.fillRule;e?t.fill(e):t.fill()}function tw(t){t.stroke()}function nw(){this._clearCache(Fx)}function rw(){this._clearCache(Ix)}function aw(){this._clearCache(Ox)}function iw(){this._clearCache(Ux)}function sw(){this._clearCache(jx)}class Fe extends Ge{constructor(e){super(e);let n,s=0;for(;n=pe.getHitColor(),!(n&&!(n in Cf));)if(s++,s>=1e4){pe.warn("Failed to find a unique color key for a shape. Konva may work incorrectly. Most likely your browser is using canvas farbling. Consider disabling it."),n=pe.getRandomColor();break}this.colorKey=n,Cf[n]=this}getContext(){return pe.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return pe.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(Fx,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(Ox,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const n=eg().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(n&&n.setTransform){const s=new Qa;s.translate(this.fillPatternX(),this.fillPatternY()),s.rotate(Qe.getAngle(this.fillPatternRotation())),s.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),s.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const i=s.getMatrix(),c=typeof DOMMatrix>"u"?{a:i[0],b:i[1],c:i[2],d:i[3],e:i[4],f:i[5]}:new DOMMatrix(i);n.setTransform(c)}return n}}_getLinearGradient(){return this._getCache(Ux,this.__getLinearGradient)}__getLinearGradient(){const e=this.fillLinearGradientColorStops();if(e){const n=eg(),s=this.fillLinearGradientStartPoint(),i=this.fillLinearGradientEndPoint(),c=n.createLinearGradient(s.x,s.y,i.x,i.y);for(let d=0;d<e.length;d+=2)c.addColorStop(e[d],e[d+1]);return c}}_getRadialGradient(){return this._getCache(jx,this.__getRadialGradient)}__getRadialGradient(){const e=this.fillRadialGradientColorStops();if(e){const n=eg(),s=this.fillRadialGradientStartPoint(),i=this.fillRadialGradientEndPoint(),c=n.createRadialGradient(s.x,s.y,this.fillRadialGradientStartRadius(),i.x,i.y,this.fillRadialGradientEndRadius());for(let d=0;d<e.length;d+=2)c.addColorStop(e[d],e[d+1]);return c}}getShadowRGBA(){return this._getCache(Ix,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const e=pe.colorToRGBA(this.shadowColor());if(e)return"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.shadowOpacity()||1)+")"}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const e=this.hitStrokeWidth();return e==="auto"?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){const n=this.getStage();if(!n)return!1;const s=n.bufferHitCanvas;return s.getContext().clear(),this.drawHit(s,void 0,!0),s.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data[3]>0}destroy(){return Ge.prototype.destroy.call(this),delete Cf[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){var n;if(!((n=this.attrs.perfectDrawEnabled)!==null&&n!==void 0?n:!0))return!1;const i=e||this.hasFill(),c=this.hasStroke(),d=this.getAbsoluteOpacity()!==1;if(i&&c&&d)return!0;const h=this.hasShadow(),p=this.shadowForStrokeEnabled();return!!(i&&c&&h&&p)}setStrokeHitEnabled(e){pe.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),e?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(e={}){let n=!1,s=this.getParent();for(;s;){if(s.isCached()){n=!0;break}s=s.getParent()}const i=e.skipTransform,c=e.relativeTo||n&&this.getStage()||void 0,d=this.getSelfRect(),p=!e.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,u=d.width+p,A=d.height+p,y=!e.skipShadow&&this.hasShadow(),x=y?this.shadowOffsetX():0,S=y?this.shadowOffsetY():0,C=u+Math.abs(x),R=A+Math.abs(S),T=y&&this.shadowBlur()||0,D=C+T*2,P=R+T*2,M={width:D,height:P,x:-(p/2+T)+Math.min(x,0)+d.x,y:-(p/2+T)+Math.min(S,0)+d.y};return i?M:this._transformedRect(M,c)}drawScene(e,n,s){const i=this.getLayer(),c=e||i.getCanvas(),d=c.getContext(),h=this._getCanvasCache(),p=this.getSceneFunc(),u=this.hasShadow();let A;const y=n===this;if(!this.isVisible()&&!y)return this;if(h){d.save();const x=this.getAbsoluteTransform(n).getMatrix();return d.transform(x[0],x[1],x[2],x[3],x[4],x[5]),this._drawCachedSceneCanvas(d),d.restore(),this}if(!p)return this;if(d.save(),this._useBufferCanvas()){A=this.getStage();const x=s||A.bufferCanvas,S=x.getContext();s?(S.save(),S.setTransform(1,0,0,1,0,0),S.clearRect(0,0,x.width,x.height),S.restore()):S.clear(),S.save(),S._applyLineJoin(this),S._applyMiterLimit(this);const C=this.getAbsoluteTransform(n).getMatrix();S.transform(C[0],C[1],C[2],C[3],C[4],C[5]),p.call(this,S,this),S.restore();const R=x.pixelRatio;u&&d._applyShadow(this),y||(d._applyOpacity(this),d._applyGlobalCompositeOperation(this)),d.drawImage(x._canvas,x.x||0,x.y||0,x.width/R,x.height/R)}else{if(d._applyLineJoin(this),d._applyMiterLimit(this),!y){const x=this.getAbsoluteTransform(n).getMatrix();d.transform(x[0],x[1],x[2],x[3],x[4],x[5]),d._applyOpacity(this),d._applyGlobalCompositeOperation(this)}u&&d._applyShadow(this),p.call(this,d,this)}return d.restore(),this}drawHit(e,n,s=!1){if(!this.shouldDrawHit(n,s))return this;const i=this.getLayer(),c=e||i.hitCanvas,d=c&&c.getContext(),h=this.hitFunc()||this.sceneFunc(),p=this._getCanvasCache(),u=p&&p.hit;if(this.colorKey||pe.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),u){d.save();const y=this.getAbsoluteTransform(n).getMatrix();return d.transform(y[0],y[1],y[2],y[3],y[4],y[5]),this._drawCachedHitCanvas(d),d.restore(),this}if(!h)return this;if(d.save(),d._applyLineJoin(this),d._applyMiterLimit(this),!(this===n)){const y=this.getAbsoluteTransform(n).getMatrix();d.transform(y[0],y[1],y[2],y[3],y[4],y[5])}return h.call(this,d,this),d.restore(),this}drawHitFromCache(e=0){const n=this._getCanvasCache(),s=this._getCachedSceneCanvas(),i=n.hit,c=i.getContext(),d=i.getWidth(),h=i.getHeight();c.clear(),c.drawImage(s._canvas,0,0,d,h);try{const p=c.getImageData(0,0,d,h),u=p.data,A=u.length,y=pe._hexToRgb(this.colorKey);for(let x=0;x<A;x+=4)u[x+3]>e?(u[x]=y.r,u[x+1]=y.g,u[x+2]=y.b,u[x+3]=255):u[x+3]=0;c.putImageData(p,0,0)}catch(p){pe.error("Unable to draw hit graph from cached scene canvas. "+p.message)}return this}hasPointerCapture(e){return _x(e,this)}setPointerCapture(e){Ex(e,this)}releaseCapture(e){bf(e)}}Fe.prototype._fillFunc=ZC;Fe.prototype._strokeFunc=$C;Fe.prototype._fillFuncHit=ew;Fe.prototype._strokeFuncHit=tw;Fe.prototype._centroid=!1;Fe.prototype.nodeType="Shape";Mn(Fe);Fe.prototype.eventListeners={};Fe.prototype.on.call(Fe.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",nw);Fe.prototype.on.call(Fe.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",rw);Fe.prototype.on.call(Fe.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",aw);Fe.prototype.on.call(Fe.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",iw);Fe.prototype.on.call(Fe.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",sw);ee.addGetterSetter(Fe,"stroke",void 0,Cx());ee.addGetterSetter(Fe,"strokeWidth",2,We());ee.addGetterSetter(Fe,"fillAfterStrokeEnabled",!1);ee.addGetterSetter(Fe,"hitStrokeWidth","auto",Yg());ee.addGetterSetter(Fe,"strokeHitEnabled",!0,zi());ee.addGetterSetter(Fe,"perfectDrawEnabled",!0,zi());ee.addGetterSetter(Fe,"shadowForStrokeEnabled",!0,zi());ee.addGetterSetter(Fe,"lineJoin");ee.addGetterSetter(Fe,"lineCap");ee.addGetterSetter(Fe,"miterLimit");ee.addGetterSetter(Fe,"sceneFunc");ee.addGetterSetter(Fe,"hitFunc");ee.addGetterSetter(Fe,"dash");ee.addGetterSetter(Fe,"dashOffset",0,We());ee.addGetterSetter(Fe,"shadowColor",void 0,zl());ee.addGetterSetter(Fe,"shadowBlur",0,We());ee.addGetterSetter(Fe,"shadowOpacity",1,We());ee.addComponentsGetterSetter(Fe,"shadowOffset",["x","y"]);ee.addGetterSetter(Fe,"shadowOffsetX",0,We());ee.addGetterSetter(Fe,"shadowOffsetY",0,We());ee.addGetterSetter(Fe,"fillPatternImage");ee.addGetterSetter(Fe,"fill",void 0,Cx());ee.addGetterSetter(Fe,"fillPatternX",0,We());ee.addGetterSetter(Fe,"fillPatternY",0,We());ee.addGetterSetter(Fe,"fillLinearGradientColorStops");ee.addGetterSetter(Fe,"strokeLinearGradientColorStops");ee.addGetterSetter(Fe,"fillRadialGradientStartRadius",0);ee.addGetterSetter(Fe,"fillRadialGradientEndRadius",0);ee.addGetterSetter(Fe,"fillRadialGradientColorStops");ee.addGetterSetter(Fe,"fillPatternRepeat","repeat");ee.addGetterSetter(Fe,"fillEnabled",!0);ee.addGetterSetter(Fe,"strokeEnabled",!0);ee.addGetterSetter(Fe,"shadowEnabled",!0);ee.addGetterSetter(Fe,"dashEnabled",!0);ee.addGetterSetter(Fe,"strokeScaleEnabled",!0);ee.addGetterSetter(Fe,"fillPriority","color");ee.addComponentsGetterSetter(Fe,"fillPatternOffset",["x","y"]);ee.addGetterSetter(Fe,"fillPatternOffsetX",0,We());ee.addGetterSetter(Fe,"fillPatternOffsetY",0,We());ee.addComponentsGetterSetter(Fe,"fillPatternScale",["x","y"]);ee.addGetterSetter(Fe,"fillPatternScaleX",1,We());ee.addGetterSetter(Fe,"fillPatternScaleY",1,We());ee.addComponentsGetterSetter(Fe,"fillLinearGradientStartPoint",["x","y"]);ee.addComponentsGetterSetter(Fe,"strokeLinearGradientStartPoint",["x","y"]);ee.addGetterSetter(Fe,"fillLinearGradientStartPointX",0);ee.addGetterSetter(Fe,"strokeLinearGradientStartPointX",0);ee.addGetterSetter(Fe,"fillLinearGradientStartPointY",0);ee.addGetterSetter(Fe,"strokeLinearGradientStartPointY",0);ee.addComponentsGetterSetter(Fe,"fillLinearGradientEndPoint",["x","y"]);ee.addComponentsGetterSetter(Fe,"strokeLinearGradientEndPoint",["x","y"]);ee.addGetterSetter(Fe,"fillLinearGradientEndPointX",0);ee.addGetterSetter(Fe,"strokeLinearGradientEndPointX",0);ee.addGetterSetter(Fe,"fillLinearGradientEndPointY",0);ee.addGetterSetter(Fe,"strokeLinearGradientEndPointY",0);ee.addComponentsGetterSetter(Fe,"fillRadialGradientStartPoint",["x","y"]);ee.addGetterSetter(Fe,"fillRadialGradientStartPointX",0);ee.addGetterSetter(Fe,"fillRadialGradientStartPointY",0);ee.addComponentsGetterSetter(Fe,"fillRadialGradientEndPoint",["x","y"]);ee.addGetterSetter(Fe,"fillRadialGradientEndPointX",0);ee.addGetterSetter(Fe,"fillRadialGradientEndPointY",0);ee.addGetterSetter(Fe,"fillPatternRotation",0);ee.addGetterSetter(Fe,"fillRule",void 0,zl());ee.backCompat(Fe,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});const ow="beforeDraw",lw="draw",Gx=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],cw=Gx.length;let Fl=class extends Ya{constructor(e){super(e),this.canvas=new Oo,this.hitCanvas=new Qg({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);const n=this.getStage();return n&&n.content&&(n.content.removeChild(this.getNativeCanvasElement()),e<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[e+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Ge.prototype.moveToTop.call(this);const e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!Ge.prototype.moveUp.call(this))return!1;const n=this.getStage();return!n||!n.content?!1:(n.content.removeChild(this.getNativeCanvasElement()),this.index<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[this.index+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Ge.prototype.moveDown.call(this)){const e=this.getStage();if(e){const n=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),n[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Ge.prototype.moveToBottom.call(this)){const e=this.getStage();if(e){const n=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),n[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const e=this.getNativeCanvasElement();return Ge.prototype.remove.call(this),e&&e.parentNode&&pe._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize({width:e,height:n}){return this.canvas.setSize(e,n),this.hitCanvas.setSize(e,n),this._setSmoothEnabled(),this}_validateAdd(e){const n=e.getType();n!=="Group"&&n!=="Shape"&&pe.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(e){return e={...e},e.width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=e.x!==void 0?e.x:this.x(),e.y=e.y!==void 0?e.y:this.y(),Ge.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){pe.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){pe.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,pe.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;let n=1,s=!1;for(;;){for(let i=0;i<cw;i++){const c=Gx[i],d=this._getIntersection({x:e.x+c.x*n,y:e.y+c.y*n}),h=d.shape;if(h)return h;if(s=!!d.antialiased,!d.antialiased)break}if(s)n+=1;else return null}}_getIntersection(e){const n=this.hitCanvas.pixelRatio,s=this.hitCanvas.context.getImageData(Math.round(e.x*n),Math.round(e.y*n),1,1).data,i=s[3];if(i===255){const c=pe.getHitColorKey(s[0],s[1],s[2]),d=Cf[c];return d?{shape:d}:{antialiased:!0}}else if(i>0)return{antialiased:!0};return{}}drawScene(e,n,s){const i=this.getLayer(),c=e||i&&i.getCanvas();return this._fire(ow,{node:this}),this.clearBeforeDraw()&&c.getContext().clear(),Ya.prototype.drawScene.call(this,c,n,s),this._fire(lw,{node:this}),this}drawHit(e,n){const s=this.getLayer(),i=e||s&&s.hitCanvas;return s&&s.clearBeforeDraw()&&s.getHitCanvas().getContext().clear(),Ya.prototype.drawHit.call(this,i,n),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){pe.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(e)}getHitGraphEnabled(e){return pe.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const e=this.parent;!!this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}destroy(){return pe.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};Fl.prototype.nodeType="Layer";Mn(Fl);ee.addGetterSetter(Fl,"imageSmoothingEnabled",!0);ee.addGetterSetter(Fl,"clearBeforeDraw",!0);ee.addGetterSetter(Fl,"hitGraphEnabled",!0,zi());class qg extends Fl{constructor(e){super(e),this.listening(!1),pe.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}qg.prototype.nodeType="FastLayer";Mn(qg);let Tu=class extends Ya{_validateAdd(e){const n=e.getType();n!=="Group"&&n!=="Shape"&&pe.throw("You may only add groups and shapes to groups.")}};Tu.prototype.nodeType="Group";Mn(Tu);const tg=(function(){return Pl.performance&&Pl.performance.now?function(){return Pl.performance.now()}:function(){return new Date().getTime()}})();class pi{constructor(e,n){this.id=pi.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:tg(),frameRate:0},this.func=e,this.setLayers(n)}setLayers(e){let n=[];return e&&(n=Array.isArray(e)?e:[e]),this.layers=n,this}getLayers(){return this.layers}addLayer(e){const n=this.layers,s=n.length;for(let i=0;i<s;i++)if(n[i]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){const n=pi.animations,s=n.length;for(let i=0;i<s;i++)if(n[i].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=tg(),pi._addAnimation(this),this}stop(){return pi._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){const n=e.id,s=this.animations,i=s.length;for(let c=0;c<i;c++)if(s[c].id===n){this.animations.splice(c,1);break}}static _runFrames(){const e={},n=this.animations;for(let s=0;s<n.length;s++){const i=n[s],c=i.layers,d=i.func;i._updateFrameObject(tg());const h=c.length;let p;if(d?p=d.call(i,i.frame)!==!1:p=!0,!!p)for(let u=0;u<h;u++){const A=c[u];A._id!==void 0&&(e[A._id]=A)}}for(const s in e)e.hasOwnProperty(s)&&e[s].batchDraw()}static _animationLoop(){const e=pi;e.animations.length?(e._runFrames(),pe.requestAnimFrame(e._animationLoop)):e.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,pe.requestAnimFrame(this._animationLoop))}}pi.animations=[];pi.animIdCounter=0;pi.animRunning=!1;const uw={node:1,duration:1,easing:1,onFinish:1,yoyo:1},dw=1,m2=2,g2=3,v2=["fill","stroke","shadowColor"];let fw=0;class hw{constructor(e,n,s,i,c,d,h){this.prop=e,this.propFunc=n,this.begin=i,this._pos=i,this.duration=d,this._change=0,this.prevPos=0,this.yoyo=h,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=s,this._change=c-this.begin,this.pause()}fire(e){const n=this[e];n&&n()}setTime(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())}getTime(){return this._time}setPosition(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e}getPosition(e){return e===void 0&&(e=this._time),this.func(e,this.begin,this._change,this.duration)}play(){this.state=m2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=g2,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(e){this.pause(),this._time=e,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const e=this.getTimer()-this._startTime;this.state===m2?this.setTime(e):this.state===g2&&this.setTime(this.duration-e)}pause(){this.state=dw,this.fire("onPause")}getTimer(){return new Date().getTime()}}class Cn{constructor(e){const n=this,s=e.node,i=s._id,c=e.easing||wf.Linear,d=!!e.yoyo;let h,p;typeof e.duration>"u"?h=.3:e.duration===0?h=.001:h=e.duration,this.node=s,this._id=fw++;const u=s.getLayer()||(s instanceof Qe.Stage?s.getLayers():null);u||pe.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new pi(function(){n.tween.onEnterFrame()},u),this.tween=new hw(p,function(A){n._tweenFunc(A)},c,0,1,h*1e3,d),this._addListeners(),Cn.attrs[i]||(Cn.attrs[i]={}),Cn.attrs[i][this._id]||(Cn.attrs[i][this._id]={}),Cn.tweens[i]||(Cn.tweens[i]={});for(p in e)uw[p]===void 0&&this._addAttr(p,e[p]);this.reset(),this.onFinish=e.onFinish,this.onReset=e.onReset,this.onUpdate=e.onUpdate}_addAttr(e,n){const s=this.node,i=s._id;let c,d,h,p,u;const A=Cn.tweens[i][e];A&&delete Cn.attrs[i][A][e];let y=s.getAttr(e);if(pe._isArray(n))if(c=[],d=Math.max(n.length,y.length),e==="points"&&n.length!==y.length&&(n.length>y.length?(p=y,y=pe._prepareArrayForTween(y,n,s.closed())):(h=n,n=pe._prepareArrayForTween(n,y,s.closed()))),e.indexOf("fill")===0)for(let x=0;x<d;x++)if(x%2===0)c.push(n[x]-y[x]);else{const S=pe.colorToRGBA(y[x]);u=pe.colorToRGBA(n[x]),y[x]=S,c.push({r:u.r-S.r,g:u.g-S.g,b:u.b-S.b,a:u.a-S.a})}else for(let x=0;x<d;x++)c.push(n[x]-y[x]);else v2.indexOf(e)!==-1?(y=pe.colorToRGBA(y),u=pe.colorToRGBA(n),c={r:u.r-y.r,g:u.g-y.g,b:u.b-y.b,a:u.a-y.a}):c=n-y;Cn.attrs[i][this._id][e]={start:y,diff:c,end:n,trueEnd:h,trueStart:p},Cn.tweens[i][e]=this._id}_tweenFunc(e){const n=this.node,s=Cn.attrs[n._id][this._id];let i,c,d,h,p,u,A,y;for(i in s){if(c=s[i],d=c.start,h=c.diff,y=c.end,pe._isArray(d))if(p=[],A=Math.max(d.length,y.length),i.indexOf("fill")===0)for(u=0;u<A;u++)u%2===0?p.push((d[u]||0)+h[u]*e):p.push("rgba("+Math.round(d[u].r+h[u].r*e)+","+Math.round(d[u].g+h[u].g*e)+","+Math.round(d[u].b+h[u].b*e)+","+(d[u].a+h[u].a*e)+")");else for(u=0;u<A;u++)p.push((d[u]||0)+h[u]*e);else v2.indexOf(i)!==-1?p="rgba("+Math.round(d.r+h.r*e)+","+Math.round(d.g+h.g*e)+","+Math.round(d.b+h.b*e)+","+(d.a+h.a*e)+")":p=d+h*e;n.setAttr(i,p)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const e=this.node,n=Cn.attrs[e._id][this._id];n.points&&n.points.trueEnd&&e.setAttr("points",n.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const e=this.node,n=Cn.attrs[e._id][this._id];n.points&&n.points.trueStart&&e.points(n.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(e){return this.tween.seek(e*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const e=this.node._id,n=this._id,s=Cn.tweens[e];this.pause(),this.anim&&this.anim.stop();for(const i in s)delete Cn.tweens[e][i];delete Cn.attrs[e][n],Cn.tweens[e]&&(Object.keys(Cn.tweens[e]).length===0&&delete Cn.tweens[e],Object.keys(Cn.attrs[e]).length===0&&delete Cn.attrs[e])}}Cn.attrs={};Cn.tweens={};Ge.prototype.to=function(t){const e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()},new Cn(t).play()};const wf={BackEaseIn(t,e,n,s){return n*(t/=s)*t*((1.70158+1)*t-1.70158)+e},BackEaseOut(t,e,n,s){return n*((t=t/s-1)*t*((1.70158+1)*t+1.70158)+1)+e},BackEaseInOut(t,e,n,s){let i=1.70158;return(t/=s/2)<1?n/2*(t*t*(((i*=1.525)+1)*t-i))+e:n/2*((t-=2)*t*(((i*=1.525)+1)*t+i)+2)+e},ElasticEaseIn(t,e,n,s,i,c){let d=0;return t===0?e:(t/=s)===1?e+n:(c||(c=s*.3),!i||i<Math.abs(n)?(i=n,d=c/4):d=c/(2*Math.PI)*Math.asin(n/i),-(i*Math.pow(2,10*(t-=1))*Math.sin((t*s-d)*(2*Math.PI)/c))+e)},ElasticEaseOut(t,e,n,s,i,c){let d=0;return t===0?e:(t/=s)===1?e+n:(c||(c=s*.3),!i||i<Math.abs(n)?(i=n,d=c/4):d=c/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*t)*Math.sin((t*s-d)*(2*Math.PI)/c)+n+e)},ElasticEaseInOut(t,e,n,s,i,c){let d=0;return t===0?e:(t/=s/2)===2?e+n:(c||(c=s*(.3*1.5)),!i||i<Math.abs(n)?(i=n,d=c/4):d=c/(2*Math.PI)*Math.asin(n/i),t<1?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((t*s-d)*(2*Math.PI)/c))+e:i*Math.pow(2,-10*(t-=1))*Math.sin((t*s-d)*(2*Math.PI)/c)*.5+n+e)},BounceEaseOut(t,e,n,s){return(t/=s)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn(t,e,n,s){return n-wf.BounceEaseOut(s-t,0,n,s)+e},BounceEaseInOut(t,e,n,s){return t<s/2?wf.BounceEaseIn(t*2,0,n,s)*.5+e:wf.BounceEaseOut(t*2-s,0,n,s)*.5+n*.5+e},EaseIn(t,e,n,s){return n*(t/=s)*t+e},EaseOut(t,e,n,s){return-n*(t/=s)*(t-2)+e},EaseInOut(t,e,n,s){return(t/=s/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},StrongEaseIn(t,e,n,s){return n*(t/=s)*t*t*t*t+e},StrongEaseOut(t,e,n,s){return n*((t=t/s-1)*t*t*t*t+1)+e},StrongEaseInOut(t,e,n,s){return(t/=s/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},Linear(t,e,n,s){return n*t/s+e}},Ml=pe._assign(Qe,{Util:pe,Transform:Qa,Node:Ge,Container:Ya,Stage:hA,stages:Sf,Layer:Fl,FastLayer:qg,Group:Tu,DD:on,Shape:Fe,shapes:Cf,Animation:pi,Tween:Cn,Easings:wf,Context:dA,Canvas:Xg});class Zs extends Fe{_sceneFunc(e){const n=Qe.getAngle(this.angle()),s=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,n,s),e.arc(0,0,this.innerRadius(),n,0,!s),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){const e=this.innerRadius(),n=this.outerRadius(),s=this.clockwise(),i=Qe.getAngle(s?360-this.angle():this.angle()),c=Math.cos(Math.min(i,Math.PI)),d=1,h=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),p=Math.sin(Math.min(i,Math.PI/2)),u=c*(c>0?e:n),A=d*n,y=h*(h>0?e:n),x=p*(p>0?n:e);return{x:u,y:s?-1*x:y,width:A-u,height:x-y}}}Zs.prototype._centroid=!0;Zs.prototype.className="Arc";Zs.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"];Mn(Zs);ee.addGetterSetter(Zs,"innerRadius",0,We());ee.addGetterSetter(Zs,"outerRadius",0,We());ee.addGetterSetter(Zs,"angle",0,We());ee.addGetterSetter(Zs,"clockwise",!1,zi());function Dg(t,e,n,s,i,c,d){const h=Math.sqrt(Math.pow(n-t,2)+Math.pow(s-e,2)),p=Math.sqrt(Math.pow(i-n,2)+Math.pow(c-s,2)),u=d*h/(h+p),A=d*p/(h+p),y=n-u*(i-t),x=s-u*(c-e),S=n+A*(i-t),C=s+A*(c-e);return[y,x,S,C]}function y2(t,e){const n=t.length,s=[];for(let i=2;i<n-2;i+=2){const c=Dg(t[i-2],t[i-1],t[i],t[i+1],t[i+2],t[i+3],e);isNaN(c[0])||(s.push(c[0]),s.push(c[1]),s.push(t[i]),s.push(t[i+1]),s.push(c[2]),s.push(c[3]))}return s}function pw(t){const e=[[t[0],t[2],t[4],t[6]],[t[1],t[3],t[5],t[7]]],n=[];for(const s of e){const i=-3*s[0]+9*s[1]-9*s[2]+3*s[3];if(i!==0){const c=6*s[0]-12*s[1]+6*s[2],d=-3*s[0]+3*s[1],h=c*c-4*i*d;if(h>=0){const p=Math.sqrt(h);n.push((-c+p)/(2*i)),n.push((-c-p)/(2*i))}}}return n.filter(s=>s>0&&s<1).flatMap(s=>e.map(i=>{const c=1-s;return c*c*c*i[0]+3*c*c*s*i[1]+3*c*s*s*i[2]+s*s*s*i[3]}))}let $s=class extends Fe{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(e){const n=this.points(),s=n.length,i=this.tension(),c=this.closed(),d=this.bezier();if(!s)return;let h=0;if(e.beginPath(),e.moveTo(n[0],n[1]),i!==0&&s>4){const p=this.getTensionPoints(),u=p.length;for(h=c?0:4,c||e.quadraticCurveTo(p[0],p[1],p[2],p[3]);h<u-2;)e.bezierCurveTo(p[h++],p[h++],p[h++],p[h++],p[h++],p[h++]);c||e.quadraticCurveTo(p[u-2],p[u-1],n[s-2],n[s-1])}else if(d)for(h=2;h<s;)e.bezierCurveTo(n[h++],n[h++],n[h++],n[h++],n[h++],n[h++]);else for(h=2;h<s;h+=2)e.lineTo(n[h],n[h+1]);c?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():y2(this.points(),this.tension())}_getTensionPointsClosed(){const e=this.points(),n=e.length,s=this.tension(),i=Dg(e[n-2],e[n-1],e[0],e[1],e[2],e[3],s),c=Dg(e[n-4],e[n-3],e[n-2],e[n-1],e[0],e[1],s),d=y2(e,s);return[i[2],i[3]].concat(d).concat([c[0],c[1],e[n-2],e[n-1],c[2],c[3],i[0],i[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};this.tension()!==0?e=[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:this.bezier()?e=[e[0],e[1],...pw(this.points()),e[e.length-2],e[e.length-1]]:e=this.points();let n=e[0],s=e[0],i=e[1],c=e[1],d,h;for(let p=0;p<e.length/2;p++)d=e[p*2],h=e[p*2+1],n=Math.min(n,d),s=Math.max(s,d),i=Math.min(i,h),c=Math.max(c,h);return{x:n,y:i,width:s-n,height:c-i}}};$s.prototype.className="Line";$s.prototype._attrsAffectingSize=["points","bezier","tension"];Mn($s);ee.addGetterSetter($s,"closed",!1);ee.addGetterSetter($s,"bezier",!1);ee.addGetterSetter($s,"tension",0,We());ee.addGetterSetter($s,"points",[],LC());const Aw=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],mw=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],gw=[[1],[1,1],[1,2,1],[1,3,3,1]],x2=(t,e,n)=>{let s,i;const d=n/2;s=0;for(let h=0;h<20;h++)i=d*Aw[20][h]+d,s+=mw[20][h]*vw(t,e,i);return d*s},b2=(t,e,n)=>{n===void 0&&(n=1);const s=t[0]-2*t[1]+t[2],i=e[0]-2*e[1]+e[2],c=2*t[1]-2*t[0],d=2*e[1]-2*e[0],h=4*(s*s+i*i),p=4*(s*c+i*d),u=c*c+d*d;if(h===0)return n*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));const A=p/(2*h),y=u/h,x=n+A,S=y-A*A,C=x*x+S>0?Math.sqrt(x*x+S):0,R=A*A+S>0?Math.sqrt(A*A+S):0,T=A+Math.sqrt(A*A+S)!==0?S*Math.log(Math.abs((x+C)/(A+R))):0;return Math.sqrt(h)/2*(x*C-A*R+T)};function vw(t,e,n){const s=Lg(1,n,t),i=Lg(1,n,e),c=s*s+i*i;return Math.sqrt(c)}const Lg=(t,e,n)=>{const s=n.length-1;let i,c;if(s===0)return 0;if(t===0){c=0;for(let d=0;d<=s;d++)c+=gw[s][d]*Math.pow(1-e,s-d)*Math.pow(e,d)*n[d];return c}else{i=new Array(s);for(let d=0;d<s;d++)i[d]=s*(n[d+1]-n[d]);return Lg(t-1,e,i)}},S2=(t,e,n)=>{let s=1,i=t/e,c=(t-n(i))/e,d=0;for(;s>.001;){const h=n(i+c),p=Math.abs(t-h)/e;if(p<s)s=p,i+=c;else{const u=n(i-c),A=Math.abs(t-u)/e;A<s?(s=A,i-=c):c/=2}if(d++,d>500)break}return i};class wn extends Fe{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=wn.parsePathData(this.data()),this.pathLength=wn.getPathLength(this.dataArray)}_sceneFunc(e){const n=this.dataArray;e.beginPath();let s=!1;for(let i=0;i<n.length;i++){const c=n[i].command,d=n[i].points;switch(c){case"L":e.lineTo(d[0],d[1]);break;case"M":e.moveTo(d[0],d[1]);break;case"C":e.bezierCurveTo(d[0],d[1],d[2],d[3],d[4],d[5]);break;case"Q":e.quadraticCurveTo(d[0],d[1],d[2],d[3]);break;case"A":const h=d[0],p=d[1],u=d[2],A=d[3],y=d[4],x=d[5],S=d[6],C=d[7],R=u>A?u:A,T=u>A?1:u/A,D=u>A?A/u:1;e.translate(h,p),e.rotate(S),e.scale(T,D),e.arc(0,0,R,y,y+x,1-C),e.scale(1/T,1/D),e.rotate(-S),e.translate(-h,-p);break;case"z":s=!0,e.closePath();break}}!s&&!this.hasFill()?e.strokeShape(this):e.fillStrokeShape(this)}getSelfRect(){let e=[];this.dataArray.forEach(function(p){if(p.command==="A"){const u=p.points[4],A=p.points[5],y=p.points[4]+A;let x=Math.PI/180;if(Math.abs(u-y)<x&&(x=Math.abs(u-y)),A<0)for(let S=u-x;S>y;S-=x){const C=wn.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],S,0);e.push(C.x,C.y)}else for(let S=u+x;S<y;S+=x){const C=wn.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],S,0);e.push(C.x,C.y)}}else if(p.command==="C")for(let u=0;u<=1;u+=.01){const A=wn.getPointOnCubicBezier(u,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);e.push(A.x,A.y)}else e=e.concat(p.points)});let n=e[0],s=e[0],i=e[1],c=e[1],d,h;for(let p=0;p<e.length/2;p++)d=e[p*2],h=e[p*2+1],isNaN(d)||(n=Math.min(n,d),s=Math.max(s,d)),isNaN(h)||(i=Math.min(i,h),c=Math.max(c,h));return{x:n,y:i,width:s-n,height:c-i}}getLength(){return this.pathLength}getPointAtLength(e){return wn.getPointAtLengthOfDataArray(e,this.dataArray)}static getLineLength(e,n,s,i){return Math.sqrt((s-e)*(s-e)+(i-n)*(i-n))}static getPathLength(e){let n=0;for(let s=0;s<e.length;++s)n+=e[s].pathLength;return n}static getPointAtLengthOfDataArray(e,n){let s,i=0,c=n.length;if(!c)return null;for(;i<c&&e>n[i].pathLength;)e-=n[i].pathLength,++i;if(i===c)return s=n[i-1].points.slice(-2),{x:s[0],y:s[1]};if(e<.01)return n[i].command==="M"?(s=n[i].points.slice(0,2),{x:s[0],y:s[1]}):{x:n[i].start.x,y:n[i].start.y};const d=n[i],h=d.points;switch(d.command){case"L":return wn.getPointOnLine(e,d.start.x,d.start.y,h[0],h[1]);case"C":return wn.getPointOnCubicBezier(S2(e,wn.getPathLength(n),R=>x2([d.start.x,h[0],h[2],h[4]],[d.start.y,h[1],h[3],h[5]],R)),d.start.x,d.start.y,h[0],h[1],h[2],h[3],h[4],h[5]);case"Q":return wn.getPointOnQuadraticBezier(S2(e,wn.getPathLength(n),R=>b2([d.start.x,h[0],h[2]],[d.start.y,h[1],h[3]],R)),d.start.x,d.start.y,h[0],h[1],h[2],h[3]);case"A":const p=h[0],u=h[1],A=h[2],y=h[3],x=h[5],S=h[6];let C=h[4];return C+=x*e/d.pathLength,wn.getPointOnEllipticalArc(p,u,A,y,C,S)}return null}static getPointOnLine(e,n,s,i,c,d,h){d=d??n,h=h??s;const p=this.getLineLength(n,s,i,c);if(p<1e-10)return{x:n,y:s};if(i===n)return{x:d,y:h+(c>s?e:-e)};const u=(c-s)/(i-n),A=Math.sqrt(e*e/(1+u*u))*(i<n?-1:1),y=u*A;if(Math.abs(h-s-u*(d-n))<1e-10)return{x:d+A,y:h+y};const x=((d-n)*(i-n)+(h-s)*(c-s))/(p*p),S=n+x*(i-n),C=s+x*(c-s),R=this.getLineLength(d,h,S,C),T=Math.sqrt(e*e-R*R),D=Math.sqrt(T*T/(1+u*u))*(i<n?-1:1),P=u*D;return{x:S+D,y:C+P}}static getPointOnCubicBezier(e,n,s,i,c,d,h,p,u){function A(T){return T*T*T}function y(T){return 3*T*T*(1-T)}function x(T){return 3*T*(1-T)*(1-T)}function S(T){return(1-T)*(1-T)*(1-T)}const C=p*A(e)+d*y(e)+i*x(e)+n*S(e),R=u*A(e)+h*y(e)+c*x(e)+s*S(e);return{x:C,y:R}}static getPointOnQuadraticBezier(e,n,s,i,c,d,h){function p(S){return S*S}function u(S){return 2*S*(1-S)}function A(S){return(1-S)*(1-S)}const y=d*p(e)+i*u(e)+n*A(e),x=h*p(e)+c*u(e)+s*A(e);return{x:y,y:x}}static getPointOnEllipticalArc(e,n,s,i,c,d){const h=Math.cos(d),p=Math.sin(d),u={x:s*Math.cos(c),y:i*Math.sin(c)};return{x:e+(u.x*h-u.y*p),y:n+(u.x*p+u.y*h)}}static parsePathData(e){if(!e)return[];let n=e;const s=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(let y=0;y<s.length;y++)n=n.replace(new RegExp(s[y],"g"),"|"+s[y]);const i=n.split("|"),c=[],d=[];let h=0,p=0;const u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let A;for(let y=1;y<i.length;y++){let x=i[y],S=x.charAt(0);for(x=x.slice(1),d.length=0;A=u.exec(x);)d.push(A[0]);let C=[],R=S==="A"||S==="a"?0:-1;for(let T=0,D=d.length;T<D;T++){const P=d[T];if(P==="00"){C.push(0,0),R>=0&&(R+=2,R>=7&&(R-=7));continue}if(R>=0){if(R===3){if(/^[01]{2}\d+(?:\.\d+)?$/.test(P)){C.push(parseInt(P[0],10)),C.push(parseInt(P[1],10)),C.push(parseFloat(P.slice(2))),R+=3,R>=7&&(R-=7);continue}if(P==="11"||P==="10"||P==="01"){C.push(parseInt(P[0],10)),C.push(parseInt(P[1],10)),R+=2,R>=7&&(R-=7);continue}if(P==="0"||P==="1"){C.push(parseInt(P,10)),R+=1,R>=7&&(R-=7);continue}}else if(R===4){if(/^[01]\d+(?:\.\d+)?$/.test(P)){C.push(parseInt(P[0],10)),C.push(parseFloat(P.slice(1))),R+=2,R>=7&&(R-=7);continue}if(P==="0"||P==="1"){C.push(parseInt(P,10)),R+=1,R>=7&&(R-=7);continue}}const M=parseFloat(P);isNaN(M)?C.push(0):C.push(M),R+=1,R>=7&&(R-=7)}else{const M=parseFloat(P);isNaN(M)?C.push(0):C.push(M)}}for(;C.length>0&&!isNaN(C[0]);){let T="",D=[];const P=h,M=p;let O,I,V,K,q,Y,X,he,G,te;switch(S){case"l":h+=C.shift(),p+=C.shift(),T="L",D.push(h,p);break;case"L":h=C.shift(),p=C.shift(),D.push(h,p);break;case"m":const L=C.shift(),ne=C.shift();if(h+=L,p+=ne,T="M",c.length>2&&c[c.length-1].command==="z"){for(let le=c.length-2;le>=0;le--)if(c[le].command==="M"){h=c[le].points[0]+L,p=c[le].points[1]+ne;break}}D.push(h,p),S="l";break;case"M":h=C.shift(),p=C.shift(),T="M",D.push(h,p),S="L";break;case"h":h+=C.shift(),T="L",D.push(h,p);break;case"H":h=C.shift(),T="L",D.push(h,p);break;case"v":p+=C.shift(),T="L",D.push(h,p);break;case"V":p=C.shift(),T="L",D.push(h,p);break;case"C":D.push(C.shift(),C.shift(),C.shift(),C.shift()),h=C.shift(),p=C.shift(),D.push(h,p);break;case"c":D.push(h+C.shift(),p+C.shift(),h+C.shift(),p+C.shift()),h+=C.shift(),p+=C.shift(),T="C",D.push(h,p);break;case"S":I=h,V=p,O=c[c.length-1],O.command==="C"&&(I=h+(h-O.points[2]),V=p+(p-O.points[3])),D.push(I,V,C.shift(),C.shift()),h=C.shift(),p=C.shift(),T="C",D.push(h,p);break;case"s":I=h,V=p,O=c[c.length-1],O.command==="C"&&(I=h+(h-O.points[2]),V=p+(p-O.points[3])),D.push(I,V,h+C.shift(),p+C.shift()),h+=C.shift(),p+=C.shift(),T="C",D.push(h,p);break;case"Q":D.push(C.shift(),C.shift()),h=C.shift(),p=C.shift(),D.push(h,p);break;case"q":D.push(h+C.shift(),p+C.shift()),h+=C.shift(),p+=C.shift(),T="Q",D.push(h,p);break;case"T":I=h,V=p,O=c[c.length-1],O.command==="Q"&&(I=h+(h-O.points[0]),V=p+(p-O.points[1])),h=C.shift(),p=C.shift(),T="Q",D.push(I,V,h,p);break;case"t":I=h,V=p,O=c[c.length-1],O.command==="Q"&&(I=h+(h-O.points[0]),V=p+(p-O.points[1])),h+=C.shift(),p+=C.shift(),T="Q",D.push(I,V,h,p);break;case"A":K=C.shift(),q=C.shift(),Y=C.shift(),X=C.shift(),he=C.shift(),G=h,te=p,h=C.shift(),p=C.shift(),T="A",D=this.convertEndpointToCenterParameterization(G,te,h,p,X,he,K,q,Y);break;case"a":K=C.shift(),q=C.shift(),Y=C.shift(),X=C.shift(),he=C.shift(),G=h,te=p,h+=C.shift(),p+=C.shift(),T="A",D=this.convertEndpointToCenterParameterization(G,te,h,p,X,he,K,q,Y);break}c.push({command:T||S,points:D,start:{x:P,y:M},pathLength:this.calcLength(P,M,T||S,D)})}(S==="z"||S==="Z")&&c.push({command:"z",points:[],start:void 0,pathLength:0})}return c}static calcLength(e,n,s,i){let c,d,h,p;const u=wn;switch(s){case"L":return u.getLineLength(e,n,i[0],i[1]);case"C":return x2([e,i[0],i[2],i[4]],[n,i[1],i[3],i[5]],1);case"Q":return b2([e,i[0],i[2]],[n,i[1],i[3]],1);case"A":c=0;const A=i[4],y=i[5],x=i[4]+y;let S=Math.PI/180;if(Math.abs(A-x)<S&&(S=Math.abs(A-x)),d=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],A,0),y<0)for(p=A-S;p>x;p-=S)h=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),c+=u.getLineLength(d.x,d.y,h.x,h.y),d=h;else for(p=A+S;p<x;p+=S)h=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),c+=u.getLineLength(d.x,d.y,h.x,h.y),d=h;return h=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],x,0),c+=u.getLineLength(d.x,d.y,h.x,h.y),c}return 0}static convertEndpointToCenterParameterization(e,n,s,i,c,d,h,p,u){const A=u*(Math.PI/180),y=Math.cos(A)*(e-s)/2+Math.sin(A)*(n-i)/2,x=-1*Math.sin(A)*(e-s)/2+Math.cos(A)*(n-i)/2,S=y*y/(h*h)+x*x/(p*p);S>1&&(h*=Math.sqrt(S),p*=Math.sqrt(S));let C=Math.sqrt((h*h*(p*p)-h*h*(x*x)-p*p*(y*y))/(h*h*(x*x)+p*p*(y*y)));c===d&&(C*=-1),isNaN(C)&&(C=0);const R=C*h*x/p,T=C*-p*y/h,D=(e+s)/2+Math.cos(A)*R-Math.sin(A)*T,P=(n+i)/2+Math.sin(A)*R+Math.cos(A)*T,M=function(X){return Math.sqrt(X[0]*X[0]+X[1]*X[1])},O=function(X,he){return(X[0]*he[0]+X[1]*he[1])/(M(X)*M(he))},I=function(X,he){return(X[0]*he[1]<X[1]*he[0]?-1:1)*Math.acos(O(X,he))},V=I([1,0],[(y-R)/h,(x-T)/p]),K=[(y-R)/h,(x-T)/p],q=[(-1*y-R)/h,(-1*x-T)/p];let Y=I(K,q);return O(K,q)<=-1&&(Y=Math.PI),O(K,q)>=1&&(Y=0),d===0&&Y>0&&(Y=Y-2*Math.PI),d===1&&Y<0&&(Y=Y+2*Math.PI),[D,P,h,p,V,Y,A,d]}}wn.prototype.className="Path";wn.prototype._attrsAffectingSize=["data"];Mn(wn);ee.addGetterSetter(wn,"data");let Il=class extends $s{_sceneFunc(e){super._sceneFunc(e);const n=Math.PI*2,s=this.points();let i=s;const c=this.tension()!==0&&s.length>4;c&&(i=this.getTensionPoints());const d=this.pointerLength(),h=s.length;let p,u;if(c){const x=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],s[h-2],s[h-1]],S=wn.calcLength(i[i.length-4],i[i.length-3],"C",x),C=wn.getPointOnQuadraticBezier(Math.min(1,1-d/S),x[0],x[1],x[2],x[3],x[4],x[5]);p=s[h-2]-C.x,u=s[h-1]-C.y}else p=s[h-2]-s[h-4],u=s[h-1]-s[h-3];const A=(Math.atan2(u,p)+n)%n,y=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(s[h-2],s[h-1]),e.rotate(A),e.moveTo(0,0),e.lineTo(-d,y/2),e.lineTo(-d,-y/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(s[0],s[1]),c?(p=(i[0]+i[2])/2-s[0],u=(i[1]+i[3])/2-s[1]):(p=s[2]-s[0],u=s[3]-s[1]),e.rotate((Math.atan2(-u,-p)+n)%n),e.moveTo(0,0),e.lineTo(-d,y/2),e.lineTo(-d,-y/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){const n=this.dashEnabled();n&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),n&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),n=this.pointerWidth()/2;return{x:e.x,y:e.y-n,width:e.width,height:e.height+n*2}}};Il.prototype.className="Arrow";Mn(Il);ee.addGetterSetter(Il,"pointerLength",10,We());ee.addGetterSetter(Il,"pointerWidth",10,We());ee.addGetterSetter(Il,"pointerAtBeginning",!1);ee.addGetterSetter(Il,"pointerAtEnding",!0);class Du extends Fe{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}}Du.prototype._centroid=!0;Du.prototype.className="Circle";Du.prototype._attrsAffectingSize=["radius"];Mn(Du);ee.addGetterSetter(Du,"radius",0,We());let Ho=class extends Fe{_sceneFunc(e){const n=this.radiusX(),s=this.radiusY();e.beginPath(),e.save(),n!==s&&e.scale(1,s/n),e.arc(0,0,n,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}};Ho.prototype.className="Ellipse";Ho.prototype._centroid=!0;Ho.prototype._attrsAffectingSize=["radiusX","radiusY"];Mn(Ho);ee.addComponentsGetterSetter(Ho,"radius",["x","y"]);ee.addGetterSetter(Ho,"radiusX",0,We());ee.addGetterSetter(Ho,"radiusY",0,We());let Fi=class Hx extends Fe{constructor(e){super(e),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",n=>{this._removeImageLoad(n.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const e=this.image();e&&e.complete||e&&e.readyState===4||e&&e.addEventListener&&e.addEventListener("load",this._loadListener)}_removeImageLoad(e){e&&e.removeEventListener&&e.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){const e=!!this.cornerRadius(),n=this.hasShadow();return e&&n?!0:super._useBufferCanvas(!0)}_sceneFunc(e){const n=this.getWidth(),s=this.getHeight(),i=this.cornerRadius(),c=this.attrs.image;let d;if(c){const h=this.attrs.cropWidth,p=this.attrs.cropHeight;h&&p?d=[c,this.cropX(),this.cropY(),h,p,0,0,n,s]:d=[c,0,0,n,s]}(this.hasFill()||this.hasStroke()||i)&&(e.beginPath(),i?pe.drawRoundedRectPath(e,n,s,i):e.rect(0,0,n,s),e.closePath(),e.fillStrokeShape(this)),c&&(i&&e.clip(),e.drawImage.apply(e,d))}_hitFunc(e){const n=this.width(),s=this.height(),i=this.cornerRadius();e.beginPath(),i?pe.drawRoundedRectPath(e,n,s,i):e.rect(0,0,n,s),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,n,s;return(s=(e=this.attrs.width)!==null&&e!==void 0?e:(n=this.image())===null||n===void 0?void 0:n.width)!==null&&s!==void 0?s:0}getHeight(){var e,n,s;return(s=(e=this.attrs.height)!==null&&e!==void 0?e:(n=this.image())===null||n===void 0?void 0:n.height)!==null&&s!==void 0?s:0}static fromURL(e,n,s=null){const i=pe.createImageElement();i.onload=function(){const c=new Hx({image:i});n(c)},i.onerror=s,i.crossOrigin="Anonymous",i.src=e}};Fi.prototype.className="Image";Fi.prototype._attrsAffectingSize=["image"];Mn(Fi);ee.addGetterSetter(Fi,"cornerRadius",0,fA(4));ee.addGetterSetter(Fi,"image");ee.addComponentsGetterSetter(Fi,"crop",["x","y","width","height"]);ee.addGetterSetter(Fi,"cropX",0,We());ee.addGetterSetter(Fi,"cropY",0,We());ee.addGetterSetter(Fi,"cropWidth",0,We());ee.addGetterSetter(Fi,"cropHeight",0,We());const Wx=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],yw="Change.konva",xw="none",kg="up",Ng="right",Bg="down",Pg="left",bw=Wx.length;class Kg extends Tu{constructor(e){super(e),this.on("add.konva",function(n){this._addListeners(n.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){let n=this,s;const i=function(){n._sync()};for(s=0;s<bw;s++)e.on(Wx[s]+yw,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let e=this.getText(),n=this.getTag(),s,i,c,d,h,p,u;if(e&&n){switch(s=e.width(),i=e.height(),c=n.pointerDirection(),d=n.pointerWidth(),u=n.pointerHeight(),h=0,p=0,c){case kg:h=s/2,p=-1*u;break;case Ng:h=s+d,p=i/2;break;case Bg:h=s/2,p=i+u;break;case Pg:h=-1*d,p=i/2;break}n.setAttrs({x:-1*h,y:-1*p,width:s,height:i}),e.setAttrs({x:-1*h,y:-1*p})}}}Kg.prototype.className="Label";Mn(Kg);class Ol extends Fe{_sceneFunc(e){const n=this.width(),s=this.height(),i=this.pointerDirection(),c=this.pointerWidth(),d=this.pointerHeight(),h=this.cornerRadius();let p=0,u=0,A=0,y=0;typeof h=="number"?p=u=A=y=Math.min(h,n/2,s/2):(p=Math.min(h[0]||0,n/2,s/2),u=Math.min(h[1]||0,n/2,s/2),y=Math.min(h[2]||0,n/2,s/2),A=Math.min(h[3]||0,n/2,s/2)),e.beginPath(),e.moveTo(p,0),i===kg&&(e.lineTo((n-c)/2,0),e.lineTo(n/2,-1*d),e.lineTo((n+c)/2,0)),e.lineTo(n-u,0),e.arc(n-u,u,u,Math.PI*3/2,0,!1),i===Ng&&(e.lineTo(n,(s-d)/2),e.lineTo(n+c,s/2),e.lineTo(n,(s+d)/2)),e.lineTo(n,s-y),e.arc(n-y,s-y,y,0,Math.PI/2,!1),i===Bg&&(e.lineTo((n+c)/2,s),e.lineTo(n/2,s+d),e.lineTo((n-c)/2,s)),e.lineTo(A,s),e.arc(A,s-A,A,Math.PI/2,Math.PI,!1),i===Pg&&(e.lineTo(0,(s+d)/2),e.lineTo(-1*c,s/2),e.lineTo(0,(s-d)/2)),e.lineTo(0,p),e.arc(p,p,p,Math.PI,Math.PI*3/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){let e=0,n=0,s=this.pointerWidth(),i=this.pointerHeight(),c=this.pointerDirection(),d=this.width(),h=this.height();return c===kg?(n-=i,h+=i):c===Bg?h+=i:c===Pg?(e-=s*1.5,d+=s):c===Ng&&(d+=s*1.5),{x:e,y:n,width:d,height:h}}}Ol.prototype.className="Tag";Mn(Ol);ee.addGetterSetter(Ol,"pointerDirection",xw);ee.addGetterSetter(Ol,"pointerWidth",0,We());ee.addGetterSetter(Ol,"pointerHeight",0,We());ee.addGetterSetter(Ol,"cornerRadius",0,fA(4));let kf=class extends Fe{_sceneFunc(e){const n=this.cornerRadius(),s=this.width(),i=this.height();e.beginPath(),n?pe.drawRoundedRectPath(e,s,i,n):e.rect(0,0,s,i),e.closePath(),e.fillStrokeShape(this)}};kf.prototype.className="Rect";Mn(kf);ee.addGetterSetter(kf,"cornerRadius",0,fA(4));class Wo extends Fe{_sceneFunc(e){const n=this._getPoints(),s=this.radius(),i=this.sides(),c=this.cornerRadius();if(e.beginPath(),c)pe.drawRoundedPolygonPath(e,n,i,s,c);else{e.moveTo(n[0].x,n[0].y);for(let d=1;d<n.length;d++)e.lineTo(n[d].x,n[d].y)}e.closePath(),e.fillStrokeShape(this)}_getPoints(){const e=this.attrs.sides,n=this.attrs.radius||0,s=[];for(let i=0;i<e;i++)s.push({x:n*Math.sin(i*2*Math.PI/e),y:-1*n*Math.cos(i*2*Math.PI/e)});return s}getSelfRect(){const e=this._getPoints();let n=e[0].x,s=e[0].x,i=e[0].y,c=e[0].y;return e.forEach(d=>{n=Math.min(n,d.x),s=Math.max(s,d.x),i=Math.min(i,d.y),c=Math.max(c,d.y)}),{x:n,y:i,width:s-n,height:c-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}Wo.prototype.className="RegularPolygon";Wo.prototype._centroid=!0;Wo.prototype._attrsAffectingSize=["radius"];Mn(Wo);ee.addGetterSetter(Wo,"radius",0,We());ee.addGetterSetter(Wo,"sides",0,We());ee.addGetterSetter(Wo,"cornerRadius",0,fA(4));const C2=Math.PI*2;class Ul extends Fe{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,C2,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),C2,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}Ul.prototype.className="Ring";Ul.prototype._centroid=!0;Ul.prototype._attrsAffectingSize=["innerRadius","outerRadius"];Mn(Ul);ee.addGetterSetter(Ul,"innerRadius",0,We());ee.addGetterSetter(Ul,"outerRadius",0,We());class hs extends Fe{constructor(e){super(e),this._updated=!0,this.anim=new pi(()=>{const n=this._updated;return this._updated=!1,n}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){const n=this.animation(),s=this.frameIndex(),i=s*4,c=this.animations()[n],d=this.frameOffsets(),h=c[i+0],p=c[i+1],u=c[i+2],A=c[i+3],y=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,u,A),e.closePath(),e.fillStrokeShape(this)),y)if(d){const x=d[n],S=s*2;e.drawImage(y,h,p,u,A,x[S+0],x[S+1],u,A)}else e.drawImage(y,h,p,u,A,0,0,u,A)}_hitFunc(e){const n=this.animation(),s=this.frameIndex(),i=s*4,c=this.animations()[n],d=this.frameOffsets(),h=c[i+2],p=c[i+3];if(e.beginPath(),d){const u=d[n],A=s*2;e.rect(u[A+0],u[A+1],h,p)}else e.rect(0,0,h,p);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const e=this.frameIndex(),n=this.animation(),s=this.animations(),i=s[n],c=i.length/4;e<c-1?this.frameIndex(e+1):this.frameIndex(0)}}hs.prototype.className="Sprite";Mn(hs);ee.addGetterSetter(hs,"animation");ee.addGetterSetter(hs,"animations");ee.addGetterSetter(hs,"frameOffsets");ee.addGetterSetter(hs,"image");ee.addGetterSetter(hs,"frameIndex",0,We());ee.addGetterSetter(hs,"frameRate",17,We());ee.backCompat(hs,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class Xo extends Fe{_sceneFunc(e){const n=this.innerRadius(),s=this.outerRadius(),i=this.numPoints();e.beginPath(),e.moveTo(0,0-s);for(let c=1;c<i*2;c++){const d=c%2===0?s:n,h=d*Math.sin(c*Math.PI/i),p=-1*d*Math.cos(c*Math.PI/i);e.lineTo(h,p)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}Xo.prototype.className="Star";Xo.prototype._centroid=!0;Xo.prototype._attrsAffectingSize=["innerRadius","outerRadius"];Mn(Xo);ee.addGetterSetter(Xo,"numPoints",5,We());ee.addGetterSetter(Xo,"innerRadius",0,We());ee.addGetterSetter(Xo,"outerRadius",0,We());function Fo(t){return[...t].reduce((e,n,s,i)=>{if(new RegExp("\\p{Emoji}","u").test(n)){const c=i[s+1];c&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(c)?(e.push(n+c),i[s+1]=""):e.push(n)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(n+(i[s+1]||""))?e.push(n+i[s+1]):s>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(n)?e[e.length-1]+=n:n&&e.push(n);return e},[])}const gu="auto",Sw="center",Xx="inherit",cf="justify",Cw="Change.konva",ww="2d",w2="-",Qx="left",_w="text",Ew="Text",Rw="top",Tw="bottom",_2="middle",Yx="normal",Dw="px ",Gp=" ",Lw="right",E2="rtl",kw="word",Nw="char",R2="none",ng="…",Vx=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Bw=Vx.length;function Pw(t){return t.split(",").map(e=>{e=e.trim();const n=e.indexOf(" ")>=0,s=e.indexOf('"')>=0||e.indexOf("'")>=0;return n&&!s&&(e=`"${e}"`),e}).join(", ")}let Hp;function rg(){return Hp||(Hp=pe.createCanvasElement().getContext(ww),Hp)}function Mw(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function zw(t){t.setAttr("miterLimit",2),t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Fw(t){return t=t||{},!t.fillLinearGradientColorStops&&!t.fillRadialGradientColorStops&&!t.fillPatternImage&&(t.fill=t.fill||"black"),t}let _n=class extends Fe{constructor(e){super(Fw(e)),this._partialTextX=0,this._partialTextY=0;for(let n=0;n<Bw;n++)this.on(Vx[n]+Cw,this._setTextData);this._setTextData()}_sceneFunc(e){var n,s;const i=this.textArr,c=i.length;if(!this.text())return;let d=this.padding(),h=this.fontSize(),p=this.lineHeight()*h,u=this.verticalAlign(),A=this.direction(),y=0,x=this.align(),S=this.getWidth(),C=this.letterSpacing(),R=this.charRenderFunc(),T=this.fill(),D=this.textDecoration(),P=this.underlineOffset(),M=D.indexOf("underline")!==-1,O=D.indexOf("line-through")!==-1,I;A=A===Xx?e.direction:A;let V=p/2,K=_2;if(!Qe.legacyTextRendering){const q=this.measureSize("M");K="alphabetic";const Y=(n=q.fontBoundingBoxAscent)!==null&&n!==void 0?n:q.actualBoundingBoxAscent,X=(s=q.fontBoundingBoxDescent)!==null&&s!==void 0?s:q.actualBoundingBoxDescent;V=(Y-X)/2+p/2}for(A===E2&&e.setAttr("direction",A),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",K),e.setAttr("textAlign",Qx),u===_2?y=(this.getHeight()-c*p-d*2)/2:u===Tw&&(y=this.getHeight()-c*p-d*2),e.translate(d,y+d),I=0;I<c;I++){let q=0,Y=0;const X=i[I],he=X.text,G=X.width,te=X.lastInParagraph;if(e.save(),x===Lw?q+=S-G-d*2:x===Sw&&(q+=(S-G-d*2)/2),M){e.save(),e.beginPath();const ne=P??(Qe.legacyTextRendering?Math.round(h/2):Math.round(h/4)),le=q,Ae=V+Y+ne;e.moveTo(le,Ae);const re=x===cf&&!te?S-d*2:G;e.lineTo(le+Math.round(re),Ae),e.lineWidth=h/15;const ie=this._getLinearGradient();e.strokeStyle=ie||T,e.stroke(),e.restore()}const L=q;if(A!==E2&&(C!==0||x===cf||R)){const ne=he.split(" ").length-1,le=Fo(he);for(let Ae=0;Ae<le.length;Ae++){const re=le[Ae];if(re===" "&&!te&&x===cf&&(q+=(S-d*2-G)/ne),this._partialTextX=q,this._partialTextY=V+Y,this._partialText=re,R){e.save();const ae=i.slice(0,I).reduce(($,Ee)=>$+Fo(Ee.text).length,0),H=Ae+ae;R({char:re,index:H,x:q,y:V+Y,lineIndex:I,column:Ae,isLastInLine:te,width:this.measureSize(re).width,context:e})}e.fillStrokeShape(this),R&&e.restore(),q+=this.measureSize(re).width+C}}else C!==0&&e.setAttr("letterSpacing",`${C}px`),this._partialTextX=q,this._partialTextY=V+Y,this._partialText=he,e.fillStrokeShape(this);if(O){e.save(),e.beginPath();const ne=Qe.legacyTextRendering?0:-Math.round(h/4),le=L;e.moveTo(le,V+Y+ne);const Ae=x===cf&&!te?S-d*2:G;e.lineTo(le+Math.round(Ae),V+Y+ne),e.lineWidth=h/15;const re=this._getLinearGradient();e.strokeStyle=re||T,e.stroke(),e.restore()}e.restore(),c>1&&(V+=p)}}_hitFunc(e){const n=this.getWidth(),s=this.getHeight();e.beginPath(),e.rect(0,0,n,s),e.closePath(),e.fillStrokeShape(this)}setText(e){const n=pe._isString(e)?e:e==null?"":e+"";return this._setAttr(_w,n),this}getWidth(){return this.attrs.width===gu||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===gu||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return pe.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var n,s,i,c,d,h,p,u,A,y,x;let S=rg(),C=this.fontSize(),R;S.save(),S.font=this._getContextFont(),R=S.measureText(e),S.restore();const T=C/100;return{actualBoundingBoxAscent:(n=R.actualBoundingBoxAscent)!==null&&n!==void 0?n:71.58203125*T,actualBoundingBoxDescent:(s=R.actualBoundingBoxDescent)!==null&&s!==void 0?s:0,actualBoundingBoxLeft:(i=R.actualBoundingBoxLeft)!==null&&i!==void 0?i:-7.421875*T,actualBoundingBoxRight:(c=R.actualBoundingBoxRight)!==null&&c!==void 0?c:75.732421875*T,alphabeticBaseline:(d=R.alphabeticBaseline)!==null&&d!==void 0?d:0,emHeightAscent:(h=R.emHeightAscent)!==null&&h!==void 0?h:100*T,emHeightDescent:(p=R.emHeightDescent)!==null&&p!==void 0?p:-20*T,fontBoundingBoxAscent:(u=R.fontBoundingBoxAscent)!==null&&u!==void 0?u:91*T,fontBoundingBoxDescent:(A=R.fontBoundingBoxDescent)!==null&&A!==void 0?A:21*T,hangingBaseline:(y=R.hangingBaseline)!==null&&y!==void 0?y:72.80000305175781*T,ideographicBaseline:(x=R.ideographicBaseline)!==null&&x!==void 0?x:-21*T,width:R.width,height:C}}_getContextFont(){return this.fontStyle()+Gp+this.fontVariant()+Gp+(this.fontSize()+Dw)+Pw(this.fontFamily())}_addTextLine(e){this.align()===cf&&(e=e.trim());const s=this._getTextWidth(e);return this.textArr.push({text:e,width:s,lastInParagraph:!1})}_getTextWidth(e){const n=this.letterSpacing(),s=e.length;return rg().measureText(e).width+n*s}_setTextData(){let e=this.text().split(`
|
|
277
|
-
`),n=+this.fontSize(),s=0,i=this.lineHeight()*n,c=this.attrs.width,d=this.attrs.height,h=c!==gu&&c!==void 0,p=d!==gu&&d!==void 0,u=this.padding(),A=c-u*2,y=d-u*2,x=0,S=this.wrap(),C=S!==R2,R=S!==Nw&&C,T=this.ellipsis();this.textArr=[],rg().font=this._getContextFont();const D=T?this._getTextWidth(ng):0;for(let P=0,M=e.length;P<M;++P){let O=e[P],I=this._getTextWidth(O);if(h&&I>A)for(;O.length>0;){let V=0,K=Fo(O).length,q="",Y=0;for(;V<K;){const X=V+K>>>1,he=Fo(O),G=he.slice(0,X+1).join(""),te=this._getTextWidth(G);(T&&p&&x+i>y?te+D:te)<=A?(V=X+1,q=G,Y=te):K=X}if(q){if(R){const G=Fo(O),te=Fo(q),L=G[te.length],ne=L===Gp||L===w2;let le;if(ne&&Y<=A)le=te.length;else{const Ae=te.lastIndexOf(Gp),re=te.lastIndexOf(w2);le=Math.max(Ae,re)+1}le>0&&(V=le,q=G.slice(0,V).join(""),Y=this._getTextWidth(q))}if(q=q.trimRight(),this._addTextLine(q),s=Math.max(s,Y),x+=i,this._shouldHandleEllipsis(x)){this._tryToAddEllipsisToLastLine();break}if(O=Fo(O).slice(V).join("").trimLeft(),O.length>0&&(I=this._getTextWidth(O),I<=A)){this._addTextLine(O),x+=i,s=Math.max(s,I);break}}else break}else this._addTextLine(O),x+=i,s=Math.max(s,I),this._shouldHandleEllipsis(x)&&P<M-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),p&&x+i>y)break}this.textHeight=n,this.textWidth=s}_shouldHandleEllipsis(e){const n=+this.fontSize(),s=this.lineHeight()*n,i=this.attrs.height,c=i!==gu&&i!==void 0,d=this.padding(),h=i-d*2;return!(this.wrap()!==R2)||c&&e+s>h}_tryToAddEllipsisToLastLine(){const e=this.attrs.width,n=e!==gu&&e!==void 0,s=this.padding(),i=e-s*2,c=this.ellipsis(),d=this.textArr[this.textArr.length-1];!d||!c||(n&&(this._getTextWidth(d.text+ng)<i||(d.text=d.text.slice(0,d.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(d.text+ng))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,n=this.hasShadow();return e&&n?!0:super._useBufferCanvas()}};_n.prototype._fillFunc=Mw;_n.prototype._strokeFunc=zw;_n.prototype.className=Ew;_n.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Mn(_n);ee.overWriteSetter(_n,"width",Yg());ee.overWriteSetter(_n,"height",Yg());ee.addGetterSetter(_n,"direction",Xx);ee.addGetterSetter(_n,"fontFamily","Arial");ee.addGetterSetter(_n,"fontSize",12,We());ee.addGetterSetter(_n,"fontStyle",Yx);ee.addGetterSetter(_n,"fontVariant",Yx);ee.addGetterSetter(_n,"padding",0,We());ee.addGetterSetter(_n,"align",Qx);ee.addGetterSetter(_n,"verticalAlign",Rw);ee.addGetterSetter(_n,"lineHeight",1,We());ee.addGetterSetter(_n,"wrap",kw);ee.addGetterSetter(_n,"ellipsis",!1,zi());ee.addGetterSetter(_n,"letterSpacing",0,We());ee.addGetterSetter(_n,"text","",zl());ee.addGetterSetter(_n,"textDecoration","");ee.addGetterSetter(_n,"underlineOffset",void 0,We());ee.addGetterSetter(_n,"charRenderFunc",void 0);const Iw="",qx="normal";function Kx(t){t.fillText(this.partialText,0,0)}function Jx(t){t.strokeText(this.partialText,0,0)}class hr extends Fe{constructor(e){super(e),this.dummyCanvas=pe.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return wn.getPathLength(this.dataArray)}_getPointAtLength(e){if(!this.attrs.data)return null;const n=this.pathLength;return e>n?null:wn.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=wn.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();const n=this.textDecoration(),s=this.fill(),i=this.fontSize(),c=this.glyphInfo,d=n.indexOf("underline")!==-1,h=n.indexOf("line-through")!==-1;d&&e.beginPath();for(let p=0;p<c.length;p++){e.save();const u=c[p].p0;e.translate(u.x,u.y),e.rotate(c[p].rotation),this.partialText=c[p].text,e.fillStrokeShape(this),d&&(p===0&&e.moveTo(0,i/2+1),e.lineTo(c[p].width,i/2+1)),e.restore()}if(d&&(e.strokeStyle=s,e.lineWidth=i/20,e.stroke()),h){e.beginPath();for(let p=0;p<c.length;p++){e.save();const u=c[p].p0;e.translate(u.x,u.y),e.rotate(c[p].rotation),p===0&&e.moveTo(0,0),e.lineTo(c[p].width,0),e.restore()}e.strokeStyle=s,e.lineWidth=i/20,e.stroke()}e.restore()}_hitFunc(e){e.beginPath();const n=this.glyphInfo;if(n.length>=1){const s=n[0].p0;e.moveTo(s.x,s.y)}for(let s=0;s<n.length;s++){const i=n[s].p1;e.lineTo(i.x,i.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return pe.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(e){return _n.prototype.setText.call(this,e)}_getContextFont(){return _n.prototype._getContextFont.call(this)}_getTextSize(e){const s=this.dummyCanvas.getContext("2d");s.save(),s.font=this._getContextFont();const i=s.measureText(e);return s.restore(),{width:i.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const e=Fo(this.text()),n=[];let s=0;for(let y=0;y<e.length;y++)n.push({char:e[y],width:this._getTextSize(e[y]).width}),s+=n[y].width;const{height:i}=this._getTextSize(this.attrs.text);if(this.textWidth=s,this.textHeight=i,this.glyphInfo=[],!this.attrs.data)return null;const c=this.letterSpacing(),d=this.align(),h=this.kerningFunc(),p=Math.max(this.textWidth+((this.attrs.text||"").length-1)*c,0);let u=0;d==="center"&&(u=Math.max(0,this.pathLength/2-p/2)),d==="right"&&(u=Math.max(0,this.pathLength-p));let A=u;for(let y=0;y<n.length;y++){const x=this._getPointAtLength(A);if(!x)return;const S=n[y].char;let C=n[y].width+c;if(S===" "&&d==="justify"){const O=this.text().split(" ").length-1;C+=(this.pathLength-p)/O}const R=this._getPointAtLength(A+C);if(!R)return;const T=wn.getLineLength(x.x,x.y,R.x,R.y);let D=0;if(h)try{D=h(n[y-1].char,S)*this.fontSize()}catch{D=0}x.x+=D,R.x+=D,this.textWidth+=D;const P=wn.getPointOnLine(D+T/2,x.x,x.y,R.x,R.y),M=Math.atan2(R.y-x.y,R.x-x.x);this.glyphInfo.push({transposeX:P.x,transposeY:P.y,text:e[y],rotation:M,p0:x,p1:R,width:T}),A+=C}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const e=[];this.glyphInfo.forEach(function(u){e.push(u.p0.x),e.push(u.p0.y),e.push(u.p1.x),e.push(u.p1.y)});let n=e[0]||0,s=e[0]||0,i=e[1]||0,c=e[1]||0,d,h;for(let u=0;u<e.length/2;u++)d=e[u*2],h=e[u*2+1],n=Math.min(n,d),s=Math.max(s,d),i=Math.min(i,h),c=Math.max(c,h);const p=this.fontSize();return{x:n-p/2,y:i-p/2,width:s-n+p,height:c-i+p}}destroy(){return pe.releaseCanvas(this.dummyCanvas),super.destroy()}}hr.prototype._fillFunc=Kx;hr.prototype._strokeFunc=Jx;hr.prototype._fillFuncHit=Kx;hr.prototype._strokeFuncHit=Jx;hr.prototype.className="TextPath";hr.prototype._attrsAffectingSize=["text","fontSize","data"];Mn(hr);ee.addGetterSetter(hr,"data");ee.addGetterSetter(hr,"fontFamily","Arial");ee.addGetterSetter(hr,"fontSize",12,We());ee.addGetterSetter(hr,"fontStyle",qx);ee.addGetterSetter(hr,"align","left");ee.addGetterSetter(hr,"letterSpacing",0,We());ee.addGetterSetter(hr,"textBaseline","middle");ee.addGetterSetter(hr,"fontVariant",qx);ee.addGetterSetter(hr,"text",Iw);ee.addGetterSetter(hr,"textDecoration","");ee.addGetterSetter(hr,"kerningFunc",void 0);const Zx="tr-konva",Ow=["resizeEnabledChange","rotateAnchorOffsetChange","rotateAnchorAngleChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(t=>t+`.${Zx}`).join(" "),T2="nodesRect",Uw=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange","draggableChange"],jw={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Gw="ontouchstart"in Qe._global;function Hw(t,e,n){if(t==="rotater")return n;e+=pe.degToRad(jw[t]||0);const s=(pe.radToDeg(e)%360+360)%360;return pe._inRange(s,315+22.5,360)||pe._inRange(s,0,22.5)?"ns-resize":pe._inRange(s,45-22.5,45+22.5)?"nesw-resize":pe._inRange(s,90-22.5,90+22.5)?"ew-resize":pe._inRange(s,135-22.5,135+22.5)?"nwse-resize":pe._inRange(s,180-22.5,180+22.5)?"ns-resize":pe._inRange(s,225-22.5,225+22.5)?"nesw-resize":pe._inRange(s,270-22.5,270+22.5)?"ew-resize":pe._inRange(s,315-22.5,315+22.5)?"nwse-resize":(pe.error("Transformer has unknown angle for cursor detection: "+s),"pointer")}const iA=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Ww(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function $x(t,e,n){const s=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),i=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return{...t,rotation:t.rotation+e,x:s,y:i}}function Xw(t,e){const n=Ww(t);return $x(t,e,n)}function Qw(t,e,n){let s=e;for(let i=0;i<t.length;i++){const c=Qe.getAngle(t[i]),d=Math.abs(c-e)%(Math.PI*2);Math.min(d,Math.PI*2-d)<n&&(s=c)}return s}let Mg=0,Kt=class extends Tu{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(Ow,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return pe.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return Zx+this._id}setNodes(e=[]){this._nodes&&this._nodes.length&&this.detach();const n=e.filter(i=>i.isAncestorOf(this)?(pe.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=e=n,e.length===1&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(i=>{const c=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()};if(i._attrsAffectingSize.length){const d=i._attrsAffectingSize.map(h=>h+"Change."+this._getEventNamespace()).join(" ");i.on(d,c)}i.on(Uw.map(d=>d+`.${this._getEventNamespace()}`).join(" "),c),i.on(`absoluteTransformChange.${this._getEventNamespace()}`,c),this._proxyDrag(i)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(e){let n;e.on(`dragstart.${this._getEventNamespace()}`,s=>{n=e.getAbsolutePosition(),!this.isDragging()&&e!==this.findOne(".back")&&this.startDrag(s,!1)}),e.on(`dragmove.${this._getEventNamespace()}`,s=>{if(!n)return;const i=e.getAbsolutePosition(),c=i.x-n.x,d=i.y-n.y;this.nodes().forEach(h=>{if(h===e||h.isDragging())return;const p=h.getAbsolutePosition();h.setAbsolutePosition({x:p.x+c,y:p.y+d}),h.startDrag(s)}),n=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(e=>{e.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(T2),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(T2,this.__getNodeRect)}__getNodeShape(e,n=this.rotation(),s){const i=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),c=e.getAbsoluteScale(s),d=e.getAbsolutePosition(s),h=i.x*c.x-e.offsetX()*c.x,p=i.y*c.y-e.offsetY()*c.y,u=(Qe.getAngle(e.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),A={x:d.x+h*Math.cos(u)+p*Math.sin(-u),y:d.y+p*Math.cos(u)+h*Math.sin(u),width:i.width*c.x,height:i.height*c.y,rotation:u};return $x(A,-Qe.getAngle(n),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const n=[];this.nodes().map(u=>{const A=u.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),y=[{x:A.x,y:A.y},{x:A.x+A.width,y:A.y},{x:A.x+A.width,y:A.y+A.height},{x:A.x,y:A.y+A.height}],x=u.getAbsoluteTransform();y.forEach(function(S){const C=x.point(S);n.push(C)})});const s=new Qa;s.rotate(-Qe.getAngle(this.rotation()));let i=1/0,c=1/0,d=-1/0,h=-1/0;n.forEach(function(u){const A=s.point(u);i===void 0&&(i=d=A.x,c=h=A.y),i=Math.min(i,A.x),c=Math.min(c,A.y),d=Math.max(d,A.x),h=Math.max(h,A.y)}),s.invert();const p=s.point({x:i,y:c});return{x:p.x,y:p.y,width:d-i,height:h-c,rotation:Qe.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),iA.forEach(e=>{this._createAnchor(e)}),this._createAnchor("rotater")}_createAnchor(e){const n=new kf({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:Gw?10:"auto"}),s=this;n.on("mousedown touchstart",function(i){s._handleMouseDown(i)}),n.on("dragstart",i=>{n.stopDrag(),i.cancelBubble=!0}),n.on("dragend",i=>{i.cancelBubble=!0}),n.on("mouseenter",()=>{const i=Qe.getAngle(this.rotation()),c=this.rotateAnchorCursor(),d=Hw(e,i,c);n.getStage().content&&(n.getStage().content.style.cursor=d),this._cursorChange=!0}),n.on("mouseout",()=>{n.getStage().content&&(n.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(n)}_createBack(){const e=new Fe({name:"back",width:0,height:0,sceneFunc(n,s){const i=s.getParent(),c=i.padding(),d=s.width(),h=s.height();if(n.beginPath(),n.rect(-c,-c,d+c*2,h+c*2),i.rotateEnabled()&&i.rotateLineVisible()){const p=i.rotateAnchorAngle(),u=i.rotateAnchorOffset(),A=pe.degToRad(p),y=Math.sin(A),x=-Math.cos(A),S=d/2,C=h/2;let R=1/0;x<0?R=Math.min(R,-C/x):x>0&&(R=Math.min(R,(h-C)/x)),y<0?R=Math.min(R,-S/y):y>0&&(R=Math.min(R,(d-S)/y));const T=S+y*R,D=C+x*R,P=pe._sign(h),M=T+y*u*P,O=D+x*u*P;n.moveTo(T,D),n.lineTo(M,O)}n.fillStrokeShape(s)},hitFunc:(n,s)=>{if(!this.shouldOverdrawWholeArea())return;const i=this.padding();n.beginPath(),n.rect(-i,-i,s.width()+i*2,s.height()+i*2),n.fillStrokeShape(s)}});this.add(e),this._proxyDrag(e),e.on("dragstart",n=>{n.cancelBubble=!0}),e.on("dragmove",n=>{n.cancelBubble=!0}),e.on("dragend",n=>{n.cancelBubble=!0}),this.on("dragmove",n=>{this.update()})}_handleMouseDown(e){if(this._transforming)return;this._movingAnchorName=e.target.name().split(" ")[0];const n=this._getNodeRect(),s=n.width,i=n.height,c=Math.sqrt(Math.pow(s,2)+Math.pow(i,2));this.sin=Math.abs(i/c),this.cos=Math.abs(s/c),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const d=e.target.getAbsolutePosition(),h=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:h.x-d.x,y:h.y-d.y},Mg++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach(p=>{p._fire("transformstart",{evt:e.evt,target:p})})}_handleMouseMove(e){let n,s,i;const c=this.findOne("."+this._movingAnchorName),d=c.getStage();d.setPointersPositions(e);const h=d.getPointerPosition();let p={x:h.x-this._anchorDragOffset.x,y:h.y-this._anchorDragOffset.y};const u=c.getAbsolutePosition();this.anchorDragBoundFunc()&&(p=this.anchorDragBoundFunc()(u,p,e)),c.setAbsolutePosition(p);const A=c.getAbsolutePosition();if(u.x===A.x&&u.y===A.y)return;if(this._movingAnchorName==="rotater"){const P=this._getNodeRect();n=c.x()-P.width/2,s=-c.y()+P.height/2;const M=Qe.getAngle(this.rotateAnchorAngle());let O=Math.atan2(-s,n)+Math.PI/2-M;P.height<0&&(O-=Math.PI);const V=Qe.getAngle(this.rotation())+O,K=Qe.getAngle(this.rotationSnapTolerance()),Y=Qw(this.rotationSnaps(),V,K)-P.rotation,X=Xw(P,Y);this._fitNodesInto(X,e);return}const y=this.shiftBehavior();let x;y==="inverted"?x=this.keepRatio()&&!e.shiftKey:y==="none"?x=this.keepRatio():x=this.keepRatio()||e.shiftKey;let S=this.centeredScaling()||e.altKey;if(this._movingAnchorName==="top-left"){if(x){const P=S?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(P.x-c.x(),2)+Math.pow(P.y-c.y(),2));const M=this.findOne(".top-left").x()>P.x?-1:1,O=this.findOne(".top-left").y()>P.y?-1:1;n=i*this.cos*M,s=i*this.sin*O,this.findOne(".top-left").x(P.x-n),this.findOne(".top-left").y(P.y-s)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(c.y());else if(this._movingAnchorName==="top-right"){if(x){const P=S?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(c.x()-P.x,2)+Math.pow(P.y-c.y(),2));const M=this.findOne(".top-right").x()<P.x?-1:1,O=this.findOne(".top-right").y()>P.y?-1:1;n=i*this.cos*M,s=i*this.sin*O,this.findOne(".top-right").x(P.x+n),this.findOne(".top-right").y(P.y-s)}var C=c.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(c.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(c.x());else if(this._movingAnchorName==="bottom-left"){if(x){const P=S?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(P.x-c.x(),2)+Math.pow(c.y()-P.y,2));const M=P.x<c.x()?-1:1,O=c.y()<P.y?-1:1;n=i*this.cos*M,s=i*this.sin*O,c.x(P.x-n),c.y(P.y+s)}C=c.position(),this.findOne(".top-left").x(C.x),this.findOne(".bottom-right").y(C.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(c.y());else if(this._movingAnchorName==="bottom-right"){if(x){const P=S?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(c.x()-P.x,2)+Math.pow(c.y()-P.y,2));const M=this.findOne(".bottom-right").x()<P.x?-1:1,O=this.findOne(".bottom-right").y()<P.y?-1:1;n=i*this.cos*M,s=i*this.sin*O,this.findOne(".bottom-right").x(P.x+n),this.findOne(".bottom-right").y(P.y+s)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(S=this.centeredScaling()||e.altKey,S){const P=this.findOne(".top-left"),M=this.findOne(".bottom-right"),O=P.x(),I=P.y(),V=this.getWidth()-M.x(),K=this.getHeight()-M.y();M.move({x:-O,y:-I}),P.move({x:V,y:K})}const R=this.findOne(".top-left").getAbsolutePosition();n=R.x,s=R.y;const T=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),D=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:n,y:s,width:T,height:D,rotation:Qe.getAngle(this.rotation())},e)}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var n;if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const s=this.getNode();Mg--,this._fire("transformend",{evt:e,target:s}),(n=this.getLayer())===null||n===void 0||n.batchDraw(),s&&this._nodes.forEach(i=>{var c;i._fire("transformend",{evt:e,target:i}),(c=i.getLayer())===null||c===void 0||c.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(e,n){const s=this._getNodeRect(),i=1;if(pe._inRange(e.width,-this.padding()*2-i,i)){this.update();return}if(pe._inRange(e.height,-this.padding()*2-i,i)){this.update();return}const c=new Qa;if(c.rotate(Qe.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const x=c.point({x:-this.padding()*2,y:0});e.x+=x.x,e.y+=x.y,e.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=x.x,this._anchorDragOffset.y-=x.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const x=c.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=x.x,this._anchorDragOffset.y-=x.y,e.width+=this.padding()*2}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const x=c.point({x:0,y:-this.padding()*2});e.x+=x.x,e.y+=x.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=x.x,this._anchorDragOffset.y-=x.y,e.height+=this.padding()*2}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const x=c.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=x.x,this._anchorDragOffset.y-=x.y,e.height+=this.padding()*2}if(this.boundBoxFunc()){const x=this.boundBoxFunc()(s,e);x?e=x:pe.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const d=1e7,h=new Qa;h.translate(s.x,s.y),h.rotate(s.rotation),h.scale(s.width/d,s.height/d);const p=new Qa,u=e.width/d,A=e.height/d;this.flipEnabled()===!1?(p.translate(e.x,e.y),p.rotate(e.rotation),p.translate(e.width<0?e.width:0,e.height<0?e.height:0),p.scale(Math.abs(u),Math.abs(A))):(p.translate(e.x,e.y),p.rotate(e.rotation),p.scale(u,A));const y=p.multiply(h.invert());this._nodes.forEach(x=>{var S;if(!x.getStage())return;const C=x.getParent().getAbsoluteTransform(),R=x.getTransform().copy();R.translate(x.offsetX(),x.offsetY());const T=new Qa;T.multiply(C.copy().invert()).multiply(y).multiply(C).multiply(R);const D=T.decompose();x.setAttrs(D),(S=x.getLayer())===null||S===void 0||S.batchDraw()}),this.rotation(pe._getRotation(e.rotation)),this._nodes.forEach(x=>{this._fire("transform",{evt:n,target:x}),x._fire("transform",{evt:n,target:x})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,n){this.findOne(e).setAttrs(n)}update(){var e;const n=this._getNodeRect();this.rotation(pe._getRotation(n.rotation));const s=n.width,i=n.height,c=this.enabledAnchors(),d=this.resizeEnabled(),h=this.padding(),p=this.anchorSize(),u=this.find("._anchor");u.forEach(V=>{V.setAttrs({width:p,height:p,offsetX:p/2,offsetY:p/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:p/2+h,offsetY:p/2+h,visible:d&&c.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:s/2,y:0,offsetY:p/2+h,visible:d&&c.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:s,y:0,offsetX:p/2-h,offsetY:p/2+h,visible:d&&c.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:p/2+h,visible:d&&c.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:s,y:i/2,offsetX:p/2-h,visible:d&&c.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:p/2+h,offsetY:p/2-h,visible:d&&c.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:s/2,y:i,offsetY:p/2-h,visible:d&&c.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:s,y:i,offsetX:p/2-h,offsetY:p/2-h,visible:d&&c.indexOf("bottom-right")>=0});const A=this.rotateAnchorAngle(),y=this.rotateAnchorOffset(),x=pe.degToRad(A),S=Math.sin(x),C=-Math.cos(x),R=s/2,T=i/2;let D=1/0;C<0?D=Math.min(D,-T/C):C>0&&(D=Math.min(D,(i-T)/C)),S<0?D=Math.min(D,-R/S):S>0&&(D=Math.min(D,(s-R)/S));const P=R+S*D,M=T+C*D,O=pe._sign(i);this._batchChangeChild(".rotater",{x:P+S*y*O,y:M+C*y*O-h*C,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:s,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),draggable:this.nodes().some(V=>V.draggable()),x:0,y:0});const I=this.anchorStyleFunc();I&&u.forEach(V=>{I(V)}),(e=this.getLayer())===null||e===void 0||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),Tu.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Ge.prototype.toObject.call(this)}clone(e){return Ge.prototype.clone.call(this,e)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}};Kt.isTransforming=()=>Mg>0;function Yw(t){return t instanceof Array||pe.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(e){iA.indexOf(e)===-1&&pe.warn("Unknown anchor name: "+e+". Available names are: "+iA.join(", "))}),t||[]}Kt.prototype.className="Transformer";Mn(Kt);ee.addGetterSetter(Kt,"enabledAnchors",iA,Yw);ee.addGetterSetter(Kt,"flipEnabled",!0,zi());ee.addGetterSetter(Kt,"resizeEnabled",!0);ee.addGetterSetter(Kt,"anchorSize",10,We());ee.addGetterSetter(Kt,"rotateEnabled",!0);ee.addGetterSetter(Kt,"rotateLineVisible",!0);ee.addGetterSetter(Kt,"rotationSnaps",[]);ee.addGetterSetter(Kt,"rotateAnchorOffset",50,We());ee.addGetterSetter(Kt,"rotateAnchorAngle",0,We());ee.addGetterSetter(Kt,"rotateAnchorCursor","crosshair");ee.addGetterSetter(Kt,"rotationSnapTolerance",5,We());ee.addGetterSetter(Kt,"borderEnabled",!0);ee.addGetterSetter(Kt,"anchorStroke","rgb(0, 161, 255)");ee.addGetterSetter(Kt,"anchorStrokeWidth",1,We());ee.addGetterSetter(Kt,"anchorFill","white");ee.addGetterSetter(Kt,"anchorCornerRadius",0,We());ee.addGetterSetter(Kt,"borderStroke","rgb(0, 161, 255)");ee.addGetterSetter(Kt,"borderStrokeWidth",1,We());ee.addGetterSetter(Kt,"borderDash");ee.addGetterSetter(Kt,"keepRatio",!0);ee.addGetterSetter(Kt,"shiftBehavior","default");ee.addGetterSetter(Kt,"centeredScaling",!1);ee.addGetterSetter(Kt,"ignoreStroke",!1);ee.addGetterSetter(Kt,"padding",0,We());ee.addGetterSetter(Kt,"nodes");ee.addGetterSetter(Kt,"node");ee.addGetterSetter(Kt,"boundBoxFunc");ee.addGetterSetter(Kt,"anchorDragBoundFunc");ee.addGetterSetter(Kt,"anchorStyleFunc");ee.addGetterSetter(Kt,"shouldOverdrawWholeArea",!1);ee.addGetterSetter(Kt,"useSingleNodeRotation",!0);ee.backCompat(Kt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class eo extends Fe{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,Qe.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}eo.prototype.className="Wedge";eo.prototype._centroid=!0;eo.prototype._attrsAffectingSize=["radius"];Mn(eo);ee.addGetterSetter(eo,"radius",0,We());ee.addGetterSetter(eo,"angle",0,We());ee.addGetterSetter(eo,"clockwise",!1);ee.backCompat(eo,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});function D2(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const Vw=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],qw=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Kw(t,e){const n=t.data,s=t.width,i=t.height;let c,d,h,p,u,A,y,x,S,C,R,T,D,P,M,O,I,V,K,q;const Y=e+e+1,X=s-1,he=i-1,G=e+1,te=G*(G+1)/2,L=new D2,ne=Vw[e],le=qw[e];let Ae=null,re=L,ie=null,ae=null;for(let H=1;H<Y;H++)re=re.next=new D2,H===G&&(Ae=re);re.next=L,h=d=0;for(let H=0;H<i;H++){T=D=P=M=p=u=A=y=0,x=G*(O=n[d]),S=G*(I=n[d+1]),C=G*(V=n[d+2]),R=G*(K=n[d+3]),p+=te*O,u+=te*I,A+=te*V,y+=te*K,re=L;for(let $=0;$<G;$++)re.r=O,re.g=I,re.b=V,re.a=K,re=re.next;for(let $=1;$<G;$++)c=d+((X<$?X:$)<<2),p+=(re.r=O=n[c])*(q=G-$),u+=(re.g=I=n[c+1])*q,A+=(re.b=V=n[c+2])*q,y+=(re.a=K=n[c+3])*q,T+=O,D+=I,P+=V,M+=K,re=re.next;ie=L,ae=Ae;for(let $=0;$<s;$++)n[d+3]=K=y*ne>>le,K!==0?(K=255/K,n[d]=(p*ne>>le)*K,n[d+1]=(u*ne>>le)*K,n[d+2]=(A*ne>>le)*K):n[d]=n[d+1]=n[d+2]=0,p-=x,u-=S,A-=C,y-=R,x-=ie.r,S-=ie.g,C-=ie.b,R-=ie.a,c=h+((c=$+e+1)<X?c:X)<<2,T+=ie.r=n[c],D+=ie.g=n[c+1],P+=ie.b=n[c+2],M+=ie.a=n[c+3],p+=T,u+=D,A+=P,y+=M,ie=ie.next,x+=O=ae.r,S+=I=ae.g,C+=V=ae.b,R+=K=ae.a,T-=O,D-=I,P-=V,M-=K,ae=ae.next,d+=4;h+=s}for(let H=0;H<s;H++){D=P=M=T=u=A=y=p=0,d=H<<2,x=G*(O=n[d]),S=G*(I=n[d+1]),C=G*(V=n[d+2]),R=G*(K=n[d+3]),p+=te*O,u+=te*I,A+=te*V,y+=te*K,re=L;for(let Ee=0;Ee<G;Ee++)re.r=O,re.g=I,re.b=V,re.a=K,re=re.next;let $=s;for(let Ee=1;Ee<=e;Ee++)d=$+H<<2,p+=(re.r=O=n[d])*(q=G-Ee),u+=(re.g=I=n[d+1])*q,A+=(re.b=V=n[d+2])*q,y+=(re.a=K=n[d+3])*q,T+=O,D+=I,P+=V,M+=K,re=re.next,Ee<he&&($+=s);d=H,ie=L,ae=Ae;for(let Ee=0;Ee<i;Ee++)c=d<<2,n[c+3]=K=y*ne>>le,K>0?(K=255/K,n[c]=(p*ne>>le)*K,n[c+1]=(u*ne>>le)*K,n[c+2]=(A*ne>>le)*K):n[c]=n[c+1]=n[c+2]=0,p-=x,u-=S,A-=C,y-=R,x-=ie.r,S-=ie.g,C-=ie.b,R-=ie.a,c=H+((c=Ee+G)<he?c:he)*s<<2,p+=T+=ie.r=n[c],u+=D+=ie.g=n[c+1],A+=P+=ie.b=n[c+2],y+=M+=ie.a=n[c+3],ie=ie.next,x+=O=ae.r,S+=I=ae.g,C+=V=ae.b,R+=K=ae.a,T-=O,D-=I,P-=V,M-=K,ae=ae.next,d+=s}}const Jw=function(e){const n=Math.round(this.blurRadius());n>0&&Kw(e,n)};ee.addGetterSetter(Ge,"blurRadius",0,We(),ee.afterSetFilter);const Zw=function(t){const e=this.brightness()*255,n=t.data,s=n.length;for(let i=0;i<s;i+=4)n[i]+=e,n[i+1]+=e,n[i+2]+=e};ee.addGetterSetter(Ge,"brightness",0,We(),ee.afterSetFilter);const $w=function(t){const e=this.brightness(),n=t.data,s=n.length;for(let i=0;i<s;i+=4)n[i]=Math.min(255,n[i]*e),n[i+1]=Math.min(255,n[i+1]*e),n[i+2]=Math.min(255,n[i+2]*e)},e8=function(t){const e=Math.pow((this.contrast()+100)/100,2),n=t.data,s=n.length;let i=150,c=150,d=150;for(let h=0;h<s;h+=4)i=n[h],c=n[h+1],d=n[h+2],i/=255,i-=.5,i*=e,i+=.5,i*=255,c/=255,c-=.5,c*=e,c+=.5,c*=255,d/=255,d-=.5,d*=e,d+=.5,d*=255,i=i<0?0:i>255?255:i,c=c<0?0:c>255?255:c,d=d<0?0:d>255?255:d,n[h]=i,n[h+1]=c,n[h+2]=d};ee.addGetterSetter(Ge,"contrast",0,We(),ee.afterSetFilter);const t8=function(t){var e,n,s,i,c,d,h,p,u;const A=t.data,y=t.width,x=t.height,S=Math.min(1,Math.max(0,(n=(e=this.embossStrength)===null||e===void 0?void 0:e.call(this))!==null&&n!==void 0?n:.5)),C=Math.min(1,Math.max(0,(i=(s=this.embossWhiteLevel)===null||s===void 0?void 0:s.call(this))!==null&&i!==void 0?i:.5)),T=(h={"top-left":315,top:270,"top-right":225,right:180,"bottom-right":135,bottom:90,"bottom-left":45,left:0}[(d=(c=this.embossDirection)===null||c===void 0?void 0:c.call(this))!==null&&d!==void 0?d:"top-left"])!==null&&h!==void 0?h:315,D=!!((u=(p=this.embossBlend)===null||p===void 0?void 0:p.call(this))!==null&&u!==void 0&&u),P=S*10,M=C*255,O=T*Math.PI/180,I=Math.cos(O),V=Math.sin(O),K=128/1020*P,q=new Uint8ClampedArray(A),Y=new Float32Array(y*x);for(let L=0,ne=0;ne<A.length;ne+=4,L++)Y[L]=.2126*q[ne]+.7152*q[ne+1]+.0722*q[ne+2];const X=[-1,0,1,-2,0,2,-1,0,1],he=[-1,-2,-1,0,0,0,1,2,1],G=[-y-1,-y,-y+1,-1,0,1,y-1,y,y+1],te=L=>L<0?0:L>255?255:L;for(let L=1;L<x-1;L++)for(let ne=1;ne<y-1;ne++){const le=L*y+ne;let Ae=0,re=0;Ae+=Y[le+G[0]]*X[0],re+=Y[le+G[0]]*he[0],Ae+=Y[le+G[1]]*X[1],re+=Y[le+G[1]]*he[1],Ae+=Y[le+G[2]]*X[2],re+=Y[le+G[2]]*he[2],Ae+=Y[le+G[3]]*X[3],re+=Y[le+G[3]]*he[3],Ae+=Y[le+G[5]]*X[5],re+=Y[le+G[5]]*he[5],Ae+=Y[le+G[6]]*X[6],re+=Y[le+G[6]]*he[6],Ae+=Y[le+G[7]]*X[7],re+=Y[le+G[7]]*he[7],Ae+=Y[le+G[8]]*X[8],re+=Y[le+G[8]]*he[8];const ie=I*Ae+V*re,ae=te(M+ie*K),H=le*4;if(D){const $=ae-M;A[H]=te(q[H]+$),A[H+1]=te(q[H+1]+$),A[H+2]=te(q[H+2]+$),A[H+3]=q[H+3]}else A[H]=A[H+1]=A[H+2]=ae,A[H+3]=q[H+3]}for(let L=0;L<y;L++){let ne=L*4,le=((x-1)*y+L)*4;A[ne]=q[ne],A[ne+1]=q[ne+1],A[ne+2]=q[ne+2],A[ne+3]=q[ne+3],A[le]=q[le],A[le+1]=q[le+1],A[le+2]=q[le+2],A[le+3]=q[le+3]}for(let L=1;L<x-1;L++){let ne=L*y*4,le=(L*y+(y-1))*4;A[ne]=q[ne],A[ne+1]=q[ne+1],A[ne+2]=q[ne+2],A[ne+3]=q[ne+3],A[le]=q[le],A[le+1]=q[le+1],A[le+2]=q[le+2],A[le+3]=q[le+3]}return t};ee.addGetterSetter(Ge,"embossStrength",.5,We(),ee.afterSetFilter);ee.addGetterSetter(Ge,"embossWhiteLevel",.5,We(),ee.afterSetFilter);ee.addGetterSetter(Ge,"embossDirection","top-left",void 0,ee.afterSetFilter);ee.addGetterSetter(Ge,"embossBlend",!1,void 0,ee.afterSetFilter);function ag(t,e,n,s,i){const c=n-e,d=i-s;if(c===0)return s+d/2;if(d===0)return s;let h=(t-e)/c;return h=d*h+s,h}const n8=function(t){const e=t.data,n=e.length;let s=e[0],i=s,c,d=e[1],h=d,p,u=e[2],A=u,y;const x=this.enhance();if(x===0)return;for(let M=0;M<n;M+=4)c=e[M+0],c<s?s=c:c>i&&(i=c),p=e[M+1],p<d?d=p:p>h&&(h=p),y=e[M+2],y<u?u=y:y>A&&(A=y);i===s&&(i=255,s=0),h===d&&(h=255,d=0),A===u&&(A=255,u=0);let S,C,R,T,D,P;if(x>0)S=i+x*(255-i),C=s-x*(s-0),R=h+x*(255-h),T=d-x*(d-0),D=A+x*(255-A),P=u-x*(u-0);else{const M=(i+s)*.5;S=i+x*(i-M),C=s+x*(s-M);const O=(h+d)*.5;R=h+x*(h-O),T=d+x*(d-O);const I=(A+u)*.5;D=A+x*(A-I),P=u+x*(u-I)}for(let M=0;M<n;M+=4)e[M+0]=ag(e[M+0],s,i,C,S),e[M+1]=ag(e[M+1],d,h,T,R),e[M+2]=ag(e[M+2],u,A,P,D)};ee.addGetterSetter(Ge,"enhance",0,We(),ee.afterSetFilter);const r8=function(t){const e=t.data,n=e.length;for(let s=0;s<n;s+=4){const i=.34*e[s]+.5*e[s+1]+.16*e[s+2];e[s]=i,e[s+1]=i,e[s+2]=i}};ee.addGetterSetter(Ge,"hue",0,We(),ee.afterSetFilter);ee.addGetterSetter(Ge,"saturation",0,We(),ee.afterSetFilter);ee.addGetterSetter(Ge,"luminance",0,We(),ee.afterSetFilter);const a8=function(t){const e=t.data,n=e.length,s=1,i=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,d=this.luminance()*127,h=s*i*Math.cos(c*Math.PI/180),p=s*i*Math.sin(c*Math.PI/180),u=.299*s+.701*h+.167*p,A=.587*s-.587*h+.33*p,y=.114*s-.114*h-.497*p,x=.299*s-.299*h-.328*p,S=.587*s+.413*h+.035*p,C=.114*s-.114*h+.293*p,R=.299*s-.3*h+1.25*p,T=.587*s-.586*h-1.05*p,D=.114*s+.886*h-.2*p;let P,M,O,I;for(let V=0;V<n;V+=4)P=e[V+0],M=e[V+1],O=e[V+2],I=e[V+3],e[V+0]=u*P+A*M+y*O+d,e[V+1]=x*P+S*M+C*O+d,e[V+2]=R*P+T*M+D*O+d,e[V+3]=I},i8=function(t){const e=t.data,n=e.length,s=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,d=s*i*Math.cos(c*Math.PI/180),h=s*i*Math.sin(c*Math.PI/180),p=.299*s+.701*d+.167*h,u=.587*s-.587*d+.33*h,A=.114*s-.114*d-.497*h,y=.299*s-.299*d-.328*h,x=.587*s+.413*d+.035*h,S=.114*s-.114*d+.293*h,C=.299*s-.3*d+1.25*h,R=.587*s-.586*d-1.05*h,T=.114*s+.886*d-.2*h;for(let D=0;D<n;D+=4){const P=e[D+0],M=e[D+1],O=e[D+2],I=e[D+3];e[D+0]=p*P+u*M+A*O,e[D+1]=y*P+x*M+S*O,e[D+2]=C*P+R*M+T*O,e[D+3]=I}};ee.addGetterSetter(Ge,"hue",0,We(),ee.afterSetFilter);ee.addGetterSetter(Ge,"saturation",0,We(),ee.afterSetFilter);ee.addGetterSetter(Ge,"value",0,We(),ee.afterSetFilter);const s8=function(t){const e=t.data,n=e.length;for(let s=0;s<n;s+=4)e[s]=255-e[s],e[s+1]=255-e[s+1],e[s+2]=255-e[s+2]},o8=function(t,e,n){const s=t.data,i=e.data,c=t.width,d=t.height,h=n.polarCenterX||c/2,p=n.polarCenterY||d/2;let u=Math.sqrt(h*h+p*p),A=c-h,y=d-p;const x=Math.sqrt(A*A+y*y);u=x>u?x:u;const S=d,C=c,R=360/C*Math.PI/180;for(let T=0;T<C;T+=1){const D=Math.sin(T*R),P=Math.cos(T*R);for(let M=0;M<S;M+=1){A=Math.floor(h+u*M/S*P),y=Math.floor(p+u*M/S*D);let O=(y*c+A)*4;const I=s[O+0],V=s[O+1],K=s[O+2],q=s[O+3];O=(T+M*c)*4,i[O+0]=I,i[O+1]=V,i[O+2]=K,i[O+3]=q}}},l8=function(t,e,n){const s=t.data,i=e.data,c=t.width,d=t.height,h=n.polarCenterX||c/2,p=n.polarCenterY||d/2;let u=Math.sqrt(h*h+p*p),A=c-h,y=d-p;const x=Math.sqrt(A*A+y*y);u=x>u?x:u;const S=d,C=c,R=0;let T,D;for(A=0;A<c;A+=1)for(y=0;y<d;y+=1){const P=A-h,M=y-p,O=Math.sqrt(P*P+M*M)*S/u;let I=(Math.atan2(M,P)*180/Math.PI+360+R)%360;I=I*C/360,T=Math.floor(I),D=Math.floor(O);let V=(D*c+T)*4;const K=s[V+0],q=s[V+1],Y=s[V+2],X=s[V+3];V=(y*c+A)*4,i[V+0]=K,i[V+1]=q,i[V+2]=Y,i[V+3]=X}},c8=function(t){const e=t.width,n=t.height;let s,i,c,d,h,p,u,A,y,x,S=Math.round(this.kaleidoscopePower());const C=Math.round(this.kaleidoscopeAngle()),R=Math.floor(e*(C%360)/360);if(S<1)return;const T=pe.createCanvasElement();T.width=e,T.height=n;const D=T.getContext("2d").getImageData(0,0,e,n);pe.releaseCanvas(T),o8(t,D,{polarCenterX:e/2,polarCenterY:n/2});let P=e/Math.pow(2,S);for(;P<=8;)P=P*2,S-=1;P=Math.ceil(P);let M=P,O=0,I=M,V=1;for(R+P>e&&(O=M,I=0,V=-1),i=0;i<n;i+=1)for(s=O;s!==I;s+=V)c=Math.round(s+R)%e,y=(e*i+c)*4,h=D.data[y+0],p=D.data[y+1],u=D.data[y+2],A=D.data[y+3],x=(e*i+s)*4,D.data[x+0]=h,D.data[x+1]=p,D.data[x+2]=u,D.data[x+3]=A;for(i=0;i<n;i+=1)for(M=Math.floor(P),d=0;d<S;d+=1){for(s=0;s<M+1;s+=1)y=(e*i+s)*4,h=D.data[y+0],p=D.data[y+1],u=D.data[y+2],A=D.data[y+3],x=(e*i+M*2-s-1)*4,D.data[x+0]=h,D.data[x+1]=p,D.data[x+2]=u,D.data[x+3]=A;M*=2}l8(D,t,{})};ee.addGetterSetter(Ge,"kaleidoscopePower",2,We(),ee.afterSetFilter);ee.addGetterSetter(Ge,"kaleidoscopeAngle",0,We(),ee.afterSetFilter);function Wp(t,e,n){let s=(n*t.width+e)*4;const i=[];return i.push(t.data[s++],t.data[s++],t.data[s++],t.data[s++]),i}function uf(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function u8(t){const e=[0,0,0];for(let n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function d8(t,e){const n=Wp(t,0,0),s=Wp(t,t.width-1,0),i=Wp(t,0,t.height-1),c=Wp(t,t.width-1,t.height-1),d=e||10;if(uf(n,s)<d&&uf(s,c)<d&&uf(c,i)<d&&uf(i,n)<d){const h=u8([s,n,c,i]),p=[];for(let u=0;u<t.width*t.height;u++){const A=uf(h,[t.data[u*4],t.data[u*4+1],t.data[u*4+2]]);p[u]=A<d?0:255}return p}}function f8(t,e){for(let n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function h8(t,e,n){const s=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(s.length)),c=Math.floor(i/2),d=[];for(let h=0;h<n;h++)for(let p=0;p<e;p++){const u=h*e+p;let A=0;for(let y=0;y<i;y++)for(let x=0;x<i;x++){const S=h+y-c,C=p+x-c;if(S>=0&&S<n&&C>=0&&C<e){const R=S*e+C,T=s[y*i+x];A+=t[R]*T}}d[u]=A===2040?255:0}return d}function p8(t,e,n){const s=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(s.length)),c=Math.floor(i/2),d=[];for(let h=0;h<n;h++)for(let p=0;p<e;p++){const u=h*e+p;let A=0;for(let y=0;y<i;y++)for(let x=0;x<i;x++){const S=h+y-c,C=p+x-c;if(S>=0&&S<n&&C>=0&&C<e){const R=S*e+C,T=s[y*i+x];A+=t[R]*T}}d[u]=A>=1020?255:0}return d}function A8(t,e,n){const s=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(s.length)),c=Math.floor(i/2),d=[];for(let h=0;h<n;h++)for(let p=0;p<e;p++){const u=h*e+p;let A=0;for(let y=0;y<i;y++)for(let x=0;x<i;x++){const S=h+y-c,C=p+x-c;if(S>=0&&S<n&&C>=0&&C<e){const R=S*e+C,T=s[y*i+x];A+=t[R]*T}}d[u]=A}return d}const m8=function(t){const e=this.threshold();let n=d8(t,e);return n&&(n=h8(n,t.width,t.height),n=p8(n,t.width,t.height),n=A8(n,t.width,t.height),f8(t,n)),t};ee.addGetterSetter(Ge,"threshold",0,We(),ee.afterSetFilter);const g8=function(t){const e=this.noise()*255,n=t.data,s=n.length,i=e/2;for(let c=0;c<s;c+=4)n[c+0]+=i-2*i*Math.random(),n[c+1]+=i-2*i*Math.random(),n[c+2]+=i-2*i*Math.random()};ee.addGetterSetter(Ge,"noise",.2,We(),ee.afterSetFilter);const v8=function(t){let e=Math.ceil(this.pixelSize()),n=t.width,s=t.height,i=Math.ceil(n/e),c=Math.ceil(s/e),d=t.data;if(e<=0){pe.error("pixelSize value can not be <= 0");return}for(let h=0;h<i;h+=1)for(let p=0;p<c;p+=1){let u=0,A=0,y=0,x=0;const S=h*e,C=S+e,R=p*e,T=R+e;let D=0;for(let P=S;P<C;P+=1)if(!(P>=n))for(let M=R;M<T;M+=1){if(M>=s)continue;const O=(n*M+P)*4;u+=d[O+0],A+=d[O+1],y+=d[O+2],x+=d[O+3],D+=1}u=u/D,A=A/D,y=y/D,x=x/D;for(let P=S;P<C;P+=1)if(!(P>=n))for(let M=R;M<T;M+=1){if(M>=s)continue;const O=(n*M+P)*4;d[O+0]=u,d[O+1]=A,d[O+2]=y,d[O+3]=x}}};ee.addGetterSetter(Ge,"pixelSize",8,We(),ee.afterSetFilter);const y8=function(t){const e=Math.round(this.levels()*254)+1,n=t.data,s=n.length,i=255/e;for(let c=0;c<s;c+=1)n[c]=Math.floor(n[c]/i)*i};ee.addGetterSetter(Ge,"levels",.5,We(),ee.afterSetFilter);const x8=function(t){const e=t.data,n=e.length,s=this.red(),i=this.green(),c=this.blue();for(let d=0;d<n;d+=4){const h=(.34*e[d]+.5*e[d+1]+.16*e[d+2])/255;e[d]=h*s,e[d+1]=h*i,e[d+2]=h*c,e[d+3]=e[d+3]}};ee.addGetterSetter(Ge,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});ee.addGetterSetter(Ge,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});ee.addGetterSetter(Ge,"blue",0,Sx,ee.afterSetFilter);const b8=function(t){const e=t.data,n=e.length,s=this.red(),i=this.green(),c=this.blue(),d=this.alpha();for(let h=0;h<n;h+=4){const p=1-d;e[h]=s*d+e[h]*p,e[h+1]=i*d+e[h+1]*p,e[h+2]=c*d+e[h+2]*p}};ee.addGetterSetter(Ge,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});ee.addGetterSetter(Ge,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});ee.addGetterSetter(Ge,"blue",0,Sx,ee.afterSetFilter);ee.addGetterSetter(Ge,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t});const S8=function(t){const e=t.data,n=e.length;for(let s=0;s<n;s+=4){const i=e[s+0],c=e[s+1],d=e[s+2];e[s+0]=Math.min(255,i*.393+c*.769+d*.189),e[s+1]=Math.min(255,i*.349+c*.686+d*.168),e[s+2]=Math.min(255,i*.272+c*.534+d*.131)}},C8=function(t){const n=t.data;for(let s=0;s<n.length;s+=4){const i=n[s],c=n[s+1],d=n[s+2];.2126*i+.7152*c+.0722*d>=128&&(n[s]=255-i,n[s+1]=255-c,n[s+2]=255-d)}return t},w8=function(t){const e=this.threshold()*255,n=t.data,s=n.length;for(let i=0;i<s;i+=1)n[i]=n[i]<e?0:255};ee.addGetterSetter(Ge,"threshold",.5,We(),ee.afterSetFilter);Ml.Util._assign(Ml,{Arc:Zs,Arrow:Il,Circle:Du,Ellipse:Ho,Image:Fi,Label:Kg,Tag:Ol,Line:$s,Path:wn,Rect:kf,RegularPolygon:Wo,Ring:Ul,Sprite:hs,Star:Xo,Text:_n,TextPath:hr,Transformer:Kt,Wedge:eo,Filters:{Blur:Jw,Brightness:$w,Brighten:Zw,Contrast:e8,Emboss:t8,Enhance:n8,Grayscale:r8,HSL:a8,HSV:i8,Invert:s8,Kaleidoscope:c8,Mask:m8,Noise:g8,Pixelate:v8,Posterize:y8,RGB:x8,RGBA:b8,Sepia:S8,Solarize:C8,Threshold:w8}});var Xp={exports:{}},Qp={exports:{}},ig={};/**
|
|
276
|
+
`,a2=()=>{if(typeof document>"u")throw new Error(aC)};class Qa{constructor(e=[1,0,0,1,0,0]){this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new Qa(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){const n=this.m;return{x:n[0]*e.x+n[2]*e.y+n[4],y:n[1]*e.x+n[3]*e.y+n[5]}}translate(e,n){return this.m[4]+=this.m[0]*e+this.m[2]*n,this.m[5]+=this.m[1]*e+this.m[3]*n,this}scale(e,n){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=n,this.m[3]*=n,this}rotate(e){const n=Math.cos(e),s=Math.sin(e),i=this.m[0]*n+this.m[2]*s,c=this.m[1]*n+this.m[3]*s,d=this.m[0]*-s+this.m[2]*n,h=this.m[1]*-s+this.m[3]*n;return this.m[0]=i,this.m[1]=c,this.m[2]=d,this.m[3]=h,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,n){const s=this.m[0]+this.m[2]*n,i=this.m[1]+this.m[3]*n,c=this.m[2]+this.m[0]*e,d=this.m[3]+this.m[1]*e;return this.m[0]=s,this.m[1]=i,this.m[2]=c,this.m[3]=d,this}multiply(e){const n=this.m[0]*e.m[0]+this.m[2]*e.m[1],s=this.m[1]*e.m[0]+this.m[3]*e.m[1],i=this.m[0]*e.m[2]+this.m[2]*e.m[3],c=this.m[1]*e.m[2]+this.m[3]*e.m[3],d=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],h=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=n,this.m[1]=s,this.m[2]=i,this.m[3]=c,this.m[4]=d,this.m[5]=h,this}invert(){const e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),n=this.m[3]*e,s=-this.m[1]*e,i=-this.m[2]*e,c=this.m[0]*e,d=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),h=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=n,this.m[1]=s,this.m[2]=i,this.m[3]=c,this.m[4]=d,this.m[5]=h,this}getMatrix(){return this.m}decompose(){const e=this.m[0],n=this.m[1],s=this.m[2],i=this.m[3],c=this.m[4],d=this.m[5],h=e*i-n*s,p={x:c,y:d,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(e!=0||n!=0){const u=Math.sqrt(e*e+n*n);p.rotation=n>0?Math.acos(e/u):-Math.acos(e/u),p.scaleX=u,p.scaleY=h/u,p.skewX=(e*s+n*i)/h,p.skewY=0}else if(s!=0||i!=0){const u=Math.sqrt(s*s+i*i);p.rotation=Math.PI/2-(i>0?Math.acos(-s/u):-Math.acos(s/u)),p.scaleX=h/u,p.scaleY=u,p.skewX=0,p.skewY=(e*s+n*i)/h}return p.rotation=he._getRotation(p.rotation),p}}const iC="[object Array]",sC="[object Number]",oC="[object String]",lC="[object Boolean]",cC=Math.PI/180,uC=180/Math.PI,af="#",dC="",fC="0",hC="Konva warning: ",i2="Konva error: ",pC="rgb(",Jm={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},AC=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let Mp=[],sf=null;const mC=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(t){setTimeout(t,16)},he={_isElement(t){return!!(t&&t.nodeType==1)},_isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isPlainObject(t){return!!t&&t.constructor===Object},_isArray(t){return Object.prototype.toString.call(t)===iC},_isNumber(t){return Object.prototype.toString.call(t)===sC&&!isNaN(t)&&isFinite(t)},_isString(t){return Object.prototype.toString.call(t)===oC},_isBoolean(t){return Object.prototype.toString.call(t)===lC},isObject(t){return t instanceof Object},isValidSelector(t){if(typeof t!="string")return!1;const e=t[0];return e==="#"||e==="."||e===e.toUpperCase()},_sign(t){return t===0||t>0?1:-1},requestAnimFrame(t){Mp.push(t),Mp.length===1&&mC(function(){const e=Mp;Mp=[],e.forEach(function(n){n()})})},createCanvasElement(){a2();const t=document.createElement("canvas");try{t.style=t.style||{}}catch{}return t},createImageElement(){return a2(),document.createElement("img")},_isInDocument(t){for(;t=t.parentNode;)if(t==document)return!0;return!1},_urlToImage(t,e){const n=he.createImageElement();n.onload=function(){e(n)},n.src=t},_rgbToHex(t,e,n){return((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)},_hexToRgb(t){t=t.replace(af,dC);const e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:e&255}},getRandomColor(){let t=(Math.random()*16777215<<0).toString(16);for(;t.length<6;)t=fC+t;return af+t},isCanvasFarblingActive(){if(sf!==null)return sf;if(typeof document>"u")return sf=!1,!1;const t=this.createCanvasElement();t.width=10,t.height=10;const e=t.getContext("2d",{willReadFrequently:!0});e.clearRect(0,0,10,10),e.fillStyle="#282828",e.fillRect(0,0,10,10);const n=e.getImageData(0,0,10,10).data;let s=!1;for(let i=0;i<100;i++)if(n[i*4]!==40||n[i*4+1]!==40||n[i*4+2]!==40||n[i*4+3]!==255){s=!0;break}return sf=s,this.releaseCanvas(t),sf},getHitColor(){const t=this.getRandomColor();return this.isCanvasFarblingActive()?this.getSnappedHexColor(t):t},getHitColorKey(t,e,n){return this.isCanvasFarblingActive()&&(t=Math.round(t/5)*5,e=Math.round(e/5)*5,n=Math.round(n/5)*5),af+this._rgbToHex(t,e,n)},getSnappedHexColor(t){const e=this._hexToRgb(t);return af+this._rgbToHex(Math.round(e.r/5)*5,Math.round(e.g/5)*5,Math.round(e.b/5)*5)},getRGB(t){let e;return t in Jm?(e=Jm[t],{r:e[0],g:e[1],b:e[2]}):t[0]===af?this._hexToRgb(t.substring(1)):t.substr(0,4)===pC?(e=AC.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA(t){return t=t||"black",he._namedColorToRBA(t)||he._hex3ColorToRGBA(t)||he._hex4ColorToRGBA(t)||he._hex6ColorToRGBA(t)||he._hex8ColorToRGBA(t)||he._rgbColorToRGBA(t)||he._rgbaColorToRGBA(t)||he._hslColorToRGBA(t)},_namedColorToRBA(t){const e=Jm[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA(t){if(t.indexOf("rgb(")===0){t=t.match(/rgb\(([^)]+)\)/)[1];const e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA(t){if(t.indexOf("rgba(")===0){t=t.match(/rgba\(([^)]+)\)/)[1];const e=t.split(/ *, */).map((n,s)=>n.slice(-1)==="%"?s===3?parseInt(n)/100:parseInt(n)/100*255:Number(n));return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex8ColorToRGBA(t){if(t[0]==="#"&&t.length===9)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:parseInt(t.slice(7,9),16)/255}},_hex6ColorToRGBA(t){if(t[0]==="#"&&t.length===7)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex4ColorToRGBA(t){if(t[0]==="#"&&t.length===5)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:parseInt(t[4]+t[4],16)/255}},_hex3ColorToRGBA(t){if(t[0]==="#"&&t.length===4)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){const[e,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),s=Number(n[0])/360,i=Number(n[1])/100,c=Number(n[2])/100;let d,h,p;if(i===0)return p=c*255,{r:Math.round(p),g:Math.round(p),b:Math.round(p),a:1};c<.5?d=c*(1+i):d=c+i-c*i;const u=2*c-d,A=[0,0,0];for(let y=0;y<3;y++)h=s+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?p=u+(d-u)*6*h:2*h<1?p=d:3*h<2?p=u+(d-u)*(2/3-h)*6:p=u,A[y]=p*255;return{r:Math.round(A[0]),g:Math.round(A[1]),b:Math.round(A[2]),a:1}}},haveIntersection(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject(t){const e={};for(const n in t)this._isPlainObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray(t){return t.slice(0)},degToRad(t){return t*cC},radToDeg(t){return t*uC},_degToRad(t){return he.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),he.degToRad(t)},_radToDeg(t){return he.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),he.radToDeg(t)},_getRotation(t){return Qe.angleDeg?he.radToDeg(t):t},_capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw(t){throw new Error(i2+t)},error(t){console.error(i2+t)},warn(t){Qe.showWarnings&&console.warn(hC+t)},each(t,e){for(const n in t)e(n,t[n])},_inRange(t,e,n){return e<=t&&t<n},_getProjectionToSegment(t,e,n,s,i,c){let d,h,p;const u=(t-n)*(t-n)+(e-s)*(e-s);if(u==0)d=t,h=e,p=(i-n)*(i-n)+(c-s)*(c-s);else{const A=((i-t)*(n-t)+(c-e)*(s-e))/u;A<0?(d=t,h=e,p=(t-i)*(t-i)+(e-c)*(e-c)):A>1?(d=n,h=s,p=(n-i)*(n-i)+(s-c)*(s-c)):(d=t+A*(n-t),h=e+A*(s-e),p=(d-i)*(d-i)+(h-c)*(h-c))}return[d,h,p]},_getProjectionToLine(t,e,n){const s=he.cloneObject(t);let i=Number.MAX_VALUE;return e.forEach(function(c,d){if(!n&&d===e.length-1)return;const h=e[(d+1)%e.length],p=he._getProjectionToSegment(c.x,c.y,h.x,h.y,t.x,t.y),u=p[0],A=p[1],y=p[2];y<i&&(s.x=u,s.y=A,i=y)}),s},_prepareArrayForTween(t,e,n){const s=[],i=[];if(t.length>e.length){const d=e;e=t,t=d}for(let d=0;d<t.length;d+=2)s.push({x:t[d],y:t[d+1]});for(let d=0;d<e.length;d+=2)i.push({x:e[d],y:e[d+1]});const c=[];return i.forEach(function(d){const h=he._getProjectionToLine(d,s,n);c.push(h.x),c.push(h.y)}),c},_prepareToStringify(t){let e;t.visitedByCircularReferenceRemoval=!0;for(const n in t)if(t.hasOwnProperty(n)&&t[n]&&typeof t[n]=="object"){if(e=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||he._isElement(t[n]))if(e.configurable)delete t[n];else return null;else if(he._prepareToStringify(t[n])===null)if(e.configurable)delete t[n];else return null}return delete t.visitedByCircularReferenceRemoval,t},_assign(t,e){for(const n in e)t[n]=e[n];return t},_getFirstPointerId(t){return t.touches?t.changedTouches[0].identifier:t.pointerId||999},releaseCanvas(...t){Qe.releaseCanvasOnDestroy&&t.forEach(e=>{e.width=0,e.height=0})},drawRoundedRectPath(t,e,n,s){let i=e<0?e:0,c=n<0?n:0;e=Math.abs(e),n=Math.abs(n);let d=0,h=0,p=0,u=0;typeof s=="number"?d=h=p=u=Math.min(s,e/2,n/2):(d=Math.min(s[0]||0,e/2,n/2),h=Math.min(s[1]||0,e/2,n/2),u=Math.min(s[2]||0,e/2,n/2),p=Math.min(s[3]||0,e/2,n/2)),t.moveTo(i+d,c),t.lineTo(i+e-h,c),t.arc(i+e-h,c+h,h,Math.PI*3/2,0,!1),t.lineTo(i+e,c+n-u),t.arc(i+e-u,c+n-u,u,0,Math.PI/2,!1),t.lineTo(i+p,c+n),t.arc(i+p,c+n-p,p,Math.PI/2,Math.PI,!1),t.lineTo(i,c+d),t.arc(i+d,c+d,d,Math.PI,Math.PI*3/2,!1)},drawRoundedPolygonPath(t,e,n,s,i){s=Math.abs(s);for(let c=0;c<n;c++){const d=e[(c-1+n)%n],h=e[c],p=e[(c+1)%n],u={x:h.x-d.x,y:h.y-d.y},A={x:p.x-h.x,y:p.y-h.y},y=Math.hypot(u.x,u.y),x=Math.hypot(A.x,A.y);let S;typeof i=="number"?S=i:S=c<i.length?i[c]:0,S=s*Math.cos(Math.PI/n)*Math.min(1,S/s*2);const R={x:u.x/y,y:u.y/y},T={x:A.x/x,y:A.y/x},D={x:h.x-R.x*S,y:h.y-R.y*S},P={x:h.x+T.x*S,y:h.y+T.y*S};c===0?t.moveTo(D.x,D.y):t.lineTo(D.x,D.y),t.arcTo(h.x,h.y,P.x,P.y,S)}}};function gC(t){const e=[],n=t.length,s=he;for(let i=0;i<n;i++){let c=t[i];s._isNumber(c)?c=Math.round(c*1e3)/1e3:s._isString(c)||(c=c+""),e.push(c)}return e}const s2=",",vC="(",yC=")",xC="([",bC="])",SC=";",CC="()",wC="=",o2=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],_C=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled","filter"],EC=100;let zp=null;function l2(){if(zp!==null)return zp;try{const e=he.createCanvasElement().getContext("2d");return e?!!e&&"filter"in e:(zp=!1,!1)}catch{return zp=!1,!1}}class dA{constructor(e){this.canvas=e,Qe.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,n){let s=this.traceArr,i=s.length,c="",d,h,p,u;for(d=0;d<i;d++)h=s[d],p=h.method,p?(u=h.args,c+=p,e?c+=CC:he._isArray(u[0])?c+=xC+u.join(s2)+bC:(n&&(u=u.map(A=>typeof A=="number"?Math.floor(A):A)),c+=vC+u.join(s2)+yC)):(c+=h.property,e||(c+=wC+h.val)),c+=SC;return c}clearTrace(){this.traceArr=[]}_trace(e){let n=this.traceArr,s;n.push(e),s=n.length,s>=EC&&n.shift()}reset(){const e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){const n=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,n.getWidth()/n.pixelRatio,n.getHeight()/n.pixelRatio)}_applyLineCap(e){const n=e.attrs.lineCap;n&&this.setAttr("lineCap",n)}_applyOpacity(e){const n=e.getAbsoluteOpacity();n!==1&&this.setAttr("globalAlpha",n)}_applyLineJoin(e){const n=e.attrs.lineJoin;n&&this.setAttr("lineJoin",n)}_applyMiterLimit(e){const n=e.attrs.miterLimit;n!=null&&this.setAttr("miterLimit",n)}setAttr(e,n){this._context[e]=n}arc(e,n,s,i,c,d){this._context.arc(e,n,s,i,c,d)}arcTo(e,n,s,i,c){this._context.arcTo(e,n,s,i,c)}beginPath(){this._context.beginPath()}bezierCurveTo(e,n,s,i,c,d){this._context.bezierCurveTo(e,n,s,i,c,d)}clearRect(e,n,s,i){this._context.clearRect(e,n,s,i)}clip(...e){this._context.clip.apply(this._context,e)}closePath(){this._context.closePath()}createImageData(e,n){const s=arguments;if(s.length===2)return this._context.createImageData(e,n);if(s.length===1)return this._context.createImageData(e)}createLinearGradient(e,n,s,i){return this._context.createLinearGradient(e,n,s,i)}createPattern(e,n){return this._context.createPattern(e,n)}createRadialGradient(e,n,s,i,c,d){return this._context.createRadialGradient(e,n,s,i,c,d)}drawImage(e,n,s,i,c,d,h,p,u){const A=arguments,y=this._context;A.length===3?y.drawImage(e,n,s):A.length===5?y.drawImage(e,n,s,i,c):A.length===9&&y.drawImage(e,n,s,i,c,d,h,p,u)}ellipse(e,n,s,i,c,d,h,p){this._context.ellipse(e,n,s,i,c,d,h,p)}isPointInPath(e,n,s,i){return s?this._context.isPointInPath(s,e,n,i):this._context.isPointInPath(e,n,i)}fill(...e){this._context.fill.apply(this._context,e)}fillRect(e,n,s,i){this._context.fillRect(e,n,s,i)}strokeRect(e,n,s,i){this._context.strokeRect(e,n,s,i)}fillText(e,n,s,i){i?this._context.fillText(e,n,s,i):this._context.fillText(e,n,s)}measureText(e){return this._context.measureText(e)}getImageData(e,n,s,i){return this._context.getImageData(e,n,s,i)}lineTo(e,n){this._context.lineTo(e,n)}moveTo(e,n){this._context.moveTo(e,n)}rect(e,n,s,i){this._context.rect(e,n,s,i)}roundRect(e,n,s,i,c){this._context.roundRect(e,n,s,i,c)}putImageData(e,n,s){this._context.putImageData(e,n,s)}quadraticCurveTo(e,n,s,i){this._context.quadraticCurveTo(e,n,s,i)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,n){this._context.scale(e,n)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,n,s,i,c,d){this._context.setTransform(e,n,s,i,c,d)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,n,s,i){this._context.strokeText(e,n,s,i)}transform(e,n,s,i,c,d){this._context.transform(e,n,s,i,c,d)}translate(e,n){this._context.translate(e,n)}_enableTrace(){let e=this,n=o2.length,s=this.setAttr,i,c;const d=function(h){let p=e[h],u;e[h]=function(){return c=gC(Array.prototype.slice.call(arguments,0)),u=p.apply(e,arguments),e._trace({method:h,args:c}),u}};for(i=0;i<n;i++)d(o2[i]);e.setAttr=function(){s.apply(e,arguments);const h=arguments[0];let p=arguments[1];(h==="shadowOffsetX"||h==="shadowOffsetY"||h==="shadowBlur")&&(p=p/this.canvas.getPixelRatio()),e._trace({property:h,val:p})}}_applyGlobalCompositeOperation(e){const n=e.attrs.globalCompositeOperation;!n||n==="source-over"||this.setAttr("globalCompositeOperation",n)}}_C.forEach(function(t){Object.defineProperty(dA.prototype,t,{get(){return this._context[t]},set(e){this._context[t]=e}})});class RC extends dA{constructor(e,{willReadFrequently:n=!1}={}){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:n})}_fillColor(e){const n=e.fill();this.setAttr("fillStyle",n),e._fillFunc(this)}_fillPattern(e){this.setAttr("fillStyle",e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){const n=e._getLinearGradient();n&&(this.setAttr("fillStyle",n),e._fillFunc(this))}_fillRadialGradient(e){const n=e._getRadialGradient();n&&(this.setAttr("fillStyle",n),e._fillFunc(this))}_fill(e){const n=e.fill(),s=e.getFillPriority();if(n&&s==="color"){this._fillColor(e);return}const i=e.getFillPatternImage();if(i&&s==="pattern"){this._fillPattern(e);return}const c=e.getFillLinearGradientColorStops();if(c&&s==="linear-gradient"){this._fillLinearGradient(e);return}const d=e.getFillRadialGradientColorStops();if(d&&s==="radial-gradient"){this._fillRadialGradient(e);return}n?this._fillColor(e):i?this._fillPattern(e):c?this._fillLinearGradient(e):d&&this._fillRadialGradient(e)}_strokeLinearGradient(e){const n=e.getStrokeLinearGradientStartPoint(),s=e.getStrokeLinearGradientEndPoint(),i=e.getStrokeLinearGradientColorStops(),c=this.createLinearGradient(n.x,n.y,s.x,s.y);if(i){for(let d=0;d<i.length;d+=2)c.addColorStop(i[d],i[d+1]);this.setAttr("strokeStyle",c)}}_stroke(e){const n=e.dash(),s=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!s){this.save();const c=this.getCanvas().getPixelRatio();this.setTransform(c,0,0,c,0,0)}this._applyLineCap(e),n&&e.dashEnabled()&&(this.setLineDash(n),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),s||this.restore()}}_applyShadow(e){var n,s,i;const c=(n=e.getShadowRGBA())!==null&&n!==void 0?n:"black",d=(s=e.getShadowBlur())!==null&&s!==void 0?s:5,h=(i=e.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},p=e.getAbsoluteScale(),u=this.canvas.getPixelRatio(),A=p.x*u,y=p.y*u;this.setAttr("shadowColor",c),this.setAttr("shadowBlur",d*Math.min(Math.abs(A),Math.abs(y))),this.setAttr("shadowOffsetX",h.x*A),this.setAttr("shadowOffsetY",h.y*y)}}class TC extends dA{constructor(e){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:!0})}_fill(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){const n=e.getStrokeScaleEnabled();if(!n){this.save();const c=this.getCanvas().getPixelRatio();this.setTransform(c,0,0,c,0,0)}this._applyLineCap(e);const s=e.hitStrokeWidth(),i=s==="auto"?e.strokeWidth():s;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),n||this.restore()}}}let Fp;function DC(){if(Fp)return Fp;const t=he.createCanvasElement(),e=t.getContext("2d");return Fp=(function(){const n=Qe._global.devicePixelRatio||1,s=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/s})(),he.releaseCanvas(t),Fp}class Xg{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const s=(e||{}).pixelRatio||Qe.pixelRatio||DC();this.pixelRatio=s,this._canvas=he.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){const n=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/n,this.getHeight()/n)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";const n=this.pixelRatio;this.getContext()._context.scale(n,n)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";const n=this.pixelRatio;this.getContext()._context.scale(n,n)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,n){this.setWidth(e||0),this.setHeight(n||0)}toDataURL(e,n){try{return this._canvas.toDataURL(e,n)}catch{try{return this._canvas.toDataURL()}catch(i){return he.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}class Oo extends Xg{constructor(e={width:0,height:0,willReadFrequently:!1}){super(e),this.context=new RC(this,{willReadFrequently:e.willReadFrequently}),this.setSize(e.width,e.height)}}class Qg extends Xg{constructor(e={width:0,height:0}){super(e),this.hitCanvas=!0,this.context=new TC(this),this.setSize(e.width,e.height)}}const on={get isDragging(){let t=!1;return on._dragElements.forEach(e=>{e.dragStatus==="dragging"&&(t=!0)}),t},justDragged:!1,get node(){let t;return on._dragElements.forEach(e=>{t=e.node}),t},_dragElements:new Map,_drag(t){const e=[];on._dragElements.forEach((n,s)=>{const{node:i}=n,c=i.getStage();c.setPointersPositions(t),n.pointerId===void 0&&(n.pointerId=he._getFirstPointerId(t));const d=c._changedPointerPositions.find(h=>h.id===n.pointerId);if(d){if(n.dragStatus!=="dragging"){const h=i.dragDistance();if(Math.max(Math.abs(d.x-n.startPointerPos.x),Math.abs(d.y-n.startPointerPos.y))<h||(i.startDrag({evt:t}),!i.isDragging()))return}i._setDragPosition(t,n),e.push(i)}}),e.forEach(n=>{n.fire("dragmove",{type:"dragmove",target:n,evt:t},!0)})},_endDragBefore(t){const e=[];on._dragElements.forEach(n=>{const{node:s}=n,i=s.getStage();if(t&&i.setPointersPositions(t),!i._changedPointerPositions.find(h=>h.id===n.pointerId))return;(n.dragStatus==="dragging"||n.dragStatus==="stopped")&&(on.justDragged=!0,Qe._mouseListenClick=!1,Qe._touchListenClick=!1,Qe._pointerListenClick=!1,n.dragStatus="stopped");const d=n.node.getLayer()||n.node instanceof Qe.Stage&&n.node;d&&e.indexOf(d)===-1&&e.push(d)}),e.forEach(n=>{n.draw()})},_endDragAfter(t){on._dragElements.forEach((e,n)=>{e.dragStatus==="stopped"&&e.node.fire("dragend",{type:"dragend",target:e.node,evt:t},!0),e.dragStatus!=="dragging"&&on._dragElements.delete(n)})}};Qe.isBrowser&&(window.addEventListener("mouseup",on._endDragBefore,!0),window.addEventListener("touchend",on._endDragBefore,!0),window.addEventListener("touchcancel",on._endDragBefore,!0),window.addEventListener("mousemove",on._drag),window.addEventListener("touchmove",on._drag),window.addEventListener("mouseup",on._endDragAfter,!1),window.addEventListener("touchend",on._endDragAfter,!1),window.addEventListener("touchcancel",on._endDragAfter,!1));function Go(t){return he._isString(t)?'"'+t+'"':Object.prototype.toString.call(t)==="[object Number]"||he._isBoolean(t)?t:Object.prototype.toString.call(t)}function Sx(t){return t>255?255:t<0?0:Math.round(t)}function We(){if(Qe.isUnminified)return function(t,e){return he._isNumber(t)||he.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function fA(t){if(Qe.isUnminified)return function(e,n){let s=he._isNumber(e),i=he._isArray(e)&&e.length==t;return!s&&!i&&he.warn(Go(e)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+t+")"),e}}function Yg(){if(Qe.isUnminified)return function(t,e){return he._isNumber(t)||t==="auto"||he.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function zl(){if(Qe.isUnminified)return function(t,e){return he._isString(t)||he.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function Cx(){if(Qe.isUnminified)return function(t,e){const n=he._isString(t),s=Object.prototype.toString.call(t)==="[object CanvasGradient]"||t&&t.addColorStop;return n||s||he.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}function LC(){if(Qe.isUnminified)return function(t,e){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&t instanceof n||(he._isArray(t)?t.forEach(function(s){he._isNumber(s)||he.warn('"'+e+'" attribute has non numeric element '+s+". Make sure that all elements are numbers.")}):he.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}function zi(){if(Qe.isUnminified)return function(t,e){return t===!0||t===!1||he.warn(Go(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}function kC(t){if(Qe.isUnminified)return function(e,n){return e==null||he.isObject(e)||he.warn(Go(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}const of="get",lf="set",te={addGetterSetter(t,e,n,s,i){te.addGetter(t,e,n),te.addSetter(t,e,s,i),te.addOverloadedGetterSetter(t,e)},addGetter(t,e,n){const s=of+he._capitalize(e);t.prototype[s]=t.prototype[s]||function(){const i=this.attrs[e];return i===void 0?n:i}},addSetter(t,e,n,s){const i=lf+he._capitalize(e);t.prototype[i]||te.overWriteSetter(t,e,n,s)},overWriteSetter(t,e,n,s){const i=lf+he._capitalize(e);t.prototype[i]=function(c){return n&&c!==void 0&&c!==null&&(c=n.call(this,c,e)),this._setAttr(e,c),s&&s.call(this),this}},addComponentsGetterSetter(t,e,n,s,i){const c=n.length,d=he._capitalize,h=of+d(e),p=lf+d(e);t.prototype[h]=function(){const A={};for(let y=0;y<c;y++){const x=n[y];A[x]=this.getAttr(e+d(x))}return A};const u=kC(n);t.prototype[p]=function(A){const y=this.attrs[e];s&&(A=s.call(this,A,e)),u&&u.call(this,A,e);for(const x in A)A.hasOwnProperty(x)&&this._setAttr(e+d(x),A[x]);return A||n.forEach(x=>{this._setAttr(e+d(x),void 0)}),this._fireChangeEvent(e,y,A),i&&i.call(this),this},te.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter(t,e){const n=he._capitalize(e),s=lf+n,i=of+n;t.prototype[e]=function(){return arguments.length?(this[s](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter(t,e,n,s){he.error("Adding deprecated "+e);const i=of+he._capitalize(e),c=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[i]=function(){he.error(c);const d=this.attrs[e];return d===void 0?n:d},te.addSetter(t,e,s,function(){he.error(c)}),te.addOverloadedGetterSetter(t,e)},backCompat(t,e){he.each(e,function(n,s){const i=t.prototype[s],c=of+he._capitalize(n),d=lf+he._capitalize(n);function h(){i.apply(this,arguments),he.error('"'+n+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}t.prototype[n]=h,t.prototype[c]=h,t.prototype[d]=h})},afterSetFilter(){this._filterUpToDate=!1}};function NC(t){const e=/(\w+)\(([^)]+)\)/g;let n;for(;(n=e.exec(t))!==null;){const[,s,i]=n;switch(s){case"blur":{const c=parseFloat(i.replace("px",""));return function(d){this.blurRadius(c*.5);const h=Qe.Filters;h&&h.Blur&&h.Blur.call(this,d)}}case"brightness":{const c=i.includes("%")?parseFloat(i)/100:parseFloat(i);return function(d){this.brightness(c);const h=Qe.Filters;h&&h.Brightness&&h.Brightness.call(this,d)}}case"contrast":{const c=parseFloat(i);return function(d){const h=100*(Math.sqrt(c)-1);this.contrast(h);const p=Qe.Filters;p&&p.Contrast&&p.Contrast.call(this,d)}}case"grayscale":return function(c){const d=Qe.Filters;d&&d.Grayscale&&d.Grayscale.call(this,c)};case"sepia":return function(c){const d=Qe.Filters;d&&d.Sepia&&d.Sepia.call(this,c)};case"invert":return function(c){const d=Qe.Filters;d&&d.Invert&&d.Invert.call(this,c)};default:he.warn(`CSS filter "${s}" is not supported in fallback mode. Consider using function filters for better compatibility.`);break}}return()=>{}}const $p="absoluteOpacity",c2="allEventListeners",Vs="absoluteTransform",u2="absoluteScale",kl="canvas",BC="Change",PC="children",MC="konva",_g="listening",zC="mouseenter",FC="mouseleave",IC="pointerenter",OC="pointerleave",UC="touchenter",jC="touchleave",d2="set",f2="Shape",eA=" ",h2="stage",zo="transform",GC="Stage",Eg="visible",HC=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(eA);let WC=1;class Ge{constructor(e){this._id=WC++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){(e===zo||e===Vs)&&this._cache.get(e)?this._cache.get(e).dirty=!0:e?this._cache.delete(e):this._cache.clear()}_getCache(e,n){let s=this._cache.get(e);return(s===void 0||(e===zo||e===Vs)&&s.dirty===!0)&&(s=n.call(this),this._cache.set(e,s)),s}_calculate(e,n,s){if(!this._attachedDepsListeners.get(e)){const i=n.map(c=>c+"Change.konva").join(eA);this.on(i,()=>{this._clearCache(e)}),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,s)}_getCanvasCache(){return this._cache.get(kl)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===Vs&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(kl)){const{scene:e,filter:n,hit:s}=this._cache.get(kl);he.releaseCanvas(e._canvas,n._canvas,s._canvas),this._cache.delete(kl)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){const n=e||{};let s={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(s=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let i=Math.ceil(n.width||s.width),c=Math.ceil(n.height||s.height),d=n.pixelRatio,h=n.x===void 0?Math.floor(s.x):n.x,p=n.y===void 0?Math.floor(s.y):n.y,u=n.offset||0,A=n.drawBorder||!1,y=n.hitCanvasPixelRatio||1;if(!i||!c){he.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const x=Math.abs(Math.round(s.x)-h)>.5?1:0,S=Math.abs(Math.round(s.y)-p)>.5?1:0;i+=u*2+x,c+=u*2+S,h-=u,p-=u;const C=new Oo({pixelRatio:d,width:i,height:c}),R=new Oo({pixelRatio:d,width:0,height:0,willReadFrequently:!0}),T=new Qg({pixelRatio:y,width:i,height:c}),D=C.getContext(),P=T.getContext(),M=new Oo({width:C.width/C.pixelRatio+Math.abs(h),height:C.height/C.pixelRatio+Math.abs(p),pixelRatio:C.pixelRatio}),O=M.getContext();return T.isCache=!0,C.isCache=!0,this._cache.delete(kl),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(C.getContext()._context.imageSmoothingEnabled=!1,R.getContext()._context.imageSmoothingEnabled=!1),D.save(),P.save(),O.save(),D.translate(-h,-p),P.translate(-h,-p),O.translate(-h,-p),M.x=h,M.y=p,this._isUnderCache=!0,this._clearSelfAndDescendantCache($p),this._clearSelfAndDescendantCache(u2),this.drawScene(C,this,M),this.drawHit(T,this),this._isUnderCache=!1,D.restore(),P.restore(),A&&(D.save(),D.beginPath(),D.rect(0,0,i,c),D.closePath(),D.setAttr("strokeStyle","red"),D.setAttr("lineWidth",5),D.stroke(),D.restore()),he.releaseCanvas(M._canvas),this._cache.set(kl,{scene:C,filter:R,hit:T,x:h,y:p}),this._requestDraw(),this}isCached(){return this._cache.has(kl)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,n){const s=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}];let i=1/0,c=1/0,d=-1/0,h=-1/0;const p=this.getAbsoluteTransform(n);return s.forEach(function(u){const A=p.point(u);i===void 0&&(i=d=A.x,c=h=A.y),i=Math.min(i,A.x),c=Math.min(c,A.y),d=Math.max(d,A.x),h=Math.max(h,A.y)}),{x:i,y:c,width:d-i,height:h-c}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();e.translate(n.x,n.y);const s=this._getCachedSceneCanvas(),i=s.pixelRatio;e.drawImage(s._canvas,0,0,s.width/i,s.height/i),e.restore()}_drawCachedHitCanvas(e){const n=this._getCanvasCache(),s=n.hit;e.save(),e.translate(n.x,n.y),e.drawImage(s._canvas,0,0,s.width/s.pixelRatio,s.height/s.pixelRatio),e.restore()}_getCachedSceneCanvas(){let e=this.filters(),n=this._getCanvasCache(),s=n.scene,i=n.filter,c=i.getContext(),d,h,p,u;if(!e||e.length===0)return s;if(this._filterUpToDate)return i;let A=!0;for(let x=0;x<e.length;x++)if(typeof e[x]=="string"&&l2(),typeof e[x]!="string"||!l2()){A=!1;break}const y=s.pixelRatio;if(i.setSize(s.width/s.pixelRatio,s.height/s.pixelRatio),A){const x=e.join(" ");return c.save(),c.setAttr("filter",x),c.drawImage(s._canvas,0,0,s.getWidth()/y,s.getHeight()/y),c.restore(),this._filterUpToDate=!0,i}try{for(d=e.length,c.clear(),c.drawImage(s._canvas,0,0,s.getWidth()/y,s.getHeight()/y),h=c.getImageData(0,0,i.getWidth(),i.getHeight()),p=0;p<d;p++)u=e[p],typeof u=="string"&&(u=NC(u)),u.call(this,h),c.putImageData(h,0,0)}catch(x){he.error("Unable to apply filter. "+x.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}return this._filterUpToDate=!0,i}on(e,n){if(this._cache&&this._cache.delete(c2),arguments.length===3)return this._delegate.apply(this,arguments);const s=e.split(eA);for(let i=0;i<s.length;i++){const d=s[i].split("."),h=d[0],p=d[1]||"";this.eventListeners[h]||(this.eventListeners[h]=[]),this.eventListeners[h].push({name:p,handler:n})}return this}off(e,n){let s=(e||"").split(eA),i=s.length,c,d,h,p,u,A;if(this._cache&&this._cache.delete(c2),!e)for(d in this.eventListeners)this._off(d);for(c=0;c<i;c++)if(h=s[c],p=h.split("."),u=p[0],A=p[1],u)this.eventListeners[u]&&this._off(u,A,n);else for(d in this.eventListeners)this._off(d,A,n);return this}dispatchEvent(e){const n={target:this,type:e.type,evt:e};return this.fire(e.type,n),this}addEventListener(e,n){return this.on(e,function(s){n.call(this,s.evt)}),this}removeEventListener(e){return this.off(e),this}_delegate(e,n,s){const i=this;this.on(e,function(c){const d=c.target.findAncestors(n,!0,i);for(let h=0;h<d.length;h++)c=he.cloneObject(c),c.currentTarget=d[h],s.call(d[h],c)})}remove(){return this.isDragging()&&this.stopDrag(),on._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Vs),this._clearSelfAndDescendantCache($p),this._clearSelfAndDescendantCache(u2),this._clearSelfAndDescendantCache(h2),this._clearSelfAndDescendantCache(Eg),this._clearSelfAndDescendantCache(_g)}_remove(){this._clearCaches();const e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(e){const n="get"+he._capitalize(e);return he._isFunction(this[n])?this[n]():this.attrs[e]}getAncestors(){let e=this.getParent(),n=[];for(;e;)n.push(e),e=e.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges(()=>{let n,s;if(!e)return this;for(n in e)n!==PC&&(s=d2+he._capitalize(n),he._isFunction(this[s])?this[s](e[n]):this._setAttr(n,e[n]))}),this}isListening(){return this._getCache(_g,this._isListening)}_isListening(e){if(!this.listening())return!1;const s=this.getParent();return s&&s!==e&&this!==e?s._isListening(e):!0}isVisible(){return this._getCache(Eg,this._isVisible)}_isVisible(e){if(!this.visible())return!1;const s=this.getParent();return s&&s!==e&&this!==e?s._isVisible(e):!0}shouldDrawHit(e,n=!1){if(e)return this._isVisible(e)&&this._isListening(e);const s=this.getLayer();let i=!1;on._dragElements.forEach(d=>{d.dragStatus==="dragging"&&(d.node.nodeType==="Stage"||d.node.getLayer()===s)&&(i=!0)});const c=!n&&!Qe.hitOnDragEnabled&&(i||Qe.isTransforming());return this.isListening()&&this.isVisible()&&!c}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let e=this.getDepth(),n=this,s=0,i,c,d,h;function p(A){for(i=[],c=A.length,d=0;d<c;d++)h=A[d],s++,h.nodeType!==f2&&(i=i.concat(h.getChildren().slice())),h._id===n._id&&(d=c);i.length>0&&i[0].getDepth()<=e&&p(i)}const u=this.getStage();return n.nodeType!==GC&&u&&p(u.getChildren()),s}getDepth(){let e=0,n=this.parent;for(;n;)e++,n=n.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(zo),this._clearSelfAndDescendantCache(Vs)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges(()=>{this.x(e.x),this.y(e.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const e=this.getStage();if(!e)return null;const n=e.getPointerPosition();if(!n)return null;const s=this.getAbsoluteTransform().copy();return s.invert(),s.point(n)}getAbsolutePosition(e){let n=!1,s=this.parent;for(;s;){if(s.isCached()){n=!0;break}s=s.parent}n&&!e&&(e=!0);const i=this.getAbsoluteTransform(e).getMatrix(),c=new Qa,d=this.offset();return c.m=i.slice(),c.translate(d.x,d.y),c.getTranslation()}setAbsolutePosition(e){const{x:n,y:s,...i}=this._clearTransform();this.attrs.x=n,this.attrs.y=s,this._clearCache(zo);const c=this._getAbsoluteTransform().copy();return c.invert(),c.translate(e.x,e.y),e={x:this.attrs.x+c.getTranslation().x,y:this.attrs.y+c.getTranslation().y},this._setTransform(i),this.setPosition({x:e.x,y:e.y}),this._clearCache(zo),this._clearSelfAndDescendantCache(Vs),this}_setTransform(e){let n;for(n in e)this.attrs[n]=e[n]}_clearTransform(){const e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){let n=e.x,s=e.y,i=this.x(),c=this.y();return n!==void 0&&(i+=n),s!==void 0&&(c+=s),this.setPosition({x:i,y:c}),this}_eachAncestorReverse(e,n){let s=[],i=this.getParent(),c,d;if(!(n&&n._id===this._id)){for(s.unshift(this);i&&(!n||i._id!==n._id);)s.unshift(i),i=i.parent;for(c=s.length,d=0;d<c;d++)e(s[d])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return he.warn("Node has no parent. moveToTop function is ignored."),!1;const e=this.index,n=this.parent.getChildren().length;return e<n-1?(this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return he.warn("Node has no parent. moveUp function is ignored."),!1;const e=this.index,n=this.parent.getChildren().length;return e<n-1?(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return he.warn("Node has no parent. moveDown function is ignored."),!1;const e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return he.warn("Node has no parent. moveToBottom function is ignored."),!1;const e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(e){if(!this.parent)return he.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&he.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache($p,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let e=this.opacity();const n=this.getParent();return n&&!n._isUnderCache&&(e*=n.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){let e=this.getAttrs(),n,s,i,c,d;const h={attrs:{},className:this.getClassName()};for(n in e)s=e[n],d=he.isObject(s)&&!he._isPlainObject(s)&&!he._isArray(s),!d&&(i=typeof this[n]=="function"&&this[n],delete e[n],c=i?i.call(this):null,e[n]=s,c!==s&&(h.attrs[n]=s));return he._prepareToStringify(h)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,n,s){const i=[];n&&this._isMatch(e)&&i.push(this);let c=this.parent;for(;c;){if(c===s)return i;c._isMatch(e)&&i.push(c),c=c.parent}return i}isAncestorOf(e){return!1}findAncestor(e,n,s){return this.findAncestors(e,n,s)[0]}_isMatch(e){if(!e)return!1;if(typeof e=="function")return e(this);let n=e.replace(/ /g,"").split(","),s=n.length,i,c;for(i=0;i<s;i++)if(c=n[i],he.isValidSelector(c)||(he.warn('Selector "'+c+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),he.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),he.warn("Konva is awesome, right?")),c.charAt(0)==="#"){if(this.id()===c.slice(1))return!0}else if(c.charAt(0)==="."){if(this.hasName(c.slice(1)))return!0}else if(this.className===c||this.nodeType===c)return!0;return!1}getLayer(){const e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(h2,this._getStage)}_getStage(){const e=this.getParent();return e?e.getStage():null}fire(e,n={},s){return n.target=n.target||this,s?this._fireAndBubble(e,n):this._fire(e,n),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(Vs,this._getAbsoluteTransform)}_getAbsoluteTransform(e){let n;if(e)return n=new Qa,this._eachAncestorReverse(function(s){const i=s.transformsEnabled();i==="all"?n.multiply(s.getTransform()):i==="position"&&n.translate(s.x()-s.offsetX(),s.y()-s.offsetY())},e),n;{n=this._cache.get(Vs)||new Qa,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();const s=this.transformsEnabled();if(s==="all")n.multiply(this.getTransform());else if(s==="position"){const i=this.attrs.x||0,c=this.attrs.y||0,d=this.attrs.offsetX||0,h=this.attrs.offsetY||0;n.translate(i-d,c-h)}return n.dirty=!1,n}}getAbsoluteScale(e){let n=this;for(;n;)n._isUnderCache&&(e=n),n=n.getParent();const i=this.getAbsoluteTransform(e).decompose();return{x:i.scaleX,y:i.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(zo,this._getTransform)}_getTransform(){var e,n;const s=this._cache.get(zo)||new Qa;s.reset();const i=this.x(),c=this.y(),d=Qe.getAngle(this.rotation()),h=(e=this.attrs.scaleX)!==null&&e!==void 0?e:1,p=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,u=this.attrs.skewX||0,A=this.attrs.skewY||0,y=this.attrs.offsetX||0,x=this.attrs.offsetY||0;return(i!==0||c!==0)&&s.translate(i,c),d!==0&&s.rotate(d),(u!==0||A!==0)&&s.skew(u,A),(h!==1||p!==1)&&s.scale(h,p),(y!==0||x!==0)&&s.translate(-1*y,-1*x),s.dirty=!1,s}clone(e){let n=he.cloneObject(this.attrs),s,i,c,d,h;for(s in e)n[s]=e[s];const p=new this.constructor(n);for(s in this.eventListeners)for(i=this.eventListeners[s],c=i.length,d=0;d<c;d++)h=i[d],h.name.indexOf(MC)<0&&(p.eventListeners[s]||(p.eventListeners[s]=[]),p.eventListeners[s].push(h));return p}_toKonvaCanvas(e){e=e||{};const n=this.getClientRect(),s=this.getStage(),i=e.x!==void 0?e.x:Math.floor(n.x),c=e.y!==void 0?e.y:Math.floor(n.y),d=e.pixelRatio||1,h=new Oo({width:e.width||Math.ceil(n.width)||(s?s.width():0),height:e.height||Math.ceil(n.height)||(s?s.height():0),pixelRatio:d}),p=h.getContext(),u=new Oo({width:h.width/h.pixelRatio+Math.abs(i),height:h.height/h.pixelRatio+Math.abs(c),pixelRatio:h.pixelRatio});return e.imageSmoothingEnabled===!1&&(p._context.imageSmoothingEnabled=!1),p.save(),(i||c)&&p.translate(-1*i,-1*c),this.drawScene(h,void 0,u),p.restore(),h}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){e=e||{};const n=e.mimeType||null,s=e.quality||null,i=this._toKonvaCanvas(e).toDataURL(n,s);return e.callback&&e.callback(i),i}toImage(e){return new Promise((n,s)=>{try{const i=e==null?void 0:e.callback;i&&delete e.callback,he._urlToImage(this.toDataURL(e),function(c){n(c),i==null||i(c)})}catch(i){s(i)}})}toBlob(e){return new Promise((n,s)=>{try{const i=e==null?void 0:e.callback;i&&delete e.callback,this.toCanvas(e).toBlob(c=>{n(c),i==null||i(c)},e==null?void 0:e.mimeType,e==null?void 0:e.quality)}catch(i){s(i)}})}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Qe.dragDistance}_off(e,n,s){let i=this.eventListeners[e],c,d,h;for(c=0;c<i.length;c++)if(d=i[c].name,h=i[c].handler,(d!=="konva"||n==="konva")&&(!n||d===n)&&(!s||s===h)){if(i.splice(c,1),i.length===0){delete this.eventListeners[e];break}c--}}_fireChangeEvent(e,n,s){this._fire(e+BC,{oldVal:n,newVal:s})}addName(e){if(!this.hasName(e)){const n=this.name(),s=n?n+" "+e:e;this.name(s)}return this}hasName(e){if(!e)return!1;const n=this.name();return n?(n||"").split(/\s/g).indexOf(e)!==-1:!1}removeName(e){const n=(this.name()||"").split(/\s/g),s=n.indexOf(e);return s!==-1&&(n.splice(s,1),this.name(n.join(" "))),this}setAttr(e,n){const s=this[d2+he._capitalize(e)];return he._isFunction(s)?s.call(this,n):this._setAttr(e,n),this}_requestDraw(){if(Qe.autoDrawEnabled){const e=this.getLayer()||this.getStage();e==null||e.batchDraw()}}_setAttr(e,n){const s=this.attrs[e];s===n&&!he.isObject(n)||(n==null?delete this.attrs[e]:this.attrs[e]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(e,s,n),this._requestDraw())}_setComponentAttr(e,n,s){let i;s!==void 0&&(i=this.attrs[e],i||(this.attrs[e]=this.getAttr(e)),this.attrs[e][n]=s,this._fireChangeEvent(e,i,s))}_fireAndBubble(e,n,s){n&&this.nodeType===f2&&(n.target=this);const i=[zC,FC,IC,OC,UC,jC];if(!(i.indexOf(e)!==-1&&(s&&(this===s||this.isAncestorOf&&this.isAncestorOf(s))||this.nodeType==="Stage"&&!s))){this._fire(e,n);const d=i.indexOf(e)!==-1&&s&&s.isAncestorOf&&s.isAncestorOf(this)&&!s.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!d&&(s&&s.parent?this._fireAndBubble.call(this.parent,e,n,s):this._fireAndBubble.call(this.parent,e,n))}}_getProtoListeners(e){var n,s;const{nodeType:i}=this,c=Ge.protoListenerMap.get(i)||{};let d=c==null?void 0:c[e];if(d===void 0){d=[];let h=Object.getPrototypeOf(this);for(;h;){const p=(s=(n=h.eventListeners)===null||n===void 0?void 0:n[e])!==null&&s!==void 0?s:[];d.push(...p),h=Object.getPrototypeOf(h)}c[e]=d,Ge.protoListenerMap.set(i,c)}return d}_fire(e,n){n=n||{},n.currentTarget=this,n.type=e;const s=this._getProtoListeners(e);if(s)for(let c=0;c<s.length;c++)s[c].handler.call(this,n);const i=this.eventListeners[e];if(i)for(let c=0;c<i.length;c++)i[c].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){const n=e?e.pointerId:void 0,s=this.getStage(),i=this.getAbsolutePosition();if(!s)return;const c=s._getPointerById(n)||s._changedPointerPositions[0]||i;on._dragElements.set(this._id,{node:this,startPointerPos:c,offset:{x:c.x-i.x,y:c.y-i.y},dragStatus:"ready",pointerId:n})}startDrag(e,n=!0){on._dragElements.has(this._id)||this._createDragElement(e);const s=on._dragElements.get(this._id);s.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:e&&e.evt},n)}_setDragPosition(e,n){const s=this.getStage()._getPointerById(n.pointerId);if(!s)return;let i={x:s.x-n.offset.x,y:s.y-n.offset.y};const c=this.dragBoundFunc();if(c!==void 0){const d=c.call(this,i,e);d?i=d:he.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}stopDrag(e){const n=on._dragElements.get(this._id);n&&(n.dragStatus="stopped"),on._endDragBefore(e),on._endDragAfter(e)}setDraggable(e){this._setAttr("draggable",e),this._dragChange()}isDragging(){const e=on._dragElements.get(this._id);return e?e.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(e){if(!(!(e.evt.button!==void 0)||Qe.dragButtons.indexOf(e.evt.button)>=0)||this.isDragging())return;let i=!1;on._dragElements.forEach(c=>{this.isAncestorOf(c.node)&&(i=!0)}),i||this._createDragElement(e)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const n=on._dragElements.get(this._id),s=n&&n.dragStatus==="dragging",i=n&&n.dragStatus==="ready";s?this.stopDrag():i&&on._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(e={x:0,y:0}){const n=this.getStage();if(!n)return!1;const s={x:-e.x,y:-e.y,width:n.width()+2*e.x,height:n.height()+2*e.y};return he.haveIntersection(s,this.getClientRect())}static create(e,n){return he._isString(e)&&(e=JSON.parse(e)),this._createNode(e,n)}static _createNode(e,n){let s=Ge.prototype.getClassName.call(e),i=e.children,c,d,h;n&&(e.attrs.container=n),Qe[s]||(he.warn('Can not find a node with class name "'+s+'". Fallback to "Shape".'),s="Shape");const p=Qe[s];if(c=new p(e.attrs),i)for(d=i.length,h=0;h<d;h++)c.add(Ge._createNode(i[h]));return c}}Ge.protoListenerMap=new Map;Ge.prototype.nodeType="Node";Ge.prototype._attrsAffectingSize=[];Ge.prototype.eventListeners={};Ge.prototype.on.call(Ge.prototype,HC,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(zo),this._clearSelfAndDescendantCache(Vs)});Ge.prototype.on.call(Ge.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(Eg)});Ge.prototype.on.call(Ge.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(_g)});Ge.prototype.on.call(Ge.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache($p)});const xn=te.addGetterSetter;xn(Ge,"zIndex");xn(Ge,"absolutePosition");xn(Ge,"position");xn(Ge,"x",0,We());xn(Ge,"y",0,We());xn(Ge,"globalCompositeOperation","source-over",zl());xn(Ge,"opacity",1,We());xn(Ge,"name","",zl());xn(Ge,"id","",zl());xn(Ge,"rotation",0,We());te.addComponentsGetterSetter(Ge,"scale",["x","y"]);xn(Ge,"scaleX",1,We());xn(Ge,"scaleY",1,We());te.addComponentsGetterSetter(Ge,"skew",["x","y"]);xn(Ge,"skewX",0,We());xn(Ge,"skewY",0,We());te.addComponentsGetterSetter(Ge,"offset",["x","y"]);xn(Ge,"offsetX",0,We());xn(Ge,"offsetY",0,We());xn(Ge,"dragDistance",void 0,We());xn(Ge,"width",0,We());xn(Ge,"height",0,We());xn(Ge,"listening",!0,zi());xn(Ge,"preventDefault",!0,zi());xn(Ge,"filters",void 0,function(t){return this._filterUpToDate=!1,t});xn(Ge,"visible",!0,zi());xn(Ge,"transformsEnabled","all",zl());xn(Ge,"size");xn(Ge,"dragBoundFunc");xn(Ge,"draggable",!1,zi());te.backCompat(Ge,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});class Ya extends Ge{constructor(){super(...arguments),this.children=[]}getChildren(e){const n=this.children||[];return e?n.filter(e):n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(e.length===0)return this;if(e.length>1){for(let s=0;s<e.length;s++)this.add(e[s]);return this}const n=e[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire("add",{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){const n=this._generalFind(e,!0);return n.length>0?n[0]:void 0}_generalFind(e,n){const s=[];return this._descendants(i=>{const c=i._isMatch(e);return c&&s.push(i),!!(c&&n)}),s}_descendants(e){let n=!1;const s=this.getChildren();for(const i of s){if(n=e(i),n)return!0;if(i.hasChildren()&&(n=i._descendants(e),n))return!0}return!1}toObject(){const e=Ge.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(n=>{e.children.push(n.toObject())}),e}isAncestorOf(e){let n=e.getParent();for(;n;){if(n._id===this._id)return!0;n=n.getParent()}return!1}clone(e){const n=Ge.prototype.clone.call(this,e);return this.getChildren().forEach(function(s){n.add(s.clone())}),n}getAllIntersections(e){const n=[];return this.find("Shape").forEach(s=>{s.isVisible()&&s.intersects(e)&&n.push(s)}),n}_clearSelfAndDescendantCache(e){var n;super._clearSelfAndDescendantCache(e),!this.isCached()&&((n=this.children)===null||n===void 0||n.forEach(function(s){s._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)===null||e===void 0||e.forEach(function(n,s){n.index=s}),this._requestDraw()}drawScene(e,n,s){const i=this.getLayer(),c=e||i&&i.getCanvas(),d=c&&c.getContext(),h=this._getCanvasCache(),p=h&&h.scene,u=c&&c.isCache;if(!this.isVisible()&&!u)return this;if(p){d.save();const A=this.getAbsoluteTransform(n).getMatrix();d.transform(A[0],A[1],A[2],A[3],A[4],A[5]),this._drawCachedSceneCanvas(d),d.restore()}else this._drawChildren("drawScene",c,n,s);return this}drawHit(e,n){if(!this.shouldDrawHit(n))return this;const s=this.getLayer(),i=e||s&&s.hitCanvas,c=i&&i.getContext(),d=this._getCanvasCache();if(d&&d.hit){c.save();const p=this.getAbsoluteTransform(n).getMatrix();c.transform(p[0],p[1],p[2],p[3],p[4],p[5]),this._drawCachedHitCanvas(c),c.restore()}else this._drawChildren("drawHit",i,n);return this}_drawChildren(e,n,s,i){var c;const d=n&&n.getContext(),h=this.clipWidth(),p=this.clipHeight(),u=this.clipFunc(),A=typeof h=="number"&&typeof p=="number"||u,y=s===this;if(A){d.save();const S=this.getAbsoluteTransform(s);let C=S.getMatrix();d.transform(C[0],C[1],C[2],C[3],C[4],C[5]),d.beginPath();let R;if(u)R=u.call(this,d,this);else{const T=this.clipX(),D=this.clipY();d.rect(T||0,D||0,h,p)}d.clip.apply(d,R),C=S.copy().invert().getMatrix(),d.transform(C[0],C[1],C[2],C[3],C[4],C[5])}const x=!y&&this.globalCompositeOperation()!=="source-over"&&e==="drawScene";x&&(d.save(),d._applyGlobalCompositeOperation(this)),(c=this.children)===null||c===void 0||c.forEach(function(S){S[e](n,s,i)}),x&&d.restore(),A&&d.restore()}getClientRect(e={}){var n;const s=e.skipTransform,i=e.relativeTo;let c,d,h,p,u={x:1/0,y:1/0,width:0,height:0};const A=this;(n=this.children)===null||n===void 0||n.forEach(function(S){if(!S.visible())return;const C=S.getClientRect({relativeTo:A,skipShadow:e.skipShadow,skipStroke:e.skipStroke});C.width===0&&C.height===0||(c===void 0?(c=C.x,d=C.y,h=C.x+C.width,p=C.y+C.height):(c=Math.min(c,C.x),d=Math.min(d,C.y),h=Math.max(h,C.x+C.width),p=Math.max(p,C.y+C.height)))});const y=this.find("Shape");let x=!1;for(let S=0;S<y.length;S++)if(y[S]._isVisible(this)){x=!0;break}return x&&c!==void 0?u={x:c,y:d,width:h-c,height:p-d}:u={x:0,y:0,width:0,height:0},s?u:this._transformedRect(u,i)}}te.addComponentsGetterSetter(Ya,"clip",["x","y","width","height"]);te.addGetterSetter(Ya,"clipX",void 0,We());te.addGetterSetter(Ya,"clipY",void 0,We());te.addGetterSetter(Ya,"clipWidth",void 0,We());te.addGetterSetter(Ya,"clipHeight",void 0,We());te.addGetterSetter(Ya,"clipFunc");const Df=new Map,wx=Qe._global.PointerEvent!==void 0;function Zm(t){return Df.get(t)}function Vg(t){return{evt:t,pointerId:t.pointerId}}function _x(t,e){return Df.get(t)===e}function Ex(t,e){bf(t),e.getStage()&&(Df.set(t,e),wx&&e._fire("gotpointercapture",Vg(new PointerEvent("gotpointercapture"))))}function bf(t,e){const n=Df.get(t);if(!n)return;const s=n.getStage();s&&s.content,Df.delete(t),wx&&n._fire("lostpointercapture",Vg(new PointerEvent("lostpointercapture")))}const XC="Stage",QC="string",p2="px",YC="mouseout",Rx="mouseleave",Tx="mouseover",Dx="mouseenter",Lx="mousemove",kx="mousedown",Nx="mouseup",hf="pointermove",pf="pointerdown",_u="pointerup",Af="pointercancel",VC="lostpointercapture",Ip="pointerout",mf="pointerleave",Op="pointerover",Up="pointerenter",Rg="contextmenu",Bx="touchstart",Px="touchend",Mx="touchmove",zx="touchcancel",Tg="wheel",qC=5,KC=[[Dx,"_pointerenter"],[kx,"_pointerdown"],[Lx,"_pointermove"],[Nx,"_pointerup"],[Rx,"_pointerleave"],[Bx,"_pointerdown"],[Mx,"_pointermove"],[Px,"_pointerup"],[zx,"_pointercancel"],[Tx,"_pointerover"],[Tg,"_wheel"],[Rg,"_contextmenu"],[pf,"_pointerdown"],[hf,"_pointermove"],[_u,"_pointerup"],[Af,"_pointercancel"],[mf,"_pointerleave"],[VC,"_lostpointercapture"]],$m={mouse:{[Ip]:YC,[mf]:Rx,[Op]:Tx,[Up]:Dx,[hf]:Lx,[pf]:kx,[_u]:Nx,[Af]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[Ip]:"touchout",[mf]:"touchleave",[Op]:"touchover",[Up]:"touchenter",[hf]:Mx,[pf]:Bx,[_u]:Px,[Af]:zx,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[Ip]:Ip,[mf]:mf,[Op]:Op,[Up]:Up,[hf]:hf,[pf]:pf,[_u]:_u,[Af]:Af,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},gf=t=>t.indexOf("pointer")>=0?"pointer":t.indexOf("touch")>=0?"touch":"mouse",mu=t=>{const e=gf(t);if(e==="pointer")return Qe.pointerEventsEnabled&&$m.pointer;if(e==="touch")return $m.touch;if(e==="mouse")return $m.mouse};function A2(t={}){return(t.clipFunc||t.clipWidth||t.clipHeight)&&he.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}const JC="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",Sf=[];let hA=class extends Ya{constructor(e){super(A2(e)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),Sf.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{A2(this.attrs)}),this._checkVisibility()}_validateAdd(e){const n=e.getType()==="Layer",s=e.getType()==="FastLayer";n||s||he.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const e=this.visible()?"":"none";this.content.style.display=e}setContainer(e){if(typeof e===QC){let n;if(e.charAt(0)==="."){const s=e.slice(1);e=document.getElementsByClassName(s)[0]}else e.charAt(0)!=="#"?n=e:n=e.slice(1),e=document.getElementById(n);if(!e)throw"Can not find container in document with id "+n}return this._setAttr("container",e),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),e.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const e=this.children,n=e.length;for(let s=0;s<n;s++)e[s].clear();return this}clone(e){return e||(e={}),e.container=typeof document<"u"&&document.createElement("div"),Ya.prototype.clone.call(this,e)}destroy(){super.destroy();const e=this.content;e&&he._isInDocument(e)&&this.container().removeChild(e);const n=Sf.indexOf(this);return n>-1&&Sf.splice(n,1),he.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const e=this._pointerPositions[0]||this._changedPointerPositions[0];return e?{x:e.x,y:e.y}:(he.warn(JC),null)}_getPointerById(e){return this._pointerPositions.find(n=>n.id===e)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(e){e={...e},e.x=e.x||0,e.y=e.y||0,e.width=e.width||this.width(),e.height=e.height||this.height();const n=new Oo({width:e.width,height:e.height,pixelRatio:e.pixelRatio||1}),s=n.getContext()._context,i=this.children;return(e.x||e.y)&&s.translate(-1*e.x,-1*e.y),i.forEach(function(c){if(!c.isVisible())return;const d=c._toKonvaCanvas(e);s.drawImage(d._canvas,e.x,e.y,d.getWidth()/d.getPixelRatio(),d.getHeight()/d.getPixelRatio())}),n}getIntersection(e){if(!e)return null;const n=this.children,s=n.length,i=s-1;for(let c=i;c>=0;c--){const d=n[c].getIntersection(e);if(d)return d}return null}_resizeDOM(){const e=this.width(),n=this.height();this.content&&(this.content.style.width=e+p2,this.content.style.height=n+p2),this.bufferCanvas.setSize(e,n),this.bufferHitCanvas.setSize(e,n),this.children.forEach(s=>{s.setSize({width:e,height:n}),s.draw()})}add(e,...n){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.add(arguments[i]);return this}super.add(e);const s=this.children.length;return s>qC&&he.warn("The stage has "+s+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e.setSize({width:this.width(),height:this.height()}),e.draw(),Qe.isBrowser&&this.content.appendChild(e.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(e){return _x(e,this)}setPointerCapture(e){Ex(e,this)}releaseCapture(e){bf(e)}getLayers(){return this.children}_bindContentEvents(){Qe.isBrowser&&KC.forEach(([e,n])=>{this.content.addEventListener(e,s=>{this[n](s)},{passive:!1})})}_pointerenter(e){this.setPointersPositions(e);const n=mu(e.type);n&&this._fire(n.pointerenter,{evt:e,target:this,currentTarget:this})}_pointerover(e){this.setPointersPositions(e);const n=mu(e.type);n&&this._fire(n.pointerover,{evt:e,target:this,currentTarget:this})}_getTargetShape(e){let n=this[e+"targetShape"];return n&&!n.getStage()&&(n=null),n}_pointerleave(e){const n=mu(e.type),s=gf(e.type);if(!n)return;this.setPointersPositions(e);const i=this._getTargetShape(s),c=!(Qe.isDragging()||Qe.isTransforming())||Qe.hitOnDragEnabled;i&&c?(i._fireAndBubble(n.pointerout,{evt:e}),i._fireAndBubble(n.pointerleave,{evt:e}),this._fire(n.pointerleave,{evt:e,target:this,currentTarget:this}),this[s+"targetShape"]=null):c&&(this._fire(n.pointerleave,{evt:e,target:this,currentTarget:this}),this._fire(n.pointerout,{evt:e,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(e){const n=mu(e.type),s=gf(e.type);if(!n)return;this.setPointersPositions(e);let i=!1;this._changedPointerPositions.forEach(c=>{const d=this.getIntersection(c);if(on.justDragged=!1,Qe["_"+s+"ListenClick"]=!0,!d||!d.isListening()){this[s+"ClickStartShape"]=void 0;return}Qe.capturePointerEventsEnabled&&d.setPointerCapture(c.id),this[s+"ClickStartShape"]=d,d._fireAndBubble(n.pointerdown,{evt:e,pointerId:c.id}),i=!0;const h=e.type.indexOf("touch")>=0;d.preventDefault()&&e.cancelable&&h&&e.preventDefault()}),i||this._fire(n.pointerdown,{evt:e,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(e){const n=mu(e.type),s=gf(e.type);if(!n)return;const i=e.type.indexOf("touch")>=0||e.pointerType==="touch";if(Qe.isDragging()&&on.node.preventDefault()&&e.cancelable&&i&&e.preventDefault(),this.setPointersPositions(e),!(!(Qe.isDragging()||Qe.isTransforming())||Qe.hitOnDragEnabled))return;const d={};let h=!1;const p=this._getTargetShape(s);this._changedPointerPositions.forEach(u=>{const A=Zm(u.id)||this.getIntersection(u),y=u.id,x={evt:e,pointerId:y},S=p!==A;if(S&&p&&(p._fireAndBubble(n.pointerout,{...x},A),p._fireAndBubble(n.pointerleave,{...x},A)),A){if(d[A._id])return;d[A._id]=!0}A&&A.isListening()?(h=!0,S&&(A._fireAndBubble(n.pointerover,{...x},p),A._fireAndBubble(n.pointerenter,{...x},p),this[s+"targetShape"]=A),A._fireAndBubble(n.pointermove,{...x})):p&&(this._fire(n.pointerover,{evt:e,target:this,currentTarget:this,pointerId:y}),this[s+"targetShape"]=null)}),h||this._fire(n.pointermove,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(e){const n=mu(e.type),s=gf(e.type);if(!n)return;this.setPointersPositions(e);const i=this[s+"ClickStartShape"],c=this[s+"ClickEndShape"],d={};let h=!1;this._changedPointerPositions.forEach(p=>{const u=Zm(p.id)||this.getIntersection(p);if(u){if(u.releaseCapture(p.id),d[u._id])return;d[u._id]=!0}const A=p.id,y={evt:e,pointerId:A};let x=!1;Qe["_"+s+"InDblClickWindow"]?(x=!0,clearTimeout(this[s+"DblTimeout"])):on.justDragged||(Qe["_"+s+"InDblClickWindow"]=!0,clearTimeout(this[s+"DblTimeout"])),this[s+"DblTimeout"]=setTimeout(function(){Qe["_"+s+"InDblClickWindow"]=!1},Qe.dblClickWindow),u&&u.isListening()?(h=!0,this[s+"ClickEndShape"]=u,u._fireAndBubble(n.pointerup,{...y}),Qe["_"+s+"ListenClick"]&&i&&i===u&&(u._fireAndBubble(n.pointerclick,{...y}),x&&c&&c===u&&u._fireAndBubble(n.pointerdblclick,{...y}))):(this[s+"ClickEndShape"]=null,h||(this._fire(n.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),h=!0),Qe["_"+s+"ListenClick"]&&this._fire(n.pointerclick,{evt:e,target:this,currentTarget:this,pointerId:A}),x&&this._fire(n.pointerdblclick,{evt:e,target:this,currentTarget:this,pointerId:A}))}),h||this._fire(n.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),Qe["_"+s+"ListenClick"]=!1,e.cancelable&&s!=="touch"&&s!=="pointer"&&e.preventDefault()}_contextmenu(e){this.setPointersPositions(e);const n=this.getIntersection(this.getPointerPosition());n&&n.isListening()?n._fireAndBubble(Rg,{evt:e}):this._fire(Rg,{evt:e,target:this,currentTarget:this})}_wheel(e){this.setPointersPositions(e);const n=this.getIntersection(this.getPointerPosition());n&&n.isListening()?n._fireAndBubble(Tg,{evt:e}):this._fire(Tg,{evt:e,target:this,currentTarget:this})}_pointercancel(e){this.setPointersPositions(e);const n=Zm(e.pointerId)||this.getIntersection(this.getPointerPosition());n&&n._fireAndBubble(_u,Vg(e)),bf(e.pointerId)}_lostpointercapture(e){bf(e.pointerId)}setPointersPositions(e){const n=this._getContentPosition();let s=null,i=null;e=e||window.event,e.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(e.touches,c=>{this._pointerPositions.push({id:c.identifier,x:(c.clientX-n.left)/n.scaleX,y:(c.clientY-n.top)/n.scaleY})}),Array.prototype.forEach.call(e.changedTouches||e.touches,c=>{this._changedPointerPositions.push({id:c.identifier,x:(c.clientX-n.left)/n.scaleX,y:(c.clientY-n.top)/n.scaleY})})):(s=(e.clientX-n.left)/n.scaleX,i=(e.clientY-n.top)/n.scaleY,this.pointerPos={x:s,y:i},this._pointerPositions=[{x:s,y:i,id:he._getFirstPointerId(e)}],this._changedPointerPositions=[{x:s,y:i,id:he._getFirstPointerId(e)}])}_setPointerPosition(e){he.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(e)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const e=this.content.getBoundingClientRect();return{top:e.top,left:e.left,scaleX:e.width/this.content.clientWidth||1,scaleY:e.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new Oo({width:this.width(),height:this.height()}),this.bufferHitCanvas=new Qg({pixelRatio:1,width:this.width(),height:this.height()}),!Qe.isBrowser)return;const e=this.container();if(!e)throw"Stage has no container. A container is required.";e.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),e.appendChild(this.content),this._resizeDOM()}cache(){return he.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(e){e.batchDraw()}),this}};hA.prototype.nodeType=XC;Mn(hA);te.addGetterSetter(hA,"container");Qe.isBrowser&&document.addEventListener("visibilitychange",()=>{Sf.forEach(t=>{t.batchDraw()})});const Fx="hasShadow",Ix="shadowRGBA",Ox="patternImage",Ux="linearGradient",jx="radialGradient";let jp;function eg(){return jp||(jp=he.createCanvasElement().getContext("2d"),jp)}const Cf={};function ZC(t){const e=this.attrs.fillRule;e?t.fill(e):t.fill()}function $C(t){t.stroke()}function ew(t){const e=this.attrs.fillRule;e?t.fill(e):t.fill()}function tw(t){t.stroke()}function nw(){this._clearCache(Fx)}function rw(){this._clearCache(Ix)}function aw(){this._clearCache(Ox)}function iw(){this._clearCache(Ux)}function sw(){this._clearCache(jx)}class Fe extends Ge{constructor(e){super(e);let n,s=0;for(;n=he.getHitColor(),!(n&&!(n in Cf));)if(s++,s>=1e4){he.warn("Failed to find a unique color key for a shape. Konva may work incorrectly. Most likely your browser is using canvas farbling. Consider disabling it."),n=he.getRandomColor();break}this.colorKey=n,Cf[n]=this}getContext(){return he.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return he.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(Fx,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(Ox,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const n=eg().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(n&&n.setTransform){const s=new Qa;s.translate(this.fillPatternX(),this.fillPatternY()),s.rotate(Qe.getAngle(this.fillPatternRotation())),s.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),s.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const i=s.getMatrix(),c=typeof DOMMatrix>"u"?{a:i[0],b:i[1],c:i[2],d:i[3],e:i[4],f:i[5]}:new DOMMatrix(i);n.setTransform(c)}return n}}_getLinearGradient(){return this._getCache(Ux,this.__getLinearGradient)}__getLinearGradient(){const e=this.fillLinearGradientColorStops();if(e){const n=eg(),s=this.fillLinearGradientStartPoint(),i=this.fillLinearGradientEndPoint(),c=n.createLinearGradient(s.x,s.y,i.x,i.y);for(let d=0;d<e.length;d+=2)c.addColorStop(e[d],e[d+1]);return c}}_getRadialGradient(){return this._getCache(jx,this.__getRadialGradient)}__getRadialGradient(){const e=this.fillRadialGradientColorStops();if(e){const n=eg(),s=this.fillRadialGradientStartPoint(),i=this.fillRadialGradientEndPoint(),c=n.createRadialGradient(s.x,s.y,this.fillRadialGradientStartRadius(),i.x,i.y,this.fillRadialGradientEndRadius());for(let d=0;d<e.length;d+=2)c.addColorStop(e[d],e[d+1]);return c}}getShadowRGBA(){return this._getCache(Ix,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const e=he.colorToRGBA(this.shadowColor());if(e)return"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.shadowOpacity()||1)+")"}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const e=this.hitStrokeWidth();return e==="auto"?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){const n=this.getStage();if(!n)return!1;const s=n.bufferHitCanvas;return s.getContext().clear(),this.drawHit(s,void 0,!0),s.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data[3]>0}destroy(){return Ge.prototype.destroy.call(this),delete Cf[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){var n;if(!((n=this.attrs.perfectDrawEnabled)!==null&&n!==void 0?n:!0))return!1;const i=e||this.hasFill(),c=this.hasStroke(),d=this.getAbsoluteOpacity()!==1;if(i&&c&&d)return!0;const h=this.hasShadow(),p=this.shadowForStrokeEnabled();return!!(i&&c&&h&&p)}setStrokeHitEnabled(e){he.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),e?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(e={}){let n=!1,s=this.getParent();for(;s;){if(s.isCached()){n=!0;break}s=s.getParent()}const i=e.skipTransform,c=e.relativeTo||n&&this.getStage()||void 0,d=this.getSelfRect(),p=!e.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,u=d.width+p,A=d.height+p,y=!e.skipShadow&&this.hasShadow(),x=y?this.shadowOffsetX():0,S=y?this.shadowOffsetY():0,C=u+Math.abs(x),R=A+Math.abs(S),T=y&&this.shadowBlur()||0,D=C+T*2,P=R+T*2,M={width:D,height:P,x:-(p/2+T)+Math.min(x,0)+d.x,y:-(p/2+T)+Math.min(S,0)+d.y};return i?M:this._transformedRect(M,c)}drawScene(e,n,s){const i=this.getLayer(),c=e||i.getCanvas(),d=c.getContext(),h=this._getCanvasCache(),p=this.getSceneFunc(),u=this.hasShadow();let A;const y=n===this;if(!this.isVisible()&&!y)return this;if(h){d.save();const x=this.getAbsoluteTransform(n).getMatrix();return d.transform(x[0],x[1],x[2],x[3],x[4],x[5]),this._drawCachedSceneCanvas(d),d.restore(),this}if(!p)return this;if(d.save(),this._useBufferCanvas()){A=this.getStage();const x=s||A.bufferCanvas,S=x.getContext();s?(S.save(),S.setTransform(1,0,0,1,0,0),S.clearRect(0,0,x.width,x.height),S.restore()):S.clear(),S.save(),S._applyLineJoin(this),S._applyMiterLimit(this);const C=this.getAbsoluteTransform(n).getMatrix();S.transform(C[0],C[1],C[2],C[3],C[4],C[5]),p.call(this,S,this),S.restore();const R=x.pixelRatio;u&&d._applyShadow(this),y||(d._applyOpacity(this),d._applyGlobalCompositeOperation(this)),d.drawImage(x._canvas,x.x||0,x.y||0,x.width/R,x.height/R)}else{if(d._applyLineJoin(this),d._applyMiterLimit(this),!y){const x=this.getAbsoluteTransform(n).getMatrix();d.transform(x[0],x[1],x[2],x[3],x[4],x[5]),d._applyOpacity(this),d._applyGlobalCompositeOperation(this)}u&&d._applyShadow(this),p.call(this,d,this)}return d.restore(),this}drawHit(e,n,s=!1){if(!this.shouldDrawHit(n,s))return this;const i=this.getLayer(),c=e||i.hitCanvas,d=c&&c.getContext(),h=this.hitFunc()||this.sceneFunc(),p=this._getCanvasCache(),u=p&&p.hit;if(this.colorKey||he.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),u){d.save();const y=this.getAbsoluteTransform(n).getMatrix();return d.transform(y[0],y[1],y[2],y[3],y[4],y[5]),this._drawCachedHitCanvas(d),d.restore(),this}if(!h)return this;if(d.save(),d._applyLineJoin(this),d._applyMiterLimit(this),!(this===n)){const y=this.getAbsoluteTransform(n).getMatrix();d.transform(y[0],y[1],y[2],y[3],y[4],y[5])}return h.call(this,d,this),d.restore(),this}drawHitFromCache(e=0){const n=this._getCanvasCache(),s=this._getCachedSceneCanvas(),i=n.hit,c=i.getContext(),d=i.getWidth(),h=i.getHeight();c.clear(),c.drawImage(s._canvas,0,0,d,h);try{const p=c.getImageData(0,0,d,h),u=p.data,A=u.length,y=he._hexToRgb(this.colorKey);for(let x=0;x<A;x+=4)u[x+3]>e?(u[x]=y.r,u[x+1]=y.g,u[x+2]=y.b,u[x+3]=255):u[x+3]=0;c.putImageData(p,0,0)}catch(p){he.error("Unable to draw hit graph from cached scene canvas. "+p.message)}return this}hasPointerCapture(e){return _x(e,this)}setPointerCapture(e){Ex(e,this)}releaseCapture(e){bf(e)}}Fe.prototype._fillFunc=ZC;Fe.prototype._strokeFunc=$C;Fe.prototype._fillFuncHit=ew;Fe.prototype._strokeFuncHit=tw;Fe.prototype._centroid=!1;Fe.prototype.nodeType="Shape";Mn(Fe);Fe.prototype.eventListeners={};Fe.prototype.on.call(Fe.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",nw);Fe.prototype.on.call(Fe.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",rw);Fe.prototype.on.call(Fe.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",aw);Fe.prototype.on.call(Fe.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",iw);Fe.prototype.on.call(Fe.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",sw);te.addGetterSetter(Fe,"stroke",void 0,Cx());te.addGetterSetter(Fe,"strokeWidth",2,We());te.addGetterSetter(Fe,"fillAfterStrokeEnabled",!1);te.addGetterSetter(Fe,"hitStrokeWidth","auto",Yg());te.addGetterSetter(Fe,"strokeHitEnabled",!0,zi());te.addGetterSetter(Fe,"perfectDrawEnabled",!0,zi());te.addGetterSetter(Fe,"shadowForStrokeEnabled",!0,zi());te.addGetterSetter(Fe,"lineJoin");te.addGetterSetter(Fe,"lineCap");te.addGetterSetter(Fe,"miterLimit");te.addGetterSetter(Fe,"sceneFunc");te.addGetterSetter(Fe,"hitFunc");te.addGetterSetter(Fe,"dash");te.addGetterSetter(Fe,"dashOffset",0,We());te.addGetterSetter(Fe,"shadowColor",void 0,zl());te.addGetterSetter(Fe,"shadowBlur",0,We());te.addGetterSetter(Fe,"shadowOpacity",1,We());te.addComponentsGetterSetter(Fe,"shadowOffset",["x","y"]);te.addGetterSetter(Fe,"shadowOffsetX",0,We());te.addGetterSetter(Fe,"shadowOffsetY",0,We());te.addGetterSetter(Fe,"fillPatternImage");te.addGetterSetter(Fe,"fill",void 0,Cx());te.addGetterSetter(Fe,"fillPatternX",0,We());te.addGetterSetter(Fe,"fillPatternY",0,We());te.addGetterSetter(Fe,"fillLinearGradientColorStops");te.addGetterSetter(Fe,"strokeLinearGradientColorStops");te.addGetterSetter(Fe,"fillRadialGradientStartRadius",0);te.addGetterSetter(Fe,"fillRadialGradientEndRadius",0);te.addGetterSetter(Fe,"fillRadialGradientColorStops");te.addGetterSetter(Fe,"fillPatternRepeat","repeat");te.addGetterSetter(Fe,"fillEnabled",!0);te.addGetterSetter(Fe,"strokeEnabled",!0);te.addGetterSetter(Fe,"shadowEnabled",!0);te.addGetterSetter(Fe,"dashEnabled",!0);te.addGetterSetter(Fe,"strokeScaleEnabled",!0);te.addGetterSetter(Fe,"fillPriority","color");te.addComponentsGetterSetter(Fe,"fillPatternOffset",["x","y"]);te.addGetterSetter(Fe,"fillPatternOffsetX",0,We());te.addGetterSetter(Fe,"fillPatternOffsetY",0,We());te.addComponentsGetterSetter(Fe,"fillPatternScale",["x","y"]);te.addGetterSetter(Fe,"fillPatternScaleX",1,We());te.addGetterSetter(Fe,"fillPatternScaleY",1,We());te.addComponentsGetterSetter(Fe,"fillLinearGradientStartPoint",["x","y"]);te.addComponentsGetterSetter(Fe,"strokeLinearGradientStartPoint",["x","y"]);te.addGetterSetter(Fe,"fillLinearGradientStartPointX",0);te.addGetterSetter(Fe,"strokeLinearGradientStartPointX",0);te.addGetterSetter(Fe,"fillLinearGradientStartPointY",0);te.addGetterSetter(Fe,"strokeLinearGradientStartPointY",0);te.addComponentsGetterSetter(Fe,"fillLinearGradientEndPoint",["x","y"]);te.addComponentsGetterSetter(Fe,"strokeLinearGradientEndPoint",["x","y"]);te.addGetterSetter(Fe,"fillLinearGradientEndPointX",0);te.addGetterSetter(Fe,"strokeLinearGradientEndPointX",0);te.addGetterSetter(Fe,"fillLinearGradientEndPointY",0);te.addGetterSetter(Fe,"strokeLinearGradientEndPointY",0);te.addComponentsGetterSetter(Fe,"fillRadialGradientStartPoint",["x","y"]);te.addGetterSetter(Fe,"fillRadialGradientStartPointX",0);te.addGetterSetter(Fe,"fillRadialGradientStartPointY",0);te.addComponentsGetterSetter(Fe,"fillRadialGradientEndPoint",["x","y"]);te.addGetterSetter(Fe,"fillRadialGradientEndPointX",0);te.addGetterSetter(Fe,"fillRadialGradientEndPointY",0);te.addGetterSetter(Fe,"fillPatternRotation",0);te.addGetterSetter(Fe,"fillRule",void 0,zl());te.backCompat(Fe,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});const ow="beforeDraw",lw="draw",Gx=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],cw=Gx.length;let Fl=class extends Ya{constructor(e){super(e),this.canvas=new Oo,this.hitCanvas=new Qg({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);const n=this.getStage();return n&&n.content&&(n.content.removeChild(this.getNativeCanvasElement()),e<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[e+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Ge.prototype.moveToTop.call(this);const e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!Ge.prototype.moveUp.call(this))return!1;const n=this.getStage();return!n||!n.content?!1:(n.content.removeChild(this.getNativeCanvasElement()),this.index<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[this.index+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Ge.prototype.moveDown.call(this)){const e=this.getStage();if(e){const n=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),n[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Ge.prototype.moveToBottom.call(this)){const e=this.getStage();if(e){const n=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),n[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const e=this.getNativeCanvasElement();return Ge.prototype.remove.call(this),e&&e.parentNode&&he._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize({width:e,height:n}){return this.canvas.setSize(e,n),this.hitCanvas.setSize(e,n),this._setSmoothEnabled(),this}_validateAdd(e){const n=e.getType();n!=="Group"&&n!=="Shape"&&he.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(e){return e={...e},e.width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=e.x!==void 0?e.x:this.x(),e.y=e.y!==void 0?e.y:this.y(),Ge.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){he.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){he.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,he.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;let n=1,s=!1;for(;;){for(let i=0;i<cw;i++){const c=Gx[i],d=this._getIntersection({x:e.x+c.x*n,y:e.y+c.y*n}),h=d.shape;if(h)return h;if(s=!!d.antialiased,!d.antialiased)break}if(s)n+=1;else return null}}_getIntersection(e){const n=this.hitCanvas.pixelRatio,s=this.hitCanvas.context.getImageData(Math.round(e.x*n),Math.round(e.y*n),1,1).data,i=s[3];if(i===255){const c=he.getHitColorKey(s[0],s[1],s[2]),d=Cf[c];return d?{shape:d}:{antialiased:!0}}else if(i>0)return{antialiased:!0};return{}}drawScene(e,n,s){const i=this.getLayer(),c=e||i&&i.getCanvas();return this._fire(ow,{node:this}),this.clearBeforeDraw()&&c.getContext().clear(),Ya.prototype.drawScene.call(this,c,n,s),this._fire(lw,{node:this}),this}drawHit(e,n){const s=this.getLayer(),i=e||s&&s.hitCanvas;return s&&s.clearBeforeDraw()&&s.getHitCanvas().getContext().clear(),Ya.prototype.drawHit.call(this,i,n),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){he.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(e)}getHitGraphEnabled(e){return he.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const e=this.parent;!!this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}destroy(){return he.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};Fl.prototype.nodeType="Layer";Mn(Fl);te.addGetterSetter(Fl,"imageSmoothingEnabled",!0);te.addGetterSetter(Fl,"clearBeforeDraw",!0);te.addGetterSetter(Fl,"hitGraphEnabled",!0,zi());class qg extends Fl{constructor(e){super(e),this.listening(!1),he.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}qg.prototype.nodeType="FastLayer";Mn(qg);let Tu=class extends Ya{_validateAdd(e){const n=e.getType();n!=="Group"&&n!=="Shape"&&he.throw("You may only add groups and shapes to groups.")}};Tu.prototype.nodeType="Group";Mn(Tu);const tg=(function(){return Pl.performance&&Pl.performance.now?function(){return Pl.performance.now()}:function(){return new Date().getTime()}})();class pi{constructor(e,n){this.id=pi.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:tg(),frameRate:0},this.func=e,this.setLayers(n)}setLayers(e){let n=[];return e&&(n=Array.isArray(e)?e:[e]),this.layers=n,this}getLayers(){return this.layers}addLayer(e){const n=this.layers,s=n.length;for(let i=0;i<s;i++)if(n[i]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){const n=pi.animations,s=n.length;for(let i=0;i<s;i++)if(n[i].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=tg(),pi._addAnimation(this),this}stop(){return pi._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){const n=e.id,s=this.animations,i=s.length;for(let c=0;c<i;c++)if(s[c].id===n){this.animations.splice(c,1);break}}static _runFrames(){const e={},n=this.animations;for(let s=0;s<n.length;s++){const i=n[s],c=i.layers,d=i.func;i._updateFrameObject(tg());const h=c.length;let p;if(d?p=d.call(i,i.frame)!==!1:p=!0,!!p)for(let u=0;u<h;u++){const A=c[u];A._id!==void 0&&(e[A._id]=A)}}for(const s in e)e.hasOwnProperty(s)&&e[s].batchDraw()}static _animationLoop(){const e=pi;e.animations.length?(e._runFrames(),he.requestAnimFrame(e._animationLoop)):e.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,he.requestAnimFrame(this._animationLoop))}}pi.animations=[];pi.animIdCounter=0;pi.animRunning=!1;const uw={node:1,duration:1,easing:1,onFinish:1,yoyo:1},dw=1,m2=2,g2=3,v2=["fill","stroke","shadowColor"];let fw=0;class hw{constructor(e,n,s,i,c,d,h){this.prop=e,this.propFunc=n,this.begin=i,this._pos=i,this.duration=d,this._change=0,this.prevPos=0,this.yoyo=h,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=s,this._change=c-this.begin,this.pause()}fire(e){const n=this[e];n&&n()}setTime(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())}getTime(){return this._time}setPosition(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e}getPosition(e){return e===void 0&&(e=this._time),this.func(e,this.begin,this._change,this.duration)}play(){this.state=m2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=g2,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(e){this.pause(),this._time=e,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const e=this.getTimer()-this._startTime;this.state===m2?this.setTime(e):this.state===g2&&this.setTime(this.duration-e)}pause(){this.state=dw,this.fire("onPause")}getTimer(){return new Date().getTime()}}class Cn{constructor(e){const n=this,s=e.node,i=s._id,c=e.easing||wf.Linear,d=!!e.yoyo;let h,p;typeof e.duration>"u"?h=.3:e.duration===0?h=.001:h=e.duration,this.node=s,this._id=fw++;const u=s.getLayer()||(s instanceof Qe.Stage?s.getLayers():null);u||he.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new pi(function(){n.tween.onEnterFrame()},u),this.tween=new hw(p,function(A){n._tweenFunc(A)},c,0,1,h*1e3,d),this._addListeners(),Cn.attrs[i]||(Cn.attrs[i]={}),Cn.attrs[i][this._id]||(Cn.attrs[i][this._id]={}),Cn.tweens[i]||(Cn.tweens[i]={});for(p in e)uw[p]===void 0&&this._addAttr(p,e[p]);this.reset(),this.onFinish=e.onFinish,this.onReset=e.onReset,this.onUpdate=e.onUpdate}_addAttr(e,n){const s=this.node,i=s._id;let c,d,h,p,u;const A=Cn.tweens[i][e];A&&delete Cn.attrs[i][A][e];let y=s.getAttr(e);if(he._isArray(n))if(c=[],d=Math.max(n.length,y.length),e==="points"&&n.length!==y.length&&(n.length>y.length?(p=y,y=he._prepareArrayForTween(y,n,s.closed())):(h=n,n=he._prepareArrayForTween(n,y,s.closed()))),e.indexOf("fill")===0)for(let x=0;x<d;x++)if(x%2===0)c.push(n[x]-y[x]);else{const S=he.colorToRGBA(y[x]);u=he.colorToRGBA(n[x]),y[x]=S,c.push({r:u.r-S.r,g:u.g-S.g,b:u.b-S.b,a:u.a-S.a})}else for(let x=0;x<d;x++)c.push(n[x]-y[x]);else v2.indexOf(e)!==-1?(y=he.colorToRGBA(y),u=he.colorToRGBA(n),c={r:u.r-y.r,g:u.g-y.g,b:u.b-y.b,a:u.a-y.a}):c=n-y;Cn.attrs[i][this._id][e]={start:y,diff:c,end:n,trueEnd:h,trueStart:p},Cn.tweens[i][e]=this._id}_tweenFunc(e){const n=this.node,s=Cn.attrs[n._id][this._id];let i,c,d,h,p,u,A,y;for(i in s){if(c=s[i],d=c.start,h=c.diff,y=c.end,he._isArray(d))if(p=[],A=Math.max(d.length,y.length),i.indexOf("fill")===0)for(u=0;u<A;u++)u%2===0?p.push((d[u]||0)+h[u]*e):p.push("rgba("+Math.round(d[u].r+h[u].r*e)+","+Math.round(d[u].g+h[u].g*e)+","+Math.round(d[u].b+h[u].b*e)+","+(d[u].a+h[u].a*e)+")");else for(u=0;u<A;u++)p.push((d[u]||0)+h[u]*e);else v2.indexOf(i)!==-1?p="rgba("+Math.round(d.r+h.r*e)+","+Math.round(d.g+h.g*e)+","+Math.round(d.b+h.b*e)+","+(d.a+h.a*e)+")":p=d+h*e;n.setAttr(i,p)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const e=this.node,n=Cn.attrs[e._id][this._id];n.points&&n.points.trueEnd&&e.setAttr("points",n.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const e=this.node,n=Cn.attrs[e._id][this._id];n.points&&n.points.trueStart&&e.points(n.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(e){return this.tween.seek(e*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const e=this.node._id,n=this._id,s=Cn.tweens[e];this.pause(),this.anim&&this.anim.stop();for(const i in s)delete Cn.tweens[e][i];delete Cn.attrs[e][n],Cn.tweens[e]&&(Object.keys(Cn.tweens[e]).length===0&&delete Cn.tweens[e],Object.keys(Cn.attrs[e]).length===0&&delete Cn.attrs[e])}}Cn.attrs={};Cn.tweens={};Ge.prototype.to=function(t){const e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()},new Cn(t).play()};const wf={BackEaseIn(t,e,n,s){return n*(t/=s)*t*((1.70158+1)*t-1.70158)+e},BackEaseOut(t,e,n,s){return n*((t=t/s-1)*t*((1.70158+1)*t+1.70158)+1)+e},BackEaseInOut(t,e,n,s){let i=1.70158;return(t/=s/2)<1?n/2*(t*t*(((i*=1.525)+1)*t-i))+e:n/2*((t-=2)*t*(((i*=1.525)+1)*t+i)+2)+e},ElasticEaseIn(t,e,n,s,i,c){let d=0;return t===0?e:(t/=s)===1?e+n:(c||(c=s*.3),!i||i<Math.abs(n)?(i=n,d=c/4):d=c/(2*Math.PI)*Math.asin(n/i),-(i*Math.pow(2,10*(t-=1))*Math.sin((t*s-d)*(2*Math.PI)/c))+e)},ElasticEaseOut(t,e,n,s,i,c){let d=0;return t===0?e:(t/=s)===1?e+n:(c||(c=s*.3),!i||i<Math.abs(n)?(i=n,d=c/4):d=c/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*t)*Math.sin((t*s-d)*(2*Math.PI)/c)+n+e)},ElasticEaseInOut(t,e,n,s,i,c){let d=0;return t===0?e:(t/=s/2)===2?e+n:(c||(c=s*(.3*1.5)),!i||i<Math.abs(n)?(i=n,d=c/4):d=c/(2*Math.PI)*Math.asin(n/i),t<1?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((t*s-d)*(2*Math.PI)/c))+e:i*Math.pow(2,-10*(t-=1))*Math.sin((t*s-d)*(2*Math.PI)/c)*.5+n+e)},BounceEaseOut(t,e,n,s){return(t/=s)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn(t,e,n,s){return n-wf.BounceEaseOut(s-t,0,n,s)+e},BounceEaseInOut(t,e,n,s){return t<s/2?wf.BounceEaseIn(t*2,0,n,s)*.5+e:wf.BounceEaseOut(t*2-s,0,n,s)*.5+n*.5+e},EaseIn(t,e,n,s){return n*(t/=s)*t+e},EaseOut(t,e,n,s){return-n*(t/=s)*(t-2)+e},EaseInOut(t,e,n,s){return(t/=s/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},StrongEaseIn(t,e,n,s){return n*(t/=s)*t*t*t*t+e},StrongEaseOut(t,e,n,s){return n*((t=t/s-1)*t*t*t*t+1)+e},StrongEaseInOut(t,e,n,s){return(t/=s/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},Linear(t,e,n,s){return n*t/s+e}},Ml=he._assign(Qe,{Util:he,Transform:Qa,Node:Ge,Container:Ya,Stage:hA,stages:Sf,Layer:Fl,FastLayer:qg,Group:Tu,DD:on,Shape:Fe,shapes:Cf,Animation:pi,Tween:Cn,Easings:wf,Context:dA,Canvas:Xg});class Zs extends Fe{_sceneFunc(e){const n=Qe.getAngle(this.angle()),s=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,n,s),e.arc(0,0,this.innerRadius(),n,0,!s),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){const e=this.innerRadius(),n=this.outerRadius(),s=this.clockwise(),i=Qe.getAngle(s?360-this.angle():this.angle()),c=Math.cos(Math.min(i,Math.PI)),d=1,h=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),p=Math.sin(Math.min(i,Math.PI/2)),u=c*(c>0?e:n),A=d*n,y=h*(h>0?e:n),x=p*(p>0?n:e);return{x:u,y:s?-1*x:y,width:A-u,height:x-y}}}Zs.prototype._centroid=!0;Zs.prototype.className="Arc";Zs.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"];Mn(Zs);te.addGetterSetter(Zs,"innerRadius",0,We());te.addGetterSetter(Zs,"outerRadius",0,We());te.addGetterSetter(Zs,"angle",0,We());te.addGetterSetter(Zs,"clockwise",!1,zi());function Dg(t,e,n,s,i,c,d){const h=Math.sqrt(Math.pow(n-t,2)+Math.pow(s-e,2)),p=Math.sqrt(Math.pow(i-n,2)+Math.pow(c-s,2)),u=d*h/(h+p),A=d*p/(h+p),y=n-u*(i-t),x=s-u*(c-e),S=n+A*(i-t),C=s+A*(c-e);return[y,x,S,C]}function y2(t,e){const n=t.length,s=[];for(let i=2;i<n-2;i+=2){const c=Dg(t[i-2],t[i-1],t[i],t[i+1],t[i+2],t[i+3],e);isNaN(c[0])||(s.push(c[0]),s.push(c[1]),s.push(t[i]),s.push(t[i+1]),s.push(c[2]),s.push(c[3]))}return s}function pw(t){const e=[[t[0],t[2],t[4],t[6]],[t[1],t[3],t[5],t[7]]],n=[];for(const s of e){const i=-3*s[0]+9*s[1]-9*s[2]+3*s[3];if(i!==0){const c=6*s[0]-12*s[1]+6*s[2],d=-3*s[0]+3*s[1],h=c*c-4*i*d;if(h>=0){const p=Math.sqrt(h);n.push((-c+p)/(2*i)),n.push((-c-p)/(2*i))}}}return n.filter(s=>s>0&&s<1).flatMap(s=>e.map(i=>{const c=1-s;return c*c*c*i[0]+3*c*c*s*i[1]+3*c*s*s*i[2]+s*s*s*i[3]}))}let $s=class extends Fe{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(e){const n=this.points(),s=n.length,i=this.tension(),c=this.closed(),d=this.bezier();if(!s)return;let h=0;if(e.beginPath(),e.moveTo(n[0],n[1]),i!==0&&s>4){const p=this.getTensionPoints(),u=p.length;for(h=c?0:4,c||e.quadraticCurveTo(p[0],p[1],p[2],p[3]);h<u-2;)e.bezierCurveTo(p[h++],p[h++],p[h++],p[h++],p[h++],p[h++]);c||e.quadraticCurveTo(p[u-2],p[u-1],n[s-2],n[s-1])}else if(d)for(h=2;h<s;)e.bezierCurveTo(n[h++],n[h++],n[h++],n[h++],n[h++],n[h++]);else for(h=2;h<s;h+=2)e.lineTo(n[h],n[h+1]);c?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():y2(this.points(),this.tension())}_getTensionPointsClosed(){const e=this.points(),n=e.length,s=this.tension(),i=Dg(e[n-2],e[n-1],e[0],e[1],e[2],e[3],s),c=Dg(e[n-4],e[n-3],e[n-2],e[n-1],e[0],e[1],s),d=y2(e,s);return[i[2],i[3]].concat(d).concat([c[0],c[1],e[n-2],e[n-1],c[2],c[3],i[0],i[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};this.tension()!==0?e=[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:this.bezier()?e=[e[0],e[1],...pw(this.points()),e[e.length-2],e[e.length-1]]:e=this.points();let n=e[0],s=e[0],i=e[1],c=e[1],d,h;for(let p=0;p<e.length/2;p++)d=e[p*2],h=e[p*2+1],n=Math.min(n,d),s=Math.max(s,d),i=Math.min(i,h),c=Math.max(c,h);return{x:n,y:i,width:s-n,height:c-i}}};$s.prototype.className="Line";$s.prototype._attrsAffectingSize=["points","bezier","tension"];Mn($s);te.addGetterSetter($s,"closed",!1);te.addGetterSetter($s,"bezier",!1);te.addGetterSetter($s,"tension",0,We());te.addGetterSetter($s,"points",[],LC());const Aw=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],mw=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],gw=[[1],[1,1],[1,2,1],[1,3,3,1]],x2=(t,e,n)=>{let s,i;const d=n/2;s=0;for(let h=0;h<20;h++)i=d*Aw[20][h]+d,s+=mw[20][h]*vw(t,e,i);return d*s},b2=(t,e,n)=>{n===void 0&&(n=1);const s=t[0]-2*t[1]+t[2],i=e[0]-2*e[1]+e[2],c=2*t[1]-2*t[0],d=2*e[1]-2*e[0],h=4*(s*s+i*i),p=4*(s*c+i*d),u=c*c+d*d;if(h===0)return n*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));const A=p/(2*h),y=u/h,x=n+A,S=y-A*A,C=x*x+S>0?Math.sqrt(x*x+S):0,R=A*A+S>0?Math.sqrt(A*A+S):0,T=A+Math.sqrt(A*A+S)!==0?S*Math.log(Math.abs((x+C)/(A+R))):0;return Math.sqrt(h)/2*(x*C-A*R+T)};function vw(t,e,n){const s=Lg(1,n,t),i=Lg(1,n,e),c=s*s+i*i;return Math.sqrt(c)}const Lg=(t,e,n)=>{const s=n.length-1;let i,c;if(s===0)return 0;if(t===0){c=0;for(let d=0;d<=s;d++)c+=gw[s][d]*Math.pow(1-e,s-d)*Math.pow(e,d)*n[d];return c}else{i=new Array(s);for(let d=0;d<s;d++)i[d]=s*(n[d+1]-n[d]);return Lg(t-1,e,i)}},S2=(t,e,n)=>{let s=1,i=t/e,c=(t-n(i))/e,d=0;for(;s>.001;){const h=n(i+c),p=Math.abs(t-h)/e;if(p<s)s=p,i+=c;else{const u=n(i-c),A=Math.abs(t-u)/e;A<s?(s=A,i-=c):c/=2}if(d++,d>500)break}return i};class wn extends Fe{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=wn.parsePathData(this.data()),this.pathLength=wn.getPathLength(this.dataArray)}_sceneFunc(e){const n=this.dataArray;e.beginPath();let s=!1;for(let i=0;i<n.length;i++){const c=n[i].command,d=n[i].points;switch(c){case"L":e.lineTo(d[0],d[1]);break;case"M":e.moveTo(d[0],d[1]);break;case"C":e.bezierCurveTo(d[0],d[1],d[2],d[3],d[4],d[5]);break;case"Q":e.quadraticCurveTo(d[0],d[1],d[2],d[3]);break;case"A":const h=d[0],p=d[1],u=d[2],A=d[3],y=d[4],x=d[5],S=d[6],C=d[7],R=u>A?u:A,T=u>A?1:u/A,D=u>A?A/u:1;e.translate(h,p),e.rotate(S),e.scale(T,D),e.arc(0,0,R,y,y+x,1-C),e.scale(1/T,1/D),e.rotate(-S),e.translate(-h,-p);break;case"z":s=!0,e.closePath();break}}!s&&!this.hasFill()?e.strokeShape(this):e.fillStrokeShape(this)}getSelfRect(){let e=[];this.dataArray.forEach(function(p){if(p.command==="A"){const u=p.points[4],A=p.points[5],y=p.points[4]+A;let x=Math.PI/180;if(Math.abs(u-y)<x&&(x=Math.abs(u-y)),A<0)for(let S=u-x;S>y;S-=x){const C=wn.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],S,0);e.push(C.x,C.y)}else for(let S=u+x;S<y;S+=x){const C=wn.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],S,0);e.push(C.x,C.y)}}else if(p.command==="C")for(let u=0;u<=1;u+=.01){const A=wn.getPointOnCubicBezier(u,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);e.push(A.x,A.y)}else e=e.concat(p.points)});let n=e[0],s=e[0],i=e[1],c=e[1],d,h;for(let p=0;p<e.length/2;p++)d=e[p*2],h=e[p*2+1],isNaN(d)||(n=Math.min(n,d),s=Math.max(s,d)),isNaN(h)||(i=Math.min(i,h),c=Math.max(c,h));return{x:n,y:i,width:s-n,height:c-i}}getLength(){return this.pathLength}getPointAtLength(e){return wn.getPointAtLengthOfDataArray(e,this.dataArray)}static getLineLength(e,n,s,i){return Math.sqrt((s-e)*(s-e)+(i-n)*(i-n))}static getPathLength(e){let n=0;for(let s=0;s<e.length;++s)n+=e[s].pathLength;return n}static getPointAtLengthOfDataArray(e,n){let s,i=0,c=n.length;if(!c)return null;for(;i<c&&e>n[i].pathLength;)e-=n[i].pathLength,++i;if(i===c)return s=n[i-1].points.slice(-2),{x:s[0],y:s[1]};if(e<.01)return n[i].command==="M"?(s=n[i].points.slice(0,2),{x:s[0],y:s[1]}):{x:n[i].start.x,y:n[i].start.y};const d=n[i],h=d.points;switch(d.command){case"L":return wn.getPointOnLine(e,d.start.x,d.start.y,h[0],h[1]);case"C":return wn.getPointOnCubicBezier(S2(e,wn.getPathLength(n),R=>x2([d.start.x,h[0],h[2],h[4]],[d.start.y,h[1],h[3],h[5]],R)),d.start.x,d.start.y,h[0],h[1],h[2],h[3],h[4],h[5]);case"Q":return wn.getPointOnQuadraticBezier(S2(e,wn.getPathLength(n),R=>b2([d.start.x,h[0],h[2]],[d.start.y,h[1],h[3]],R)),d.start.x,d.start.y,h[0],h[1],h[2],h[3]);case"A":const p=h[0],u=h[1],A=h[2],y=h[3],x=h[5],S=h[6];let C=h[4];return C+=x*e/d.pathLength,wn.getPointOnEllipticalArc(p,u,A,y,C,S)}return null}static getPointOnLine(e,n,s,i,c,d,h){d=d??n,h=h??s;const p=this.getLineLength(n,s,i,c);if(p<1e-10)return{x:n,y:s};if(i===n)return{x:d,y:h+(c>s?e:-e)};const u=(c-s)/(i-n),A=Math.sqrt(e*e/(1+u*u))*(i<n?-1:1),y=u*A;if(Math.abs(h-s-u*(d-n))<1e-10)return{x:d+A,y:h+y};const x=((d-n)*(i-n)+(h-s)*(c-s))/(p*p),S=n+x*(i-n),C=s+x*(c-s),R=this.getLineLength(d,h,S,C),T=Math.sqrt(e*e-R*R),D=Math.sqrt(T*T/(1+u*u))*(i<n?-1:1),P=u*D;return{x:S+D,y:C+P}}static getPointOnCubicBezier(e,n,s,i,c,d,h,p,u){function A(T){return T*T*T}function y(T){return 3*T*T*(1-T)}function x(T){return 3*T*(1-T)*(1-T)}function S(T){return(1-T)*(1-T)*(1-T)}const C=p*A(e)+d*y(e)+i*x(e)+n*S(e),R=u*A(e)+h*y(e)+c*x(e)+s*S(e);return{x:C,y:R}}static getPointOnQuadraticBezier(e,n,s,i,c,d,h){function p(S){return S*S}function u(S){return 2*S*(1-S)}function A(S){return(1-S)*(1-S)}const y=d*p(e)+i*u(e)+n*A(e),x=h*p(e)+c*u(e)+s*A(e);return{x:y,y:x}}static getPointOnEllipticalArc(e,n,s,i,c,d){const h=Math.cos(d),p=Math.sin(d),u={x:s*Math.cos(c),y:i*Math.sin(c)};return{x:e+(u.x*h-u.y*p),y:n+(u.x*p+u.y*h)}}static parsePathData(e){if(!e)return[];let n=e;const s=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(let y=0;y<s.length;y++)n=n.replace(new RegExp(s[y],"g"),"|"+s[y]);const i=n.split("|"),c=[],d=[];let h=0,p=0;const u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let A;for(let y=1;y<i.length;y++){let x=i[y],S=x.charAt(0);for(x=x.slice(1),d.length=0;A=u.exec(x);)d.push(A[0]);let C=[],R=S==="A"||S==="a"?0:-1;for(let T=0,D=d.length;T<D;T++){const P=d[T];if(P==="00"){C.push(0,0),R>=0&&(R+=2,R>=7&&(R-=7));continue}if(R>=0){if(R===3){if(/^[01]{2}\d+(?:\.\d+)?$/.test(P)){C.push(parseInt(P[0],10)),C.push(parseInt(P[1],10)),C.push(parseFloat(P.slice(2))),R+=3,R>=7&&(R-=7);continue}if(P==="11"||P==="10"||P==="01"){C.push(parseInt(P[0],10)),C.push(parseInt(P[1],10)),R+=2,R>=7&&(R-=7);continue}if(P==="0"||P==="1"){C.push(parseInt(P,10)),R+=1,R>=7&&(R-=7);continue}}else if(R===4){if(/^[01]\d+(?:\.\d+)?$/.test(P)){C.push(parseInt(P[0],10)),C.push(parseFloat(P.slice(1))),R+=2,R>=7&&(R-=7);continue}if(P==="0"||P==="1"){C.push(parseInt(P,10)),R+=1,R>=7&&(R-=7);continue}}const M=parseFloat(P);isNaN(M)?C.push(0):C.push(M),R+=1,R>=7&&(R-=7)}else{const M=parseFloat(P);isNaN(M)?C.push(0):C.push(M)}}for(;C.length>0&&!isNaN(C[0]);){let T="",D=[];const P=h,M=p;let O,I,Y,K,q,Q,V,ge,W,se;switch(S){case"l":h+=C.shift(),p+=C.shift(),T="L",D.push(h,p);break;case"L":h=C.shift(),p=C.shift(),D.push(h,p);break;case"m":const L=C.shift(),ne=C.shift();if(h+=L,p+=ne,T="M",c.length>2&&c[c.length-1].command==="z"){for(let le=c.length-2;le>=0;le--)if(c[le].command==="M"){h=c[le].points[0]+L,p=c[le].points[1]+ne;break}}D.push(h,p),S="l";break;case"M":h=C.shift(),p=C.shift(),T="M",D.push(h,p),S="L";break;case"h":h+=C.shift(),T="L",D.push(h,p);break;case"H":h=C.shift(),T="L",D.push(h,p);break;case"v":p+=C.shift(),T="L",D.push(h,p);break;case"V":p=C.shift(),T="L",D.push(h,p);break;case"C":D.push(C.shift(),C.shift(),C.shift(),C.shift()),h=C.shift(),p=C.shift(),D.push(h,p);break;case"c":D.push(h+C.shift(),p+C.shift(),h+C.shift(),p+C.shift()),h+=C.shift(),p+=C.shift(),T="C",D.push(h,p);break;case"S":I=h,Y=p,O=c[c.length-1],O.command==="C"&&(I=h+(h-O.points[2]),Y=p+(p-O.points[3])),D.push(I,Y,C.shift(),C.shift()),h=C.shift(),p=C.shift(),T="C",D.push(h,p);break;case"s":I=h,Y=p,O=c[c.length-1],O.command==="C"&&(I=h+(h-O.points[2]),Y=p+(p-O.points[3])),D.push(I,Y,h+C.shift(),p+C.shift()),h+=C.shift(),p+=C.shift(),T="C",D.push(h,p);break;case"Q":D.push(C.shift(),C.shift()),h=C.shift(),p=C.shift(),D.push(h,p);break;case"q":D.push(h+C.shift(),p+C.shift()),h+=C.shift(),p+=C.shift(),T="Q",D.push(h,p);break;case"T":I=h,Y=p,O=c[c.length-1],O.command==="Q"&&(I=h+(h-O.points[0]),Y=p+(p-O.points[1])),h=C.shift(),p=C.shift(),T="Q",D.push(I,Y,h,p);break;case"t":I=h,Y=p,O=c[c.length-1],O.command==="Q"&&(I=h+(h-O.points[0]),Y=p+(p-O.points[1])),h+=C.shift(),p+=C.shift(),T="Q",D.push(I,Y,h,p);break;case"A":K=C.shift(),q=C.shift(),Q=C.shift(),V=C.shift(),ge=C.shift(),W=h,se=p,h=C.shift(),p=C.shift(),T="A",D=this.convertEndpointToCenterParameterization(W,se,h,p,V,ge,K,q,Q);break;case"a":K=C.shift(),q=C.shift(),Q=C.shift(),V=C.shift(),ge=C.shift(),W=h,se=p,h+=C.shift(),p+=C.shift(),T="A",D=this.convertEndpointToCenterParameterization(W,se,h,p,V,ge,K,q,Q);break}c.push({command:T||S,points:D,start:{x:P,y:M},pathLength:this.calcLength(P,M,T||S,D)})}(S==="z"||S==="Z")&&c.push({command:"z",points:[],start:void 0,pathLength:0})}return c}static calcLength(e,n,s,i){let c,d,h,p;const u=wn;switch(s){case"L":return u.getLineLength(e,n,i[0],i[1]);case"C":return x2([e,i[0],i[2],i[4]],[n,i[1],i[3],i[5]],1);case"Q":return b2([e,i[0],i[2]],[n,i[1],i[3]],1);case"A":c=0;const A=i[4],y=i[5],x=i[4]+y;let S=Math.PI/180;if(Math.abs(A-x)<S&&(S=Math.abs(A-x)),d=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],A,0),y<0)for(p=A-S;p>x;p-=S)h=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),c+=u.getLineLength(d.x,d.y,h.x,h.y),d=h;else for(p=A+S;p<x;p+=S)h=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),c+=u.getLineLength(d.x,d.y,h.x,h.y),d=h;return h=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],x,0),c+=u.getLineLength(d.x,d.y,h.x,h.y),c}return 0}static convertEndpointToCenterParameterization(e,n,s,i,c,d,h,p,u){const A=u*(Math.PI/180),y=Math.cos(A)*(e-s)/2+Math.sin(A)*(n-i)/2,x=-1*Math.sin(A)*(e-s)/2+Math.cos(A)*(n-i)/2,S=y*y/(h*h)+x*x/(p*p);S>1&&(h*=Math.sqrt(S),p*=Math.sqrt(S));let C=Math.sqrt((h*h*(p*p)-h*h*(x*x)-p*p*(y*y))/(h*h*(x*x)+p*p*(y*y)));c===d&&(C*=-1),isNaN(C)&&(C=0);const R=C*h*x/p,T=C*-p*y/h,D=(e+s)/2+Math.cos(A)*R-Math.sin(A)*T,P=(n+i)/2+Math.sin(A)*R+Math.cos(A)*T,M=function(V){return Math.sqrt(V[0]*V[0]+V[1]*V[1])},O=function(V,ge){return(V[0]*ge[0]+V[1]*ge[1])/(M(V)*M(ge))},I=function(V,ge){return(V[0]*ge[1]<V[1]*ge[0]?-1:1)*Math.acos(O(V,ge))},Y=I([1,0],[(y-R)/h,(x-T)/p]),K=[(y-R)/h,(x-T)/p],q=[(-1*y-R)/h,(-1*x-T)/p];let Q=I(K,q);return O(K,q)<=-1&&(Q=Math.PI),O(K,q)>=1&&(Q=0),d===0&&Q>0&&(Q=Q-2*Math.PI),d===1&&Q<0&&(Q=Q+2*Math.PI),[D,P,h,p,Y,Q,A,d]}}wn.prototype.className="Path";wn.prototype._attrsAffectingSize=["data"];Mn(wn);te.addGetterSetter(wn,"data");let Il=class extends $s{_sceneFunc(e){super._sceneFunc(e);const n=Math.PI*2,s=this.points();let i=s;const c=this.tension()!==0&&s.length>4;c&&(i=this.getTensionPoints());const d=this.pointerLength(),h=s.length;let p,u;if(c){const x=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],s[h-2],s[h-1]],S=wn.calcLength(i[i.length-4],i[i.length-3],"C",x),C=wn.getPointOnQuadraticBezier(Math.min(1,1-d/S),x[0],x[1],x[2],x[3],x[4],x[5]);p=s[h-2]-C.x,u=s[h-1]-C.y}else p=s[h-2]-s[h-4],u=s[h-1]-s[h-3];const A=(Math.atan2(u,p)+n)%n,y=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(s[h-2],s[h-1]),e.rotate(A),e.moveTo(0,0),e.lineTo(-d,y/2),e.lineTo(-d,-y/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(s[0],s[1]),c?(p=(i[0]+i[2])/2-s[0],u=(i[1]+i[3])/2-s[1]):(p=s[2]-s[0],u=s[3]-s[1]),e.rotate((Math.atan2(-u,-p)+n)%n),e.moveTo(0,0),e.lineTo(-d,y/2),e.lineTo(-d,-y/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){const n=this.dashEnabled();n&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),n&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),n=this.pointerWidth()/2;return{x:e.x,y:e.y-n,width:e.width,height:e.height+n*2}}};Il.prototype.className="Arrow";Mn(Il);te.addGetterSetter(Il,"pointerLength",10,We());te.addGetterSetter(Il,"pointerWidth",10,We());te.addGetterSetter(Il,"pointerAtBeginning",!1);te.addGetterSetter(Il,"pointerAtEnding",!0);class Du extends Fe{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}}Du.prototype._centroid=!0;Du.prototype.className="Circle";Du.prototype._attrsAffectingSize=["radius"];Mn(Du);te.addGetterSetter(Du,"radius",0,We());let Ho=class extends Fe{_sceneFunc(e){const n=this.radiusX(),s=this.radiusY();e.beginPath(),e.save(),n!==s&&e.scale(1,s/n),e.arc(0,0,n,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}};Ho.prototype.className="Ellipse";Ho.prototype._centroid=!0;Ho.prototype._attrsAffectingSize=["radiusX","radiusY"];Mn(Ho);te.addComponentsGetterSetter(Ho,"radius",["x","y"]);te.addGetterSetter(Ho,"radiusX",0,We());te.addGetterSetter(Ho,"radiusY",0,We());let Fi=class Hx extends Fe{constructor(e){super(e),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",n=>{this._removeImageLoad(n.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const e=this.image();e&&e.complete||e&&e.readyState===4||e&&e.addEventListener&&e.addEventListener("load",this._loadListener)}_removeImageLoad(e){e&&e.removeEventListener&&e.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){const e=!!this.cornerRadius(),n=this.hasShadow();return e&&n?!0:super._useBufferCanvas(!0)}_sceneFunc(e){const n=this.getWidth(),s=this.getHeight(),i=this.cornerRadius(),c=this.attrs.image;let d;if(c){const h=this.attrs.cropWidth,p=this.attrs.cropHeight;h&&p?d=[c,this.cropX(),this.cropY(),h,p,0,0,n,s]:d=[c,0,0,n,s]}(this.hasFill()||this.hasStroke()||i)&&(e.beginPath(),i?he.drawRoundedRectPath(e,n,s,i):e.rect(0,0,n,s),e.closePath(),e.fillStrokeShape(this)),c&&(i&&e.clip(),e.drawImage.apply(e,d))}_hitFunc(e){const n=this.width(),s=this.height(),i=this.cornerRadius();e.beginPath(),i?he.drawRoundedRectPath(e,n,s,i):e.rect(0,0,n,s),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,n,s;return(s=(e=this.attrs.width)!==null&&e!==void 0?e:(n=this.image())===null||n===void 0?void 0:n.width)!==null&&s!==void 0?s:0}getHeight(){var e,n,s;return(s=(e=this.attrs.height)!==null&&e!==void 0?e:(n=this.image())===null||n===void 0?void 0:n.height)!==null&&s!==void 0?s:0}static fromURL(e,n,s=null){const i=he.createImageElement();i.onload=function(){const c=new Hx({image:i});n(c)},i.onerror=s,i.crossOrigin="Anonymous",i.src=e}};Fi.prototype.className="Image";Fi.prototype._attrsAffectingSize=["image"];Mn(Fi);te.addGetterSetter(Fi,"cornerRadius",0,fA(4));te.addGetterSetter(Fi,"image");te.addComponentsGetterSetter(Fi,"crop",["x","y","width","height"]);te.addGetterSetter(Fi,"cropX",0,We());te.addGetterSetter(Fi,"cropY",0,We());te.addGetterSetter(Fi,"cropWidth",0,We());te.addGetterSetter(Fi,"cropHeight",0,We());const Wx=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],yw="Change.konva",xw="none",kg="up",Ng="right",Bg="down",Pg="left",bw=Wx.length;class Kg extends Tu{constructor(e){super(e),this.on("add.konva",function(n){this._addListeners(n.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){let n=this,s;const i=function(){n._sync()};for(s=0;s<bw;s++)e.on(Wx[s]+yw,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let e=this.getText(),n=this.getTag(),s,i,c,d,h,p,u;if(e&&n){switch(s=e.width(),i=e.height(),c=n.pointerDirection(),d=n.pointerWidth(),u=n.pointerHeight(),h=0,p=0,c){case kg:h=s/2,p=-1*u;break;case Ng:h=s+d,p=i/2;break;case Bg:h=s/2,p=i+u;break;case Pg:h=-1*d,p=i/2;break}n.setAttrs({x:-1*h,y:-1*p,width:s,height:i}),e.setAttrs({x:-1*h,y:-1*p})}}}Kg.prototype.className="Label";Mn(Kg);class Ol extends Fe{_sceneFunc(e){const n=this.width(),s=this.height(),i=this.pointerDirection(),c=this.pointerWidth(),d=this.pointerHeight(),h=this.cornerRadius();let p=0,u=0,A=0,y=0;typeof h=="number"?p=u=A=y=Math.min(h,n/2,s/2):(p=Math.min(h[0]||0,n/2,s/2),u=Math.min(h[1]||0,n/2,s/2),y=Math.min(h[2]||0,n/2,s/2),A=Math.min(h[3]||0,n/2,s/2)),e.beginPath(),e.moveTo(p,0),i===kg&&(e.lineTo((n-c)/2,0),e.lineTo(n/2,-1*d),e.lineTo((n+c)/2,0)),e.lineTo(n-u,0),e.arc(n-u,u,u,Math.PI*3/2,0,!1),i===Ng&&(e.lineTo(n,(s-d)/2),e.lineTo(n+c,s/2),e.lineTo(n,(s+d)/2)),e.lineTo(n,s-y),e.arc(n-y,s-y,y,0,Math.PI/2,!1),i===Bg&&(e.lineTo((n+c)/2,s),e.lineTo(n/2,s+d),e.lineTo((n-c)/2,s)),e.lineTo(A,s),e.arc(A,s-A,A,Math.PI/2,Math.PI,!1),i===Pg&&(e.lineTo(0,(s+d)/2),e.lineTo(-1*c,s/2),e.lineTo(0,(s-d)/2)),e.lineTo(0,p),e.arc(p,p,p,Math.PI,Math.PI*3/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){let e=0,n=0,s=this.pointerWidth(),i=this.pointerHeight(),c=this.pointerDirection(),d=this.width(),h=this.height();return c===kg?(n-=i,h+=i):c===Bg?h+=i:c===Pg?(e-=s*1.5,d+=s):c===Ng&&(d+=s*1.5),{x:e,y:n,width:d,height:h}}}Ol.prototype.className="Tag";Mn(Ol);te.addGetterSetter(Ol,"pointerDirection",xw);te.addGetterSetter(Ol,"pointerWidth",0,We());te.addGetterSetter(Ol,"pointerHeight",0,We());te.addGetterSetter(Ol,"cornerRadius",0,fA(4));let kf=class extends Fe{_sceneFunc(e){const n=this.cornerRadius(),s=this.width(),i=this.height();e.beginPath(),n?he.drawRoundedRectPath(e,s,i,n):e.rect(0,0,s,i),e.closePath(),e.fillStrokeShape(this)}};kf.prototype.className="Rect";Mn(kf);te.addGetterSetter(kf,"cornerRadius",0,fA(4));class Wo extends Fe{_sceneFunc(e){const n=this._getPoints(),s=this.radius(),i=this.sides(),c=this.cornerRadius();if(e.beginPath(),c)he.drawRoundedPolygonPath(e,n,i,s,c);else{e.moveTo(n[0].x,n[0].y);for(let d=1;d<n.length;d++)e.lineTo(n[d].x,n[d].y)}e.closePath(),e.fillStrokeShape(this)}_getPoints(){const e=this.attrs.sides,n=this.attrs.radius||0,s=[];for(let i=0;i<e;i++)s.push({x:n*Math.sin(i*2*Math.PI/e),y:-1*n*Math.cos(i*2*Math.PI/e)});return s}getSelfRect(){const e=this._getPoints();let n=e[0].x,s=e[0].x,i=e[0].y,c=e[0].y;return e.forEach(d=>{n=Math.min(n,d.x),s=Math.max(s,d.x),i=Math.min(i,d.y),c=Math.max(c,d.y)}),{x:n,y:i,width:s-n,height:c-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}Wo.prototype.className="RegularPolygon";Wo.prototype._centroid=!0;Wo.prototype._attrsAffectingSize=["radius"];Mn(Wo);te.addGetterSetter(Wo,"radius",0,We());te.addGetterSetter(Wo,"sides",0,We());te.addGetterSetter(Wo,"cornerRadius",0,fA(4));const C2=Math.PI*2;class Ul extends Fe{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,C2,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),C2,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}Ul.prototype.className="Ring";Ul.prototype._centroid=!0;Ul.prototype._attrsAffectingSize=["innerRadius","outerRadius"];Mn(Ul);te.addGetterSetter(Ul,"innerRadius",0,We());te.addGetterSetter(Ul,"outerRadius",0,We());class hs extends Fe{constructor(e){super(e),this._updated=!0,this.anim=new pi(()=>{const n=this._updated;return this._updated=!1,n}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){const n=this.animation(),s=this.frameIndex(),i=s*4,c=this.animations()[n],d=this.frameOffsets(),h=c[i+0],p=c[i+1],u=c[i+2],A=c[i+3],y=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,u,A),e.closePath(),e.fillStrokeShape(this)),y)if(d){const x=d[n],S=s*2;e.drawImage(y,h,p,u,A,x[S+0],x[S+1],u,A)}else e.drawImage(y,h,p,u,A,0,0,u,A)}_hitFunc(e){const n=this.animation(),s=this.frameIndex(),i=s*4,c=this.animations()[n],d=this.frameOffsets(),h=c[i+2],p=c[i+3];if(e.beginPath(),d){const u=d[n],A=s*2;e.rect(u[A+0],u[A+1],h,p)}else e.rect(0,0,h,p);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const e=this.frameIndex(),n=this.animation(),s=this.animations(),i=s[n],c=i.length/4;e<c-1?this.frameIndex(e+1):this.frameIndex(0)}}hs.prototype.className="Sprite";Mn(hs);te.addGetterSetter(hs,"animation");te.addGetterSetter(hs,"animations");te.addGetterSetter(hs,"frameOffsets");te.addGetterSetter(hs,"image");te.addGetterSetter(hs,"frameIndex",0,We());te.addGetterSetter(hs,"frameRate",17,We());te.backCompat(hs,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class Xo extends Fe{_sceneFunc(e){const n=this.innerRadius(),s=this.outerRadius(),i=this.numPoints();e.beginPath(),e.moveTo(0,0-s);for(let c=1;c<i*2;c++){const d=c%2===0?s:n,h=d*Math.sin(c*Math.PI/i),p=-1*d*Math.cos(c*Math.PI/i);e.lineTo(h,p)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}Xo.prototype.className="Star";Xo.prototype._centroid=!0;Xo.prototype._attrsAffectingSize=["innerRadius","outerRadius"];Mn(Xo);te.addGetterSetter(Xo,"numPoints",5,We());te.addGetterSetter(Xo,"innerRadius",0,We());te.addGetterSetter(Xo,"outerRadius",0,We());function Fo(t){return[...t].reduce((e,n,s,i)=>{if(new RegExp("\\p{Emoji}","u").test(n)){const c=i[s+1];c&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(c)?(e.push(n+c),i[s+1]=""):e.push(n)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(n+(i[s+1]||""))?e.push(n+i[s+1]):s>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(n)?e[e.length-1]+=n:n&&e.push(n);return e},[])}const gu="auto",Sw="center",Xx="inherit",cf="justify",Cw="Change.konva",ww="2d",w2="-",Qx="left",_w="text",Ew="Text",Rw="top",Tw="bottom",_2="middle",Yx="normal",Dw="px ",Gp=" ",Lw="right",E2="rtl",kw="word",Nw="char",R2="none",ng="…",Vx=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Bw=Vx.length;function Pw(t){return t.split(",").map(e=>{e=e.trim();const n=e.indexOf(" ")>=0,s=e.indexOf('"')>=0||e.indexOf("'")>=0;return n&&!s&&(e=`"${e}"`),e}).join(", ")}let Hp;function rg(){return Hp||(Hp=he.createCanvasElement().getContext(ww),Hp)}function Mw(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function zw(t){t.setAttr("miterLimit",2),t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Fw(t){return t=t||{},!t.fillLinearGradientColorStops&&!t.fillRadialGradientColorStops&&!t.fillPatternImage&&(t.fill=t.fill||"black"),t}let _n=class extends Fe{constructor(e){super(Fw(e)),this._partialTextX=0,this._partialTextY=0;for(let n=0;n<Bw;n++)this.on(Vx[n]+Cw,this._setTextData);this._setTextData()}_sceneFunc(e){var n,s;const i=this.textArr,c=i.length;if(!this.text())return;let d=this.padding(),h=this.fontSize(),p=this.lineHeight()*h,u=this.verticalAlign(),A=this.direction(),y=0,x=this.align(),S=this.getWidth(),C=this.letterSpacing(),R=this.charRenderFunc(),T=this.fill(),D=this.textDecoration(),P=this.underlineOffset(),M=D.indexOf("underline")!==-1,O=D.indexOf("line-through")!==-1,I;A=A===Xx?e.direction:A;let Y=p/2,K=_2;if(!Qe.legacyTextRendering){const q=this.measureSize("M");K="alphabetic";const Q=(n=q.fontBoundingBoxAscent)!==null&&n!==void 0?n:q.actualBoundingBoxAscent,V=(s=q.fontBoundingBoxDescent)!==null&&s!==void 0?s:q.actualBoundingBoxDescent;Y=(Q-V)/2+p/2}for(A===E2&&e.setAttr("direction",A),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",K),e.setAttr("textAlign",Qx),u===_2?y=(this.getHeight()-c*p-d*2)/2:u===Tw&&(y=this.getHeight()-c*p-d*2),e.translate(d,y+d),I=0;I<c;I++){let q=0,Q=0;const V=i[I],ge=V.text,W=V.width,se=V.lastInParagraph;if(e.save(),x===Lw?q+=S-W-d*2:x===Sw&&(q+=(S-W-d*2)/2),M){e.save(),e.beginPath();const ne=P??(Qe.legacyTextRendering?Math.round(h/2):Math.round(h/4)),le=q,pe=Y+Q+ne;e.moveTo(le,pe);const J=x===cf&&!se?S-d*2:W;e.lineTo(le+Math.round(J),pe),e.lineWidth=h/15;const ae=this._getLinearGradient();e.strokeStyle=ae||T,e.stroke(),e.restore()}const L=q;if(A!==E2&&(C!==0||x===cf||R)){const ne=ge.split(" ").length-1,le=Fo(ge);for(let pe=0;pe<le.length;pe++){const J=le[pe];if(J===" "&&!se&&x===cf&&(q+=(S-d*2-W)/ne),this._partialTextX=q,this._partialTextY=Y+Q,this._partialText=J,R){e.save();const re=i.slice(0,I).reduce((ee,Ee)=>ee+Fo(Ee.text).length,0),U=pe+re;R({char:J,index:U,x:q,y:Y+Q,lineIndex:I,column:pe,isLastInLine:se,width:this.measureSize(J).width,context:e})}e.fillStrokeShape(this),R&&e.restore(),q+=this.measureSize(J).width+C}}else C!==0&&e.setAttr("letterSpacing",`${C}px`),this._partialTextX=q,this._partialTextY=Y+Q,this._partialText=ge,e.fillStrokeShape(this);if(O){e.save(),e.beginPath();const ne=Qe.legacyTextRendering?0:-Math.round(h/4),le=L;e.moveTo(le,Y+Q+ne);const pe=x===cf&&!se?S-d*2:W;e.lineTo(le+Math.round(pe),Y+Q+ne),e.lineWidth=h/15;const J=this._getLinearGradient();e.strokeStyle=J||T,e.stroke(),e.restore()}e.restore(),c>1&&(Y+=p)}}_hitFunc(e){const n=this.getWidth(),s=this.getHeight();e.beginPath(),e.rect(0,0,n,s),e.closePath(),e.fillStrokeShape(this)}setText(e){const n=he._isString(e)?e:e==null?"":e+"";return this._setAttr(_w,n),this}getWidth(){return this.attrs.width===gu||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===gu||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return he.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var n,s,i,c,d,h,p,u,A,y,x;let S=rg(),C=this.fontSize(),R;S.save(),S.font=this._getContextFont(),R=S.measureText(e),S.restore();const T=C/100;return{actualBoundingBoxAscent:(n=R.actualBoundingBoxAscent)!==null&&n!==void 0?n:71.58203125*T,actualBoundingBoxDescent:(s=R.actualBoundingBoxDescent)!==null&&s!==void 0?s:0,actualBoundingBoxLeft:(i=R.actualBoundingBoxLeft)!==null&&i!==void 0?i:-7.421875*T,actualBoundingBoxRight:(c=R.actualBoundingBoxRight)!==null&&c!==void 0?c:75.732421875*T,alphabeticBaseline:(d=R.alphabeticBaseline)!==null&&d!==void 0?d:0,emHeightAscent:(h=R.emHeightAscent)!==null&&h!==void 0?h:100*T,emHeightDescent:(p=R.emHeightDescent)!==null&&p!==void 0?p:-20*T,fontBoundingBoxAscent:(u=R.fontBoundingBoxAscent)!==null&&u!==void 0?u:91*T,fontBoundingBoxDescent:(A=R.fontBoundingBoxDescent)!==null&&A!==void 0?A:21*T,hangingBaseline:(y=R.hangingBaseline)!==null&&y!==void 0?y:72.80000305175781*T,ideographicBaseline:(x=R.ideographicBaseline)!==null&&x!==void 0?x:-21*T,width:R.width,height:C}}_getContextFont(){return this.fontStyle()+Gp+this.fontVariant()+Gp+(this.fontSize()+Dw)+Pw(this.fontFamily())}_addTextLine(e){this.align()===cf&&(e=e.trim());const s=this._getTextWidth(e);return this.textArr.push({text:e,width:s,lastInParagraph:!1})}_getTextWidth(e){const n=this.letterSpacing(),s=e.length;return rg().measureText(e).width+n*s}_setTextData(){let e=this.text().split(`
|
|
277
|
+
`),n=+this.fontSize(),s=0,i=this.lineHeight()*n,c=this.attrs.width,d=this.attrs.height,h=c!==gu&&c!==void 0,p=d!==gu&&d!==void 0,u=this.padding(),A=c-u*2,y=d-u*2,x=0,S=this.wrap(),C=S!==R2,R=S!==Nw&&C,T=this.ellipsis();this.textArr=[],rg().font=this._getContextFont();const D=T?this._getTextWidth(ng):0;for(let P=0,M=e.length;P<M;++P){let O=e[P],I=this._getTextWidth(O);if(h&&I>A)for(;O.length>0;){let Y=0,K=Fo(O).length,q="",Q=0;for(;Y<K;){const V=Y+K>>>1,ge=Fo(O),W=ge.slice(0,V+1).join(""),se=this._getTextWidth(W);(T&&p&&x+i>y?se+D:se)<=A?(Y=V+1,q=W,Q=se):K=V}if(q){if(R){const W=Fo(O),se=Fo(q),L=W[se.length],ne=L===Gp||L===w2;let le;if(ne&&Q<=A)le=se.length;else{const pe=se.lastIndexOf(Gp),J=se.lastIndexOf(w2);le=Math.max(pe,J)+1}le>0&&(Y=le,q=W.slice(0,Y).join(""),Q=this._getTextWidth(q))}if(q=q.trimRight(),this._addTextLine(q),s=Math.max(s,Q),x+=i,this._shouldHandleEllipsis(x)){this._tryToAddEllipsisToLastLine();break}if(O=Fo(O).slice(Y).join("").trimLeft(),O.length>0&&(I=this._getTextWidth(O),I<=A)){this._addTextLine(O),x+=i,s=Math.max(s,I);break}}else break}else this._addTextLine(O),x+=i,s=Math.max(s,I),this._shouldHandleEllipsis(x)&&P<M-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),p&&x+i>y)break}this.textHeight=n,this.textWidth=s}_shouldHandleEllipsis(e){const n=+this.fontSize(),s=this.lineHeight()*n,i=this.attrs.height,c=i!==gu&&i!==void 0,d=this.padding(),h=i-d*2;return!(this.wrap()!==R2)||c&&e+s>h}_tryToAddEllipsisToLastLine(){const e=this.attrs.width,n=e!==gu&&e!==void 0,s=this.padding(),i=e-s*2,c=this.ellipsis(),d=this.textArr[this.textArr.length-1];!d||!c||(n&&(this._getTextWidth(d.text+ng)<i||(d.text=d.text.slice(0,d.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(d.text+ng))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,n=this.hasShadow();return e&&n?!0:super._useBufferCanvas()}};_n.prototype._fillFunc=Mw;_n.prototype._strokeFunc=zw;_n.prototype.className=Ew;_n.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Mn(_n);te.overWriteSetter(_n,"width",Yg());te.overWriteSetter(_n,"height",Yg());te.addGetterSetter(_n,"direction",Xx);te.addGetterSetter(_n,"fontFamily","Arial");te.addGetterSetter(_n,"fontSize",12,We());te.addGetterSetter(_n,"fontStyle",Yx);te.addGetterSetter(_n,"fontVariant",Yx);te.addGetterSetter(_n,"padding",0,We());te.addGetterSetter(_n,"align",Qx);te.addGetterSetter(_n,"verticalAlign",Rw);te.addGetterSetter(_n,"lineHeight",1,We());te.addGetterSetter(_n,"wrap",kw);te.addGetterSetter(_n,"ellipsis",!1,zi());te.addGetterSetter(_n,"letterSpacing",0,We());te.addGetterSetter(_n,"text","",zl());te.addGetterSetter(_n,"textDecoration","");te.addGetterSetter(_n,"underlineOffset",void 0,We());te.addGetterSetter(_n,"charRenderFunc",void 0);const Iw="",qx="normal";function Kx(t){t.fillText(this.partialText,0,0)}function Jx(t){t.strokeText(this.partialText,0,0)}class hr extends Fe{constructor(e){super(e),this.dummyCanvas=he.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return wn.getPathLength(this.dataArray)}_getPointAtLength(e){if(!this.attrs.data)return null;const n=this.pathLength;return e>n?null:wn.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=wn.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();const n=this.textDecoration(),s=this.fill(),i=this.fontSize(),c=this.glyphInfo,d=n.indexOf("underline")!==-1,h=n.indexOf("line-through")!==-1;d&&e.beginPath();for(let p=0;p<c.length;p++){e.save();const u=c[p].p0;e.translate(u.x,u.y),e.rotate(c[p].rotation),this.partialText=c[p].text,e.fillStrokeShape(this),d&&(p===0&&e.moveTo(0,i/2+1),e.lineTo(c[p].width,i/2+1)),e.restore()}if(d&&(e.strokeStyle=s,e.lineWidth=i/20,e.stroke()),h){e.beginPath();for(let p=0;p<c.length;p++){e.save();const u=c[p].p0;e.translate(u.x,u.y),e.rotate(c[p].rotation),p===0&&e.moveTo(0,0),e.lineTo(c[p].width,0),e.restore()}e.strokeStyle=s,e.lineWidth=i/20,e.stroke()}e.restore()}_hitFunc(e){e.beginPath();const n=this.glyphInfo;if(n.length>=1){const s=n[0].p0;e.moveTo(s.x,s.y)}for(let s=0;s<n.length;s++){const i=n[s].p1;e.lineTo(i.x,i.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return he.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(e){return _n.prototype.setText.call(this,e)}_getContextFont(){return _n.prototype._getContextFont.call(this)}_getTextSize(e){const s=this.dummyCanvas.getContext("2d");s.save(),s.font=this._getContextFont();const i=s.measureText(e);return s.restore(),{width:i.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const e=Fo(this.text()),n=[];let s=0;for(let y=0;y<e.length;y++)n.push({char:e[y],width:this._getTextSize(e[y]).width}),s+=n[y].width;const{height:i}=this._getTextSize(this.attrs.text);if(this.textWidth=s,this.textHeight=i,this.glyphInfo=[],!this.attrs.data)return null;const c=this.letterSpacing(),d=this.align(),h=this.kerningFunc(),p=Math.max(this.textWidth+((this.attrs.text||"").length-1)*c,0);let u=0;d==="center"&&(u=Math.max(0,this.pathLength/2-p/2)),d==="right"&&(u=Math.max(0,this.pathLength-p));let A=u;for(let y=0;y<n.length;y++){const x=this._getPointAtLength(A);if(!x)return;const S=n[y].char;let C=n[y].width+c;if(S===" "&&d==="justify"){const O=this.text().split(" ").length-1;C+=(this.pathLength-p)/O}const R=this._getPointAtLength(A+C);if(!R)return;const T=wn.getLineLength(x.x,x.y,R.x,R.y);let D=0;if(h)try{D=h(n[y-1].char,S)*this.fontSize()}catch{D=0}x.x+=D,R.x+=D,this.textWidth+=D;const P=wn.getPointOnLine(D+T/2,x.x,x.y,R.x,R.y),M=Math.atan2(R.y-x.y,R.x-x.x);this.glyphInfo.push({transposeX:P.x,transposeY:P.y,text:e[y],rotation:M,p0:x,p1:R,width:T}),A+=C}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const e=[];this.glyphInfo.forEach(function(u){e.push(u.p0.x),e.push(u.p0.y),e.push(u.p1.x),e.push(u.p1.y)});let n=e[0]||0,s=e[0]||0,i=e[1]||0,c=e[1]||0,d,h;for(let u=0;u<e.length/2;u++)d=e[u*2],h=e[u*2+1],n=Math.min(n,d),s=Math.max(s,d),i=Math.min(i,h),c=Math.max(c,h);const p=this.fontSize();return{x:n-p/2,y:i-p/2,width:s-n+p,height:c-i+p}}destroy(){return he.releaseCanvas(this.dummyCanvas),super.destroy()}}hr.prototype._fillFunc=Kx;hr.prototype._strokeFunc=Jx;hr.prototype._fillFuncHit=Kx;hr.prototype._strokeFuncHit=Jx;hr.prototype.className="TextPath";hr.prototype._attrsAffectingSize=["text","fontSize","data"];Mn(hr);te.addGetterSetter(hr,"data");te.addGetterSetter(hr,"fontFamily","Arial");te.addGetterSetter(hr,"fontSize",12,We());te.addGetterSetter(hr,"fontStyle",qx);te.addGetterSetter(hr,"align","left");te.addGetterSetter(hr,"letterSpacing",0,We());te.addGetterSetter(hr,"textBaseline","middle");te.addGetterSetter(hr,"fontVariant",qx);te.addGetterSetter(hr,"text",Iw);te.addGetterSetter(hr,"textDecoration","");te.addGetterSetter(hr,"kerningFunc",void 0);const Zx="tr-konva",Ow=["resizeEnabledChange","rotateAnchorOffsetChange","rotateAnchorAngleChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(t=>t+`.${Zx}`).join(" "),T2="nodesRect",Uw=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange","draggableChange"],jw={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Gw="ontouchstart"in Qe._global;function Hw(t,e,n){if(t==="rotater")return n;e+=he.degToRad(jw[t]||0);const s=(he.radToDeg(e)%360+360)%360;return he._inRange(s,315+22.5,360)||he._inRange(s,0,22.5)?"ns-resize":he._inRange(s,45-22.5,45+22.5)?"nesw-resize":he._inRange(s,90-22.5,90+22.5)?"ew-resize":he._inRange(s,135-22.5,135+22.5)?"nwse-resize":he._inRange(s,180-22.5,180+22.5)?"ns-resize":he._inRange(s,225-22.5,225+22.5)?"nesw-resize":he._inRange(s,270-22.5,270+22.5)?"ew-resize":he._inRange(s,315-22.5,315+22.5)?"nwse-resize":(he.error("Transformer has unknown angle for cursor detection: "+s),"pointer")}const iA=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Ww(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function $x(t,e,n){const s=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),i=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return{...t,rotation:t.rotation+e,x:s,y:i}}function Xw(t,e){const n=Ww(t);return $x(t,e,n)}function Qw(t,e,n){let s=e;for(let i=0;i<t.length;i++){const c=Qe.getAngle(t[i]),d=Math.abs(c-e)%(Math.PI*2);Math.min(d,Math.PI*2-d)<n&&(s=c)}return s}let Mg=0,Kt=class extends Tu{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(Ow,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return he.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return Zx+this._id}setNodes(e=[]){this._nodes&&this._nodes.length&&this.detach();const n=e.filter(i=>i.isAncestorOf(this)?(he.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=e=n,e.length===1&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(i=>{const c=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()};if(i._attrsAffectingSize.length){const d=i._attrsAffectingSize.map(h=>h+"Change."+this._getEventNamespace()).join(" ");i.on(d,c)}i.on(Uw.map(d=>d+`.${this._getEventNamespace()}`).join(" "),c),i.on(`absoluteTransformChange.${this._getEventNamespace()}`,c),this._proxyDrag(i)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(e){let n;e.on(`dragstart.${this._getEventNamespace()}`,s=>{n=e.getAbsolutePosition(),!this.isDragging()&&e!==this.findOne(".back")&&this.startDrag(s,!1)}),e.on(`dragmove.${this._getEventNamespace()}`,s=>{if(!n)return;const i=e.getAbsolutePosition(),c=i.x-n.x,d=i.y-n.y;this.nodes().forEach(h=>{if(h===e||h.isDragging())return;const p=h.getAbsolutePosition();h.setAbsolutePosition({x:p.x+c,y:p.y+d}),h.startDrag(s)}),n=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(e=>{e.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(T2),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(T2,this.__getNodeRect)}__getNodeShape(e,n=this.rotation(),s){const i=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),c=e.getAbsoluteScale(s),d=e.getAbsolutePosition(s),h=i.x*c.x-e.offsetX()*c.x,p=i.y*c.y-e.offsetY()*c.y,u=(Qe.getAngle(e.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),A={x:d.x+h*Math.cos(u)+p*Math.sin(-u),y:d.y+p*Math.cos(u)+h*Math.sin(u),width:i.width*c.x,height:i.height*c.y,rotation:u};return $x(A,-Qe.getAngle(n),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const n=[];this.nodes().map(u=>{const A=u.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),y=[{x:A.x,y:A.y},{x:A.x+A.width,y:A.y},{x:A.x+A.width,y:A.y+A.height},{x:A.x,y:A.y+A.height}],x=u.getAbsoluteTransform();y.forEach(function(S){const C=x.point(S);n.push(C)})});const s=new Qa;s.rotate(-Qe.getAngle(this.rotation()));let i=1/0,c=1/0,d=-1/0,h=-1/0;n.forEach(function(u){const A=s.point(u);i===void 0&&(i=d=A.x,c=h=A.y),i=Math.min(i,A.x),c=Math.min(c,A.y),d=Math.max(d,A.x),h=Math.max(h,A.y)}),s.invert();const p=s.point({x:i,y:c});return{x:p.x,y:p.y,width:d-i,height:h-c,rotation:Qe.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),iA.forEach(e=>{this._createAnchor(e)}),this._createAnchor("rotater")}_createAnchor(e){const n=new kf({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:Gw?10:"auto"}),s=this;n.on("mousedown touchstart",function(i){s._handleMouseDown(i)}),n.on("dragstart",i=>{n.stopDrag(),i.cancelBubble=!0}),n.on("dragend",i=>{i.cancelBubble=!0}),n.on("mouseenter",()=>{const i=Qe.getAngle(this.rotation()),c=this.rotateAnchorCursor(),d=Hw(e,i,c);n.getStage().content&&(n.getStage().content.style.cursor=d),this._cursorChange=!0}),n.on("mouseout",()=>{n.getStage().content&&(n.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(n)}_createBack(){const e=new Fe({name:"back",width:0,height:0,sceneFunc(n,s){const i=s.getParent(),c=i.padding(),d=s.width(),h=s.height();if(n.beginPath(),n.rect(-c,-c,d+c*2,h+c*2),i.rotateEnabled()&&i.rotateLineVisible()){const p=i.rotateAnchorAngle(),u=i.rotateAnchorOffset(),A=he.degToRad(p),y=Math.sin(A),x=-Math.cos(A),S=d/2,C=h/2;let R=1/0;x<0?R=Math.min(R,-C/x):x>0&&(R=Math.min(R,(h-C)/x)),y<0?R=Math.min(R,-S/y):y>0&&(R=Math.min(R,(d-S)/y));const T=S+y*R,D=C+x*R,P=he._sign(h),M=T+y*u*P,O=D+x*u*P;n.moveTo(T,D),n.lineTo(M,O)}n.fillStrokeShape(s)},hitFunc:(n,s)=>{if(!this.shouldOverdrawWholeArea())return;const i=this.padding();n.beginPath(),n.rect(-i,-i,s.width()+i*2,s.height()+i*2),n.fillStrokeShape(s)}});this.add(e),this._proxyDrag(e),e.on("dragstart",n=>{n.cancelBubble=!0}),e.on("dragmove",n=>{n.cancelBubble=!0}),e.on("dragend",n=>{n.cancelBubble=!0}),this.on("dragmove",n=>{this.update()})}_handleMouseDown(e){if(this._transforming)return;this._movingAnchorName=e.target.name().split(" ")[0];const n=this._getNodeRect(),s=n.width,i=n.height,c=Math.sqrt(Math.pow(s,2)+Math.pow(i,2));this.sin=Math.abs(i/c),this.cos=Math.abs(s/c),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const d=e.target.getAbsolutePosition(),h=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:h.x-d.x,y:h.y-d.y},Mg++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach(p=>{p._fire("transformstart",{evt:e.evt,target:p})})}_handleMouseMove(e){let n,s,i;const c=this.findOne("."+this._movingAnchorName),d=c.getStage();d.setPointersPositions(e);const h=d.getPointerPosition();let p={x:h.x-this._anchorDragOffset.x,y:h.y-this._anchorDragOffset.y};const u=c.getAbsolutePosition();this.anchorDragBoundFunc()&&(p=this.anchorDragBoundFunc()(u,p,e)),c.setAbsolutePosition(p);const A=c.getAbsolutePosition();if(u.x===A.x&&u.y===A.y)return;if(this._movingAnchorName==="rotater"){const P=this._getNodeRect();n=c.x()-P.width/2,s=-c.y()+P.height/2;const M=Qe.getAngle(this.rotateAnchorAngle());let O=Math.atan2(-s,n)+Math.PI/2-M;P.height<0&&(O-=Math.PI);const Y=Qe.getAngle(this.rotation())+O,K=Qe.getAngle(this.rotationSnapTolerance()),Q=Qw(this.rotationSnaps(),Y,K)-P.rotation,V=Xw(P,Q);this._fitNodesInto(V,e);return}const y=this.shiftBehavior();let x;y==="inverted"?x=this.keepRatio()&&!e.shiftKey:y==="none"?x=this.keepRatio():x=this.keepRatio()||e.shiftKey;let S=this.centeredScaling()||e.altKey;if(this._movingAnchorName==="top-left"){if(x){const P=S?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(P.x-c.x(),2)+Math.pow(P.y-c.y(),2));const M=this.findOne(".top-left").x()>P.x?-1:1,O=this.findOne(".top-left").y()>P.y?-1:1;n=i*this.cos*M,s=i*this.sin*O,this.findOne(".top-left").x(P.x-n),this.findOne(".top-left").y(P.y-s)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(c.y());else if(this._movingAnchorName==="top-right"){if(x){const P=S?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(c.x()-P.x,2)+Math.pow(P.y-c.y(),2));const M=this.findOne(".top-right").x()<P.x?-1:1,O=this.findOne(".top-right").y()>P.y?-1:1;n=i*this.cos*M,s=i*this.sin*O,this.findOne(".top-right").x(P.x+n),this.findOne(".top-right").y(P.y-s)}var C=c.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(c.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(c.x());else if(this._movingAnchorName==="bottom-left"){if(x){const P=S?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(P.x-c.x(),2)+Math.pow(c.y()-P.y,2));const M=P.x<c.x()?-1:1,O=c.y()<P.y?-1:1;n=i*this.cos*M,s=i*this.sin*O,c.x(P.x-n),c.y(P.y+s)}C=c.position(),this.findOne(".top-left").x(C.x),this.findOne(".bottom-right").y(C.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(c.y());else if(this._movingAnchorName==="bottom-right"){if(x){const P=S?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(c.x()-P.x,2)+Math.pow(c.y()-P.y,2));const M=this.findOne(".bottom-right").x()<P.x?-1:1,O=this.findOne(".bottom-right").y()<P.y?-1:1;n=i*this.cos*M,s=i*this.sin*O,this.findOne(".bottom-right").x(P.x+n),this.findOne(".bottom-right").y(P.y+s)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(S=this.centeredScaling()||e.altKey,S){const P=this.findOne(".top-left"),M=this.findOne(".bottom-right"),O=P.x(),I=P.y(),Y=this.getWidth()-M.x(),K=this.getHeight()-M.y();M.move({x:-O,y:-I}),P.move({x:Y,y:K})}const R=this.findOne(".top-left").getAbsolutePosition();n=R.x,s=R.y;const T=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),D=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:n,y:s,width:T,height:D,rotation:Qe.getAngle(this.rotation())},e)}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var n;if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const s=this.getNode();Mg--,this._fire("transformend",{evt:e,target:s}),(n=this.getLayer())===null||n===void 0||n.batchDraw(),s&&this._nodes.forEach(i=>{var c;i._fire("transformend",{evt:e,target:i}),(c=i.getLayer())===null||c===void 0||c.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(e,n){const s=this._getNodeRect(),i=1;if(he._inRange(e.width,-this.padding()*2-i,i)){this.update();return}if(he._inRange(e.height,-this.padding()*2-i,i)){this.update();return}const c=new Qa;if(c.rotate(Qe.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const x=c.point({x:-this.padding()*2,y:0});e.x+=x.x,e.y+=x.y,e.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=x.x,this._anchorDragOffset.y-=x.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const x=c.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=x.x,this._anchorDragOffset.y-=x.y,e.width+=this.padding()*2}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const x=c.point({x:0,y:-this.padding()*2});e.x+=x.x,e.y+=x.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=x.x,this._anchorDragOffset.y-=x.y,e.height+=this.padding()*2}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const x=c.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=x.x,this._anchorDragOffset.y-=x.y,e.height+=this.padding()*2}if(this.boundBoxFunc()){const x=this.boundBoxFunc()(s,e);x?e=x:he.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const d=1e7,h=new Qa;h.translate(s.x,s.y),h.rotate(s.rotation),h.scale(s.width/d,s.height/d);const p=new Qa,u=e.width/d,A=e.height/d;this.flipEnabled()===!1?(p.translate(e.x,e.y),p.rotate(e.rotation),p.translate(e.width<0?e.width:0,e.height<0?e.height:0),p.scale(Math.abs(u),Math.abs(A))):(p.translate(e.x,e.y),p.rotate(e.rotation),p.scale(u,A));const y=p.multiply(h.invert());this._nodes.forEach(x=>{var S;if(!x.getStage())return;const C=x.getParent().getAbsoluteTransform(),R=x.getTransform().copy();R.translate(x.offsetX(),x.offsetY());const T=new Qa;T.multiply(C.copy().invert()).multiply(y).multiply(C).multiply(R);const D=T.decompose();x.setAttrs(D),(S=x.getLayer())===null||S===void 0||S.batchDraw()}),this.rotation(he._getRotation(e.rotation)),this._nodes.forEach(x=>{this._fire("transform",{evt:n,target:x}),x._fire("transform",{evt:n,target:x})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,n){this.findOne(e).setAttrs(n)}update(){var e;const n=this._getNodeRect();this.rotation(he._getRotation(n.rotation));const s=n.width,i=n.height,c=this.enabledAnchors(),d=this.resizeEnabled(),h=this.padding(),p=this.anchorSize(),u=this.find("._anchor");u.forEach(Y=>{Y.setAttrs({width:p,height:p,offsetX:p/2,offsetY:p/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:p/2+h,offsetY:p/2+h,visible:d&&c.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:s/2,y:0,offsetY:p/2+h,visible:d&&c.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:s,y:0,offsetX:p/2-h,offsetY:p/2+h,visible:d&&c.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:p/2+h,visible:d&&c.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:s,y:i/2,offsetX:p/2-h,visible:d&&c.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:p/2+h,offsetY:p/2-h,visible:d&&c.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:s/2,y:i,offsetY:p/2-h,visible:d&&c.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:s,y:i,offsetX:p/2-h,offsetY:p/2-h,visible:d&&c.indexOf("bottom-right")>=0});const A=this.rotateAnchorAngle(),y=this.rotateAnchorOffset(),x=he.degToRad(A),S=Math.sin(x),C=-Math.cos(x),R=s/2,T=i/2;let D=1/0;C<0?D=Math.min(D,-T/C):C>0&&(D=Math.min(D,(i-T)/C)),S<0?D=Math.min(D,-R/S):S>0&&(D=Math.min(D,(s-R)/S));const P=R+S*D,M=T+C*D,O=he._sign(i);this._batchChangeChild(".rotater",{x:P+S*y*O,y:M+C*y*O-h*C,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:s,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),draggable:this.nodes().some(Y=>Y.draggable()),x:0,y:0});const I=this.anchorStyleFunc();I&&u.forEach(Y=>{I(Y)}),(e=this.getLayer())===null||e===void 0||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),Tu.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Ge.prototype.toObject.call(this)}clone(e){return Ge.prototype.clone.call(this,e)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}};Kt.isTransforming=()=>Mg>0;function Yw(t){return t instanceof Array||he.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(e){iA.indexOf(e)===-1&&he.warn("Unknown anchor name: "+e+". Available names are: "+iA.join(", "))}),t||[]}Kt.prototype.className="Transformer";Mn(Kt);te.addGetterSetter(Kt,"enabledAnchors",iA,Yw);te.addGetterSetter(Kt,"flipEnabled",!0,zi());te.addGetterSetter(Kt,"resizeEnabled",!0);te.addGetterSetter(Kt,"anchorSize",10,We());te.addGetterSetter(Kt,"rotateEnabled",!0);te.addGetterSetter(Kt,"rotateLineVisible",!0);te.addGetterSetter(Kt,"rotationSnaps",[]);te.addGetterSetter(Kt,"rotateAnchorOffset",50,We());te.addGetterSetter(Kt,"rotateAnchorAngle",0,We());te.addGetterSetter(Kt,"rotateAnchorCursor","crosshair");te.addGetterSetter(Kt,"rotationSnapTolerance",5,We());te.addGetterSetter(Kt,"borderEnabled",!0);te.addGetterSetter(Kt,"anchorStroke","rgb(0, 161, 255)");te.addGetterSetter(Kt,"anchorStrokeWidth",1,We());te.addGetterSetter(Kt,"anchorFill","white");te.addGetterSetter(Kt,"anchorCornerRadius",0,We());te.addGetterSetter(Kt,"borderStroke","rgb(0, 161, 255)");te.addGetterSetter(Kt,"borderStrokeWidth",1,We());te.addGetterSetter(Kt,"borderDash");te.addGetterSetter(Kt,"keepRatio",!0);te.addGetterSetter(Kt,"shiftBehavior","default");te.addGetterSetter(Kt,"centeredScaling",!1);te.addGetterSetter(Kt,"ignoreStroke",!1);te.addGetterSetter(Kt,"padding",0,We());te.addGetterSetter(Kt,"nodes");te.addGetterSetter(Kt,"node");te.addGetterSetter(Kt,"boundBoxFunc");te.addGetterSetter(Kt,"anchorDragBoundFunc");te.addGetterSetter(Kt,"anchorStyleFunc");te.addGetterSetter(Kt,"shouldOverdrawWholeArea",!1);te.addGetterSetter(Kt,"useSingleNodeRotation",!0);te.backCompat(Kt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class eo extends Fe{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,Qe.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}eo.prototype.className="Wedge";eo.prototype._centroid=!0;eo.prototype._attrsAffectingSize=["radius"];Mn(eo);te.addGetterSetter(eo,"radius",0,We());te.addGetterSetter(eo,"angle",0,We());te.addGetterSetter(eo,"clockwise",!1);te.backCompat(eo,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});function D2(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const Vw=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],qw=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Kw(t,e){const n=t.data,s=t.width,i=t.height;let c,d,h,p,u,A,y,x,S,C,R,T,D,P,M,O,I,Y,K,q;const Q=e+e+1,V=s-1,ge=i-1,W=e+1,se=W*(W+1)/2,L=new D2,ne=Vw[e],le=qw[e];let pe=null,J=L,ae=null,re=null;for(let U=1;U<Q;U++)J=J.next=new D2,U===W&&(pe=J);J.next=L,h=d=0;for(let U=0;U<i;U++){T=D=P=M=p=u=A=y=0,x=W*(O=n[d]),S=W*(I=n[d+1]),C=W*(Y=n[d+2]),R=W*(K=n[d+3]),p+=se*O,u+=se*I,A+=se*Y,y+=se*K,J=L;for(let ee=0;ee<W;ee++)J.r=O,J.g=I,J.b=Y,J.a=K,J=J.next;for(let ee=1;ee<W;ee++)c=d+((V<ee?V:ee)<<2),p+=(J.r=O=n[c])*(q=W-ee),u+=(J.g=I=n[c+1])*q,A+=(J.b=Y=n[c+2])*q,y+=(J.a=K=n[c+3])*q,T+=O,D+=I,P+=Y,M+=K,J=J.next;ae=L,re=pe;for(let ee=0;ee<s;ee++)n[d+3]=K=y*ne>>le,K!==0?(K=255/K,n[d]=(p*ne>>le)*K,n[d+1]=(u*ne>>le)*K,n[d+2]=(A*ne>>le)*K):n[d]=n[d+1]=n[d+2]=0,p-=x,u-=S,A-=C,y-=R,x-=ae.r,S-=ae.g,C-=ae.b,R-=ae.a,c=h+((c=ee+e+1)<V?c:V)<<2,T+=ae.r=n[c],D+=ae.g=n[c+1],P+=ae.b=n[c+2],M+=ae.a=n[c+3],p+=T,u+=D,A+=P,y+=M,ae=ae.next,x+=O=re.r,S+=I=re.g,C+=Y=re.b,R+=K=re.a,T-=O,D-=I,P-=Y,M-=K,re=re.next,d+=4;h+=s}for(let U=0;U<s;U++){D=P=M=T=u=A=y=p=0,d=U<<2,x=W*(O=n[d]),S=W*(I=n[d+1]),C=W*(Y=n[d+2]),R=W*(K=n[d+3]),p+=se*O,u+=se*I,A+=se*Y,y+=se*K,J=L;for(let Ee=0;Ee<W;Ee++)J.r=O,J.g=I,J.b=Y,J.a=K,J=J.next;let ee=s;for(let Ee=1;Ee<=e;Ee++)d=ee+U<<2,p+=(J.r=O=n[d])*(q=W-Ee),u+=(J.g=I=n[d+1])*q,A+=(J.b=Y=n[d+2])*q,y+=(J.a=K=n[d+3])*q,T+=O,D+=I,P+=Y,M+=K,J=J.next,Ee<ge&&(ee+=s);d=U,ae=L,re=pe;for(let Ee=0;Ee<i;Ee++)c=d<<2,n[c+3]=K=y*ne>>le,K>0?(K=255/K,n[c]=(p*ne>>le)*K,n[c+1]=(u*ne>>le)*K,n[c+2]=(A*ne>>le)*K):n[c]=n[c+1]=n[c+2]=0,p-=x,u-=S,A-=C,y-=R,x-=ae.r,S-=ae.g,C-=ae.b,R-=ae.a,c=U+((c=Ee+W)<ge?c:ge)*s<<2,p+=T+=ae.r=n[c],u+=D+=ae.g=n[c+1],A+=P+=ae.b=n[c+2],y+=M+=ae.a=n[c+3],ae=ae.next,x+=O=re.r,S+=I=re.g,C+=Y=re.b,R+=K=re.a,T-=O,D-=I,P-=Y,M-=K,re=re.next,d+=s}}const Jw=function(e){const n=Math.round(this.blurRadius());n>0&&Kw(e,n)};te.addGetterSetter(Ge,"blurRadius",0,We(),te.afterSetFilter);const Zw=function(t){const e=this.brightness()*255,n=t.data,s=n.length;for(let i=0;i<s;i+=4)n[i]+=e,n[i+1]+=e,n[i+2]+=e};te.addGetterSetter(Ge,"brightness",0,We(),te.afterSetFilter);const $w=function(t){const e=this.brightness(),n=t.data,s=n.length;for(let i=0;i<s;i+=4)n[i]=Math.min(255,n[i]*e),n[i+1]=Math.min(255,n[i+1]*e),n[i+2]=Math.min(255,n[i+2]*e)},e8=function(t){const e=Math.pow((this.contrast()+100)/100,2),n=t.data,s=n.length;let i=150,c=150,d=150;for(let h=0;h<s;h+=4)i=n[h],c=n[h+1],d=n[h+2],i/=255,i-=.5,i*=e,i+=.5,i*=255,c/=255,c-=.5,c*=e,c+=.5,c*=255,d/=255,d-=.5,d*=e,d+=.5,d*=255,i=i<0?0:i>255?255:i,c=c<0?0:c>255?255:c,d=d<0?0:d>255?255:d,n[h]=i,n[h+1]=c,n[h+2]=d};te.addGetterSetter(Ge,"contrast",0,We(),te.afterSetFilter);const t8=function(t){var e,n,s,i,c,d,h,p,u;const A=t.data,y=t.width,x=t.height,S=Math.min(1,Math.max(0,(n=(e=this.embossStrength)===null||e===void 0?void 0:e.call(this))!==null&&n!==void 0?n:.5)),C=Math.min(1,Math.max(0,(i=(s=this.embossWhiteLevel)===null||s===void 0?void 0:s.call(this))!==null&&i!==void 0?i:.5)),T=(h={"top-left":315,top:270,"top-right":225,right:180,"bottom-right":135,bottom:90,"bottom-left":45,left:0}[(d=(c=this.embossDirection)===null||c===void 0?void 0:c.call(this))!==null&&d!==void 0?d:"top-left"])!==null&&h!==void 0?h:315,D=!!((u=(p=this.embossBlend)===null||p===void 0?void 0:p.call(this))!==null&&u!==void 0&&u),P=S*10,M=C*255,O=T*Math.PI/180,I=Math.cos(O),Y=Math.sin(O),K=128/1020*P,q=new Uint8ClampedArray(A),Q=new Float32Array(y*x);for(let L=0,ne=0;ne<A.length;ne+=4,L++)Q[L]=.2126*q[ne]+.7152*q[ne+1]+.0722*q[ne+2];const V=[-1,0,1,-2,0,2,-1,0,1],ge=[-1,-2,-1,0,0,0,1,2,1],W=[-y-1,-y,-y+1,-1,0,1,y-1,y,y+1],se=L=>L<0?0:L>255?255:L;for(let L=1;L<x-1;L++)for(let ne=1;ne<y-1;ne++){const le=L*y+ne;let pe=0,J=0;pe+=Q[le+W[0]]*V[0],J+=Q[le+W[0]]*ge[0],pe+=Q[le+W[1]]*V[1],J+=Q[le+W[1]]*ge[1],pe+=Q[le+W[2]]*V[2],J+=Q[le+W[2]]*ge[2],pe+=Q[le+W[3]]*V[3],J+=Q[le+W[3]]*ge[3],pe+=Q[le+W[5]]*V[5],J+=Q[le+W[5]]*ge[5],pe+=Q[le+W[6]]*V[6],J+=Q[le+W[6]]*ge[6],pe+=Q[le+W[7]]*V[7],J+=Q[le+W[7]]*ge[7],pe+=Q[le+W[8]]*V[8],J+=Q[le+W[8]]*ge[8];const ae=I*pe+Y*J,re=se(M+ae*K),U=le*4;if(D){const ee=re-M;A[U]=se(q[U]+ee),A[U+1]=se(q[U+1]+ee),A[U+2]=se(q[U+2]+ee),A[U+3]=q[U+3]}else A[U]=A[U+1]=A[U+2]=re,A[U+3]=q[U+3]}for(let L=0;L<y;L++){let ne=L*4,le=((x-1)*y+L)*4;A[ne]=q[ne],A[ne+1]=q[ne+1],A[ne+2]=q[ne+2],A[ne+3]=q[ne+3],A[le]=q[le],A[le+1]=q[le+1],A[le+2]=q[le+2],A[le+3]=q[le+3]}for(let L=1;L<x-1;L++){let ne=L*y*4,le=(L*y+(y-1))*4;A[ne]=q[ne],A[ne+1]=q[ne+1],A[ne+2]=q[ne+2],A[ne+3]=q[ne+3],A[le]=q[le],A[le+1]=q[le+1],A[le+2]=q[le+2],A[le+3]=q[le+3]}return t};te.addGetterSetter(Ge,"embossStrength",.5,We(),te.afterSetFilter);te.addGetterSetter(Ge,"embossWhiteLevel",.5,We(),te.afterSetFilter);te.addGetterSetter(Ge,"embossDirection","top-left",void 0,te.afterSetFilter);te.addGetterSetter(Ge,"embossBlend",!1,void 0,te.afterSetFilter);function ag(t,e,n,s,i){const c=n-e,d=i-s;if(c===0)return s+d/2;if(d===0)return s;let h=(t-e)/c;return h=d*h+s,h}const n8=function(t){const e=t.data,n=e.length;let s=e[0],i=s,c,d=e[1],h=d,p,u=e[2],A=u,y;const x=this.enhance();if(x===0)return;for(let M=0;M<n;M+=4)c=e[M+0],c<s?s=c:c>i&&(i=c),p=e[M+1],p<d?d=p:p>h&&(h=p),y=e[M+2],y<u?u=y:y>A&&(A=y);i===s&&(i=255,s=0),h===d&&(h=255,d=0),A===u&&(A=255,u=0);let S,C,R,T,D,P;if(x>0)S=i+x*(255-i),C=s-x*(s-0),R=h+x*(255-h),T=d-x*(d-0),D=A+x*(255-A),P=u-x*(u-0);else{const M=(i+s)*.5;S=i+x*(i-M),C=s+x*(s-M);const O=(h+d)*.5;R=h+x*(h-O),T=d+x*(d-O);const I=(A+u)*.5;D=A+x*(A-I),P=u+x*(u-I)}for(let M=0;M<n;M+=4)e[M+0]=ag(e[M+0],s,i,C,S),e[M+1]=ag(e[M+1],d,h,T,R),e[M+2]=ag(e[M+2],u,A,P,D)};te.addGetterSetter(Ge,"enhance",0,We(),te.afterSetFilter);const r8=function(t){const e=t.data,n=e.length;for(let s=0;s<n;s+=4){const i=.34*e[s]+.5*e[s+1]+.16*e[s+2];e[s]=i,e[s+1]=i,e[s+2]=i}};te.addGetterSetter(Ge,"hue",0,We(),te.afterSetFilter);te.addGetterSetter(Ge,"saturation",0,We(),te.afterSetFilter);te.addGetterSetter(Ge,"luminance",0,We(),te.afterSetFilter);const a8=function(t){const e=t.data,n=e.length,s=1,i=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,d=this.luminance()*127,h=s*i*Math.cos(c*Math.PI/180),p=s*i*Math.sin(c*Math.PI/180),u=.299*s+.701*h+.167*p,A=.587*s-.587*h+.33*p,y=.114*s-.114*h-.497*p,x=.299*s-.299*h-.328*p,S=.587*s+.413*h+.035*p,C=.114*s-.114*h+.293*p,R=.299*s-.3*h+1.25*p,T=.587*s-.586*h-1.05*p,D=.114*s+.886*h-.2*p;let P,M,O,I;for(let Y=0;Y<n;Y+=4)P=e[Y+0],M=e[Y+1],O=e[Y+2],I=e[Y+3],e[Y+0]=u*P+A*M+y*O+d,e[Y+1]=x*P+S*M+C*O+d,e[Y+2]=R*P+T*M+D*O+d,e[Y+3]=I},i8=function(t){const e=t.data,n=e.length,s=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,d=s*i*Math.cos(c*Math.PI/180),h=s*i*Math.sin(c*Math.PI/180),p=.299*s+.701*d+.167*h,u=.587*s-.587*d+.33*h,A=.114*s-.114*d-.497*h,y=.299*s-.299*d-.328*h,x=.587*s+.413*d+.035*h,S=.114*s-.114*d+.293*h,C=.299*s-.3*d+1.25*h,R=.587*s-.586*d-1.05*h,T=.114*s+.886*d-.2*h;for(let D=0;D<n;D+=4){const P=e[D+0],M=e[D+1],O=e[D+2],I=e[D+3];e[D+0]=p*P+u*M+A*O,e[D+1]=y*P+x*M+S*O,e[D+2]=C*P+R*M+T*O,e[D+3]=I}};te.addGetterSetter(Ge,"hue",0,We(),te.afterSetFilter);te.addGetterSetter(Ge,"saturation",0,We(),te.afterSetFilter);te.addGetterSetter(Ge,"value",0,We(),te.afterSetFilter);const s8=function(t){const e=t.data,n=e.length;for(let s=0;s<n;s+=4)e[s]=255-e[s],e[s+1]=255-e[s+1],e[s+2]=255-e[s+2]},o8=function(t,e,n){const s=t.data,i=e.data,c=t.width,d=t.height,h=n.polarCenterX||c/2,p=n.polarCenterY||d/2;let u=Math.sqrt(h*h+p*p),A=c-h,y=d-p;const x=Math.sqrt(A*A+y*y);u=x>u?x:u;const S=d,C=c,R=360/C*Math.PI/180;for(let T=0;T<C;T+=1){const D=Math.sin(T*R),P=Math.cos(T*R);for(let M=0;M<S;M+=1){A=Math.floor(h+u*M/S*P),y=Math.floor(p+u*M/S*D);let O=(y*c+A)*4;const I=s[O+0],Y=s[O+1],K=s[O+2],q=s[O+3];O=(T+M*c)*4,i[O+0]=I,i[O+1]=Y,i[O+2]=K,i[O+3]=q}}},l8=function(t,e,n){const s=t.data,i=e.data,c=t.width,d=t.height,h=n.polarCenterX||c/2,p=n.polarCenterY||d/2;let u=Math.sqrt(h*h+p*p),A=c-h,y=d-p;const x=Math.sqrt(A*A+y*y);u=x>u?x:u;const S=d,C=c,R=0;let T,D;for(A=0;A<c;A+=1)for(y=0;y<d;y+=1){const P=A-h,M=y-p,O=Math.sqrt(P*P+M*M)*S/u;let I=(Math.atan2(M,P)*180/Math.PI+360+R)%360;I=I*C/360,T=Math.floor(I),D=Math.floor(O);let Y=(D*c+T)*4;const K=s[Y+0],q=s[Y+1],Q=s[Y+2],V=s[Y+3];Y=(y*c+A)*4,i[Y+0]=K,i[Y+1]=q,i[Y+2]=Q,i[Y+3]=V}},c8=function(t){const e=t.width,n=t.height;let s,i,c,d,h,p,u,A,y,x,S=Math.round(this.kaleidoscopePower());const C=Math.round(this.kaleidoscopeAngle()),R=Math.floor(e*(C%360)/360);if(S<1)return;const T=he.createCanvasElement();T.width=e,T.height=n;const D=T.getContext("2d").getImageData(0,0,e,n);he.releaseCanvas(T),o8(t,D,{polarCenterX:e/2,polarCenterY:n/2});let P=e/Math.pow(2,S);for(;P<=8;)P=P*2,S-=1;P=Math.ceil(P);let M=P,O=0,I=M,Y=1;for(R+P>e&&(O=M,I=0,Y=-1),i=0;i<n;i+=1)for(s=O;s!==I;s+=Y)c=Math.round(s+R)%e,y=(e*i+c)*4,h=D.data[y+0],p=D.data[y+1],u=D.data[y+2],A=D.data[y+3],x=(e*i+s)*4,D.data[x+0]=h,D.data[x+1]=p,D.data[x+2]=u,D.data[x+3]=A;for(i=0;i<n;i+=1)for(M=Math.floor(P),d=0;d<S;d+=1){for(s=0;s<M+1;s+=1)y=(e*i+s)*4,h=D.data[y+0],p=D.data[y+1],u=D.data[y+2],A=D.data[y+3],x=(e*i+M*2-s-1)*4,D.data[x+0]=h,D.data[x+1]=p,D.data[x+2]=u,D.data[x+3]=A;M*=2}l8(D,t,{})};te.addGetterSetter(Ge,"kaleidoscopePower",2,We(),te.afterSetFilter);te.addGetterSetter(Ge,"kaleidoscopeAngle",0,We(),te.afterSetFilter);function Wp(t,e,n){let s=(n*t.width+e)*4;const i=[];return i.push(t.data[s++],t.data[s++],t.data[s++],t.data[s++]),i}function uf(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function u8(t){const e=[0,0,0];for(let n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function d8(t,e){const n=Wp(t,0,0),s=Wp(t,t.width-1,0),i=Wp(t,0,t.height-1),c=Wp(t,t.width-1,t.height-1),d=e||10;if(uf(n,s)<d&&uf(s,c)<d&&uf(c,i)<d&&uf(i,n)<d){const h=u8([s,n,c,i]),p=[];for(let u=0;u<t.width*t.height;u++){const A=uf(h,[t.data[u*4],t.data[u*4+1],t.data[u*4+2]]);p[u]=A<d?0:255}return p}}function f8(t,e){for(let n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function h8(t,e,n){const s=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(s.length)),c=Math.floor(i/2),d=[];for(let h=0;h<n;h++)for(let p=0;p<e;p++){const u=h*e+p;let A=0;for(let y=0;y<i;y++)for(let x=0;x<i;x++){const S=h+y-c,C=p+x-c;if(S>=0&&S<n&&C>=0&&C<e){const R=S*e+C,T=s[y*i+x];A+=t[R]*T}}d[u]=A===2040?255:0}return d}function p8(t,e,n){const s=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(s.length)),c=Math.floor(i/2),d=[];for(let h=0;h<n;h++)for(let p=0;p<e;p++){const u=h*e+p;let A=0;for(let y=0;y<i;y++)for(let x=0;x<i;x++){const S=h+y-c,C=p+x-c;if(S>=0&&S<n&&C>=0&&C<e){const R=S*e+C,T=s[y*i+x];A+=t[R]*T}}d[u]=A>=1020?255:0}return d}function A8(t,e,n){const s=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(s.length)),c=Math.floor(i/2),d=[];for(let h=0;h<n;h++)for(let p=0;p<e;p++){const u=h*e+p;let A=0;for(let y=0;y<i;y++)for(let x=0;x<i;x++){const S=h+y-c,C=p+x-c;if(S>=0&&S<n&&C>=0&&C<e){const R=S*e+C,T=s[y*i+x];A+=t[R]*T}}d[u]=A}return d}const m8=function(t){const e=this.threshold();let n=d8(t,e);return n&&(n=h8(n,t.width,t.height),n=p8(n,t.width,t.height),n=A8(n,t.width,t.height),f8(t,n)),t};te.addGetterSetter(Ge,"threshold",0,We(),te.afterSetFilter);const g8=function(t){const e=this.noise()*255,n=t.data,s=n.length,i=e/2;for(let c=0;c<s;c+=4)n[c+0]+=i-2*i*Math.random(),n[c+1]+=i-2*i*Math.random(),n[c+2]+=i-2*i*Math.random()};te.addGetterSetter(Ge,"noise",.2,We(),te.afterSetFilter);const v8=function(t){let e=Math.ceil(this.pixelSize()),n=t.width,s=t.height,i=Math.ceil(n/e),c=Math.ceil(s/e),d=t.data;if(e<=0){he.error("pixelSize value can not be <= 0");return}for(let h=0;h<i;h+=1)for(let p=0;p<c;p+=1){let u=0,A=0,y=0,x=0;const S=h*e,C=S+e,R=p*e,T=R+e;let D=0;for(let P=S;P<C;P+=1)if(!(P>=n))for(let M=R;M<T;M+=1){if(M>=s)continue;const O=(n*M+P)*4;u+=d[O+0],A+=d[O+1],y+=d[O+2],x+=d[O+3],D+=1}u=u/D,A=A/D,y=y/D,x=x/D;for(let P=S;P<C;P+=1)if(!(P>=n))for(let M=R;M<T;M+=1){if(M>=s)continue;const O=(n*M+P)*4;d[O+0]=u,d[O+1]=A,d[O+2]=y,d[O+3]=x}}};te.addGetterSetter(Ge,"pixelSize",8,We(),te.afterSetFilter);const y8=function(t){const e=Math.round(this.levels()*254)+1,n=t.data,s=n.length,i=255/e;for(let c=0;c<s;c+=1)n[c]=Math.floor(n[c]/i)*i};te.addGetterSetter(Ge,"levels",.5,We(),te.afterSetFilter);const x8=function(t){const e=t.data,n=e.length,s=this.red(),i=this.green(),c=this.blue();for(let d=0;d<n;d+=4){const h=(.34*e[d]+.5*e[d+1]+.16*e[d+2])/255;e[d]=h*s,e[d+1]=h*i,e[d+2]=h*c,e[d+3]=e[d+3]}};te.addGetterSetter(Ge,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});te.addGetterSetter(Ge,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});te.addGetterSetter(Ge,"blue",0,Sx,te.afterSetFilter);const b8=function(t){const e=t.data,n=e.length,s=this.red(),i=this.green(),c=this.blue(),d=this.alpha();for(let h=0;h<n;h+=4){const p=1-d;e[h]=s*d+e[h]*p,e[h+1]=i*d+e[h+1]*p,e[h+2]=c*d+e[h+2]*p}};te.addGetterSetter(Ge,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});te.addGetterSetter(Ge,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});te.addGetterSetter(Ge,"blue",0,Sx,te.afterSetFilter);te.addGetterSetter(Ge,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t});const S8=function(t){const e=t.data,n=e.length;for(let s=0;s<n;s+=4){const i=e[s+0],c=e[s+1],d=e[s+2];e[s+0]=Math.min(255,i*.393+c*.769+d*.189),e[s+1]=Math.min(255,i*.349+c*.686+d*.168),e[s+2]=Math.min(255,i*.272+c*.534+d*.131)}},C8=function(t){const n=t.data;for(let s=0;s<n.length;s+=4){const i=n[s],c=n[s+1],d=n[s+2];.2126*i+.7152*c+.0722*d>=128&&(n[s]=255-i,n[s+1]=255-c,n[s+2]=255-d)}return t},w8=function(t){const e=this.threshold()*255,n=t.data,s=n.length;for(let i=0;i<s;i+=1)n[i]=n[i]<e?0:255};te.addGetterSetter(Ge,"threshold",.5,We(),te.afterSetFilter);Ml.Util._assign(Ml,{Arc:Zs,Arrow:Il,Circle:Du,Ellipse:Ho,Image:Fi,Label:Kg,Tag:Ol,Line:$s,Path:wn,Rect:kf,RegularPolygon:Wo,Ring:Ul,Sprite:hs,Star:Xo,Text:_n,TextPath:hr,Transformer:Kt,Wedge:eo,Filters:{Blur:Jw,Brightness:$w,Brighten:Zw,Contrast:e8,Emboss:t8,Enhance:n8,Grayscale:r8,HSL:a8,HSV:i8,Invert:s8,Kaleidoscope:c8,Mask:m8,Noise:g8,Pixelate:v8,Posterize:y8,RGB:x8,RGBA:b8,Sepia:S8,Solarize:C8,Threshold:w8}});var Xp={exports:{}},Qp={exports:{}},ig={};/**
|
|
278
278
|
* @license React
|
|
279
279
|
* scheduler.production.min.js
|
|
280
280
|
*
|
|
@@ -282,7 +282,7 @@ js: import "konva/skia-backend";
|
|
|
282
282
|
*
|
|
283
283
|
* This source code is licensed under the MIT license found in the
|
|
284
284
|
* LICENSE file in the root directory of this source tree.
|
|
285
|
-
*/var L2;function _8(){return L2||(L2=1,(function(t){function e(
|
|
285
|
+
*/var L2;function _8(){return L2||(L2=1,(function(t){function e(J,ae){var re=J.length;J.push(ae);e:for(;0<re;){var U=re-1>>>1,ee=J[U];if(0<i(ee,ae))J[U]=ae,J[re]=ee,re=U;else break e}}function n(J){return J.length===0?null:J[0]}function s(J){if(J.length===0)return null;var ae=J[0],re=J.pop();if(re!==ae){J[0]=re;e:for(var U=0,ee=J.length,Ee=ee>>>1;U<Ee;){var Re=2*(U+1)-1,Ne=J[Re],Ue=Re+1,ot=J[Ue];if(0>i(Ne,re))Ue<ee&&0>i(ot,Ne)?(J[U]=ot,J[Ue]=re,U=Ue):(J[U]=Ne,J[Re]=re,U=Re);else if(Ue<ee&&0>i(ot,re))J[U]=ot,J[Ue]=re,U=Ue;else break e}}return ae}function i(J,ae){var re=J.sortIndex-ae.sortIndex;return re!==0?re:J.id-ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var p=[],u=[],A=1,y=null,x=3,S=!1,C=!1,R=!1,T=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(J){for(var ae=n(u);ae!==null;){if(ae.callback===null)s(u);else if(ae.startTime<=J)s(u),ae.sortIndex=ae.expirationTime,e(p,ae);else break;ae=n(u)}}function O(J){if(R=!1,M(J),!C)if(n(p)!==null)C=!0,le(I);else{var ae=n(u);ae!==null&&pe(O,ae.startTime-J)}}function I(J,ae){C=!1,R&&(R=!1,D(q),q=-1),S=!0;var re=x;try{for(M(ae),y=n(p);y!==null&&(!(y.expirationTime>ae)||J&&!ge());){var U=y.callback;if(typeof U=="function"){y.callback=null,x=y.priorityLevel;var ee=U(y.expirationTime<=ae);ae=t.unstable_now(),typeof ee=="function"?y.callback=ee:y===n(p)&&s(p),M(ae)}else s(p);y=n(p)}if(y!==null)var Ee=!0;else{var Re=n(u);Re!==null&&pe(O,Re.startTime-ae),Ee=!1}return Ee}finally{y=null,x=re,S=!1}}var Y=!1,K=null,q=-1,Q=5,V=-1;function ge(){return!(t.unstable_now()-V<Q)}function W(){if(K!==null){var J=t.unstable_now();V=J;var ae=!0;try{ae=K(!0,J)}finally{ae?se():(Y=!1,K=null)}}else Y=!1}var se;if(typeof P=="function")se=function(){P(W)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,ne=L.port2;L.port1.onmessage=W,se=function(){ne.postMessage(null)}}else se=function(){T(W,0)};function le(J){K=J,Y||(Y=!0,se())}function pe(J,ae){q=T(function(){J(t.unstable_now())},ae)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(J){J.callback=null},t.unstable_continueExecution=function(){C||S||(C=!0,le(I))},t.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<J?Math.floor(1e3/J):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return n(p)},t.unstable_next=function(J){switch(x){case 1:case 2:case 3:var ae=3;break;default:ae=x}var re=x;x=ae;try{return J()}finally{x=re}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(J,ae){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var re=x;x=J;try{return ae()}finally{x=re}},t.unstable_scheduleCallback=function(J,ae,re){var U=t.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?U+re:U):re=U,J){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=re+ee,J={id:A++,callback:ae,priorityLevel:J,startTime:re,expirationTime:ee,sortIndex:-1},re>U?(J.sortIndex=re,e(u,J),n(p)===null&&J===n(u)&&(R?(D(q),q=-1):R=!0,pe(O,re-U))):(J.sortIndex=ee,e(p,J),C||S||(C=!0,le(I))),J},t.unstable_shouldYield=ge,t.unstable_wrapCallback=function(J){var ae=x;return function(){var re=x;x=ae;try{return J.apply(this,arguments)}finally{x=re}}}})(ig)),ig}var sg={};/**
|
|
286
286
|
* @license React
|
|
287
287
|
* scheduler.development.js
|
|
288
288
|
*
|
|
@@ -290,7 +290,7 @@ js: import "konva/skia-backend";
|
|
|
290
290
|
*
|
|
291
291
|
* This source code is licensed under the MIT license found in the
|
|
292
292
|
* LICENSE file in the root directory of this source tree.
|
|
293
|
-
*/var k2;function E8(){return k2||(k2=1,(function(t){process.env.NODE_ENV!=="production"&&(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=!1,n=5;function s(Ye,
|
|
293
|
+
*/var k2;function E8(){return k2||(k2=1,(function(t){process.env.NODE_ENV!=="production"&&(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=!1,n=5;function s(Ye,ht){var Nt=Ye.length;Ye.push(ht),d(Ye,ht,Nt)}function i(Ye){return Ye.length===0?null:Ye[0]}function c(Ye){if(Ye.length===0)return null;var ht=Ye[0],Nt=Ye.pop();return Nt!==ht&&(Ye[0]=Nt,h(Ye,Nt,0)),ht}function d(Ye,ht,Nt){for(var et=Nt;et>0;){var pn=et-1>>>1,Xn=Ye[pn];if(p(Xn,ht)>0)Ye[pn]=ht,Ye[et]=Xn,et=pn;else return}}function h(Ye,ht,Nt){for(var et=Nt,pn=Ye.length,Xn=pn>>>1;et<Xn;){var it=(et+1)*2-1,st=Ye[it],En=it+1,un=Ye[En];if(p(st,ht)<0)En<pn&&p(un,st)<0?(Ye[et]=un,Ye[En]=ht,et=En):(Ye[et]=st,Ye[it]=ht,et=it);else if(En<pn&&p(un,ht)<0)Ye[et]=un,Ye[En]=ht,et=En;else return}}function p(Ye,ht){var Nt=Ye.sortIndex-ht.sortIndex;return Nt!==0?Nt:Ye.id-ht.id}var u=1,A=2,y=3,x=4,S=5;function C(Ye,ht){}var R=typeof performance=="object"&&typeof performance.now=="function";if(R){var T=performance;t.unstable_now=function(){return T.now()}}else{var D=Date,P=D.now();t.unstable_now=function(){return D.now()-P}}var M=1073741823,O=-1,I=250,Y=5e3,K=1e4,q=M,Q=[],V=[],ge=1,W=null,se=y,L=!1,ne=!1,le=!1,pe=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,ae=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re(Ye){for(var ht=i(V);ht!==null;){if(ht.callback===null)c(V);else if(ht.startTime<=Ye)c(V),ht.sortIndex=ht.expirationTime,s(Q,ht);else return;ht=i(V)}}function U(Ye){if(le=!1,re(Ye),!ne)if(i(Q)!==null)ne=!0,Ie(ee);else{var ht=i(V);ht!==null&&dt(U,ht.startTime-Ye)}}function ee(Ye,ht){ne=!1,le&&(le=!1,Jt()),L=!0;var Nt=se;try{var et;if(!e)return Ee(Ye,ht)}finally{W=null,se=Nt,L=!1}}function Ee(Ye,ht){var Nt=ht;for(re(Nt),W=i(Q);W!==null&&!(W.expirationTime>Nt&&(!Ye||j()));){var et=W.callback;if(typeof et=="function"){W.callback=null,se=W.priorityLevel;var pn=W.expirationTime<=Nt,Xn=et(pn);Nt=t.unstable_now(),typeof Xn=="function"?W.callback=Xn:W===i(Q)&&c(Q),re(Nt)}else c(Q);W=i(Q)}if(W!==null)return!0;var it=i(V);return it!==null&&dt(U,it.startTime-Nt),!1}function Re(Ye,ht){switch(Ye){case u:case A:case y:case x:case S:break;default:Ye=y}var Nt=se;se=Ye;try{return ht()}finally{se=Nt}}function Ne(Ye){var ht;switch(se){case u:case A:case y:ht=y;break;default:ht=se;break}var Nt=se;se=ht;try{return Ye()}finally{se=Nt}}function Ue(Ye){var ht=se;return function(){var Nt=se;se=ht;try{return Ye.apply(this,arguments)}finally{se=Nt}}}function ot(Ye,ht,Nt){var et=t.unstable_now(),pn;if(typeof Nt=="object"&&Nt!==null){var Xn=Nt.delay;typeof Xn=="number"&&Xn>0?pn=et+Xn:pn=et}else pn=et;var it;switch(Ye){case u:it=O;break;case A:it=I;break;case S:it=q;break;case x:it=K;break;case y:default:it=Y;break}var st=pn+it,En={id:ge++,callback:ht,priorityLevel:Ye,startTime:pn,expirationTime:st,sortIndex:-1};return pn>et?(En.sortIndex=pn,s(V,En),i(Q)===null&&En===i(V)&&(le?Jt():le=!0,dt(U,pn-et))):(En.sortIndex=st,s(Q,En),!ne&&!L&&(ne=!0,Ie(ee))),En}function lt(){}function pt(){!ne&&!L&&(ne=!0,Ie(ee))}function Lt(){return i(Q)}function qe(Ye){Ye.callback=null}function Dt(){return se}var me=!1,k=null,ce=-1,de=n,G=-1;function j(){var Ye=t.unstable_now()-G;return!(Ye<de)}function $(){}function ye(Ye){if(Ye<0||Ye>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ye>0?de=Math.floor(1e3/Ye):de=n}var Ce=function(){if(k!==null){var Ye=t.unstable_now();G=Ye;var ht=!0,Nt=!0;try{Nt=k(ht,Ye)}finally{Nt?Ae():(me=!1,k=null)}}else me=!1},Ae;if(typeof ae=="function")Ae=function(){ae(Ce)};else if(typeof MessageChannel<"u"){var ze=new MessageChannel,Xe=ze.port2;ze.port1.onmessage=Ce,Ae=function(){Xe.postMessage(null)}}else Ae=function(){pe(Ce,0)};function Ie(Ye){k=Ye,me||(me=!0,Ae())}function dt(Ye,ht){ce=pe(function(){Ye(t.unstable_now())},ht)}function Jt(){J(ce),ce=-1}var zt=$,pr=null;t.unstable_IdlePriority=S,t.unstable_ImmediatePriority=u,t.unstable_LowPriority=x,t.unstable_NormalPriority=y,t.unstable_Profiling=pr,t.unstable_UserBlockingPriority=A,t.unstable_cancelCallback=qe,t.unstable_continueExecution=pt,t.unstable_forceFrameRate=ye,t.unstable_getCurrentPriorityLevel=Dt,t.unstable_getFirstCallbackNode=Lt,t.unstable_next=Ne,t.unstable_pauseExecution=lt,t.unstable_requestPaint=zt,t.unstable_runWithPriority=Re,t.unstable_scheduleCallback=ot,t.unstable_shouldYield=j,t.unstable_wrapCallback=Ue,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(sg)),sg}var N2;function Jg(){return N2||(N2=1,process.env.NODE_ENV==="production"?Qp.exports=_8():Qp.exports=E8()),Qp.exports}/**
|
|
294
294
|
* @license React
|
|
295
295
|
* react-reconciler.production.min.js
|
|
296
296
|
*
|
|
@@ -298,17 +298,17 @@ js: import "konva/skia-backend";
|
|
|
298
298
|
*
|
|
299
299
|
* This source code is licensed under the MIT license found in the
|
|
300
300
|
* LICENSE file in the root directory of this source tree.
|
|
301
|
-
*/var og,B2;function R8(){return B2||(B2=1,og=function(e){var n={},s=oe,i=Jg(),c=Object.assign;function d(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,g=1;g<arguments.length;g++)l+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,p=Symbol.for("react.element"),u=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),I=Symbol.iterator;function
|
|
302
|
-
`+Gl+o}var Hl=!1;function Mu(o,l){if(!o||Hl)return"";Hl=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(
|
|
301
|
+
*/var og,B2;function R8(){return B2||(B2=1,og=function(e){var n={},s=oe,i=Jg(),c=Object.assign;function d(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,g=1;g<arguments.length;g++)l+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,p=Symbol.for("react.element"),u=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),I=Symbol.iterator;function Y(o){return o===null||typeof o!="object"?null:(o=I&&o[I]||o["@@iterator"],typeof o=="function"?o:null)}function K(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case A:return"Fragment";case u:return"Portal";case x:return"Profiler";case y:return"StrictMode";case T:return"Suspense";case D:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case C:return(o.displayName||"Context")+".Consumer";case S:return(o._context.displayName||"Context")+".Provider";case R:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case P:return l=o.displayName||null,l!==null?l:K(o.type)||"Memo";case M:l=o._payload,o=o._init;try{return K(o(l))}catch{}}return null}function q(o){var l=o.type;switch(o.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=l.render,o=o.displayName||o.name||"",l.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return K(l);case 8:return l===y?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function Q(o){var l=o,g=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(g=l.return),o=l.return;while(o)}return l.tag===3?g:null}function V(o){if(Q(o)!==o)throw Error(d(188))}function ge(o){var l=o.alternate;if(!l){if(l=Q(o),l===null)throw Error(d(188));return l!==o?null:o}for(var g=o,b=l;;){var E=g.return;if(E===null)break;var N=E.alternate;if(N===null){if(b=E.return,b!==null){g=b;continue}break}if(E.child===N.child){for(N=E.child;N;){if(N===g)return V(E),o;if(N===b)return V(E),l;N=N.sibling}throw Error(d(188))}if(g.return!==b.return)g=E,b=N;else{for(var X=!1,fe=E.child;fe;){if(fe===g){X=!0,g=E,b=N;break}if(fe===b){X=!0,b=E,g=N;break}fe=fe.sibling}if(!X){for(fe=N.child;fe;){if(fe===g){X=!0,g=N,b=E;break}if(fe===b){X=!0,b=N,g=E;break}fe=fe.sibling}if(!X)throw Error(d(189))}}if(g.alternate!==b)throw Error(d(190))}if(g.tag!==3)throw Error(d(188));return g.stateNode.current===g?o:l}function W(o){return o=ge(o),o!==null?se(o):null}function se(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var l=se(o);if(l!==null)return l;o=o.sibling}return null}function L(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){if(o.tag!==4){var l=L(o);if(l!==null)return l}o=o.sibling}return null}var ne=Array.isArray,le=e.getPublicInstance,pe=e.getRootHostContext,J=e.getChildHostContext,ae=e.prepareForCommit,re=e.resetAfterCommit,U=e.createInstance,ee=e.appendInitialChild,Ee=e.finalizeInitialChildren,Re=e.prepareUpdate,Ne=e.shouldSetTextContent,Ue=e.createTextInstance,ot=e.scheduleTimeout,lt=e.cancelTimeout,pt=e.noTimeout,Lt=e.isPrimaryRenderer,qe=e.supportsMutation,Dt=e.supportsPersistence,me=e.supportsHydration,k=e.getInstanceFromNode,ce=e.preparePortalMount,de=e.getCurrentEventPriority,G=e.detachDeletedInstance,j=e.supportsMicrotasks,$=e.scheduleMicrotask,ye=e.supportsTestSelectors,Ce=e.findFiberRoot,Ae=e.getBoundingRect,ze=e.getTextContent,Xe=e.isHiddenSubtree,Ie=e.matchAccessibilityRole,dt=e.setFocusIfFocusable,Jt=e.setupIntersectionObserver,zt=e.appendChild,pr=e.appendChildToContainer,Ye=e.commitTextUpdate,ht=e.commitMount,Nt=e.commitUpdate,et=e.insertBefore,pn=e.insertInContainerBefore,Xn=e.removeChild,it=e.removeChildFromContainer,st=e.resetTextContent,En=e.hideInstance,un=e.hideTextInstance,Ut=e.unhideInstance,Ea=e.unhideTextInstance,Ra=e.clearContainer,ps=e.cloneInstance,Qt=e.createContainerChildSet,Va=e.appendChildToContainerChildSet,As=e.finalizeContainerChildren,Ii=e.replaceContainerChildren,Ai=e.cloneHiddenInstance,qa=e.cloneHiddenTextInstance,ms=e.canHydrateInstance,Lu=e.canHydrateTextInstance,AA=e.canHydrateSuspenseInstance,Yo=e.isSuspenseInstancePending,tr=e.isSuspenseInstanceFallback,ku=e.getSuspenseInstanceFallbackErrorDetails,Nf=e.registerSuspenseInstanceRetry,to=e.getNextHydratableSibling,gs=e.getFirstHydratableChild,Nu=e.getFirstHydratableChildWithinContainer,Oi=e.getFirstHydratableChildWithinSuspenseInstance,Bu=e.hydrateInstance,Pu=e.hydrateTextInstance,Vo=e.hydrateSuspenseInstance,qo=e.getNextHydratableInstanceAfterSuspenseInstance,no=e.commitHydratedContainer,mi=e.commitHydratedSuspenseInstance,mA=e.clearSuspenseBoundary,jl=e.clearSuspenseBoundaryFromContainer,gA=e.shouldDeleteUnhydratedTailInstances,vA=e.didNotMatchHydratedContainerTextInstance,Bf=e.didNotMatchHydratedTextInstance,Gl;function vs(o){if(Gl===void 0)try{throw Error()}catch(g){var l=g.stack.trim().match(/\n( *(at )?)/);Gl=l&&l[1]||""}return`
|
|
302
|
+
`+Gl+o}var Hl=!1;function Mu(o,l){if(!o||Hl)return"";Hl=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(je){var b=je}Reflect.construct(o,[],l)}else{try{l.call()}catch(je){b=je}o.call(l.prototype)}else{try{throw Error()}catch(je){b=je}o()}}catch(je){if(je&&b&&typeof je.stack=="string"){for(var E=je.stack.split(`
|
|
303
303
|
`),N=b.stack.split(`
|
|
304
|
-
`),
|
|
305
|
-
`+E[Q].replace(" at new "," at ");return o.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",o.displayName)),we}while(1<=Q&&0<=fe);break}}}finally{Hl=!1,Error.prepareStackTrace=g}return(o=o?o.displayName||o.name:"")?vs(o):""}var Pf=Object.prototype.hasOwnProperty,zu=[],Qn=-1;function Ka(o){return{current:o}}function An(o){0>Qn||(o.current=zu[Qn],zu[Qn]=null,Qn--)}function hn(o,l){Qn++,zu[Qn]=o.current,o.current=l}var Ui={},Ar=Ka(Ui),Pr=Ka(!1),gi=Ui;function ys(o,l){var g=o.type.contextTypes;if(!g)return Ui;var b=o.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===l)return b.__reactInternalMemoizedMaskedChildContext;var E={},N;for(N in g)E[N]=l[N];return b&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=E),E}function wr(o){return o=o.childContextTypes,o!=null}function ro(){An(Pr),An(Ar)}function Fu(o,l,g){if(Ar.current!==Ui)throw Error(d(168));hn(Ar,l),hn(Pr,g)}function Iu(o,l,g){var b=o.stateNode;if(l=l.childContextTypes,typeof b.getChildContext!="function")return g;b=b.getChildContext();for(var E in b)if(!(E in l))throw Error(d(108,q(o)||"Unknown",E));return c({},g,b)}function Wl(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Ui,gi=Ar.current,hn(Ar,o),hn(Pr,Pr.current),!0}function Xl(o,l,g){var b=o.stateNode;if(!b)throw Error(d(169));g?(o=Iu(o,l,gi),b.__reactInternalMemoizedMergedChildContext=o,An(Pr),An(Ar),hn(Ar,o)):An(Pr),hn(Pr,g)}var Mr=Math.clz32?Math.clz32:Ql,yA=Math.log,qr=Math.LN2;function Ql(o){return o>>>=0,o===0?32:31-(yA(o)/qr|0)|0}var _r=64,Yl=4194304;function Ko(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Vl(o,l){var g=o.pendingLanes;if(g===0)return 0;var b=0,E=o.suspendedLanes,N=o.pingedLanes,Q=g&268435455;if(Q!==0){var fe=Q&~E;fe!==0?b=Ko(fe):(N&=Q,N!==0&&(b=Ko(N)))}else Q=g&~E,Q!==0?b=Ko(Q):N!==0&&(b=Ko(N));if(b===0)return 0;if(l!==0&&l!==b&&(l&E)===0&&(E=b&-b,N=l&-l,E>=N||E===16&&(N&4194240)!==0))return l;if((b&4)!==0&&(b|=g&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=b;0<l;)g=31-Mr(l),E=1<<g,b|=o[g],l&=~E;return b}function xA(o,l){switch(o){case 1:case 2:case 4:return l+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bA(o,l){for(var g=o.suspendedLanes,b=o.pingedLanes,E=o.expirationTimes,N=o.pendingLanes;0<N;){var Q=31-Mr(N),fe=1<<Q,we=E[Q];we===-1?((fe&g)===0||(fe&b)!==0)&&(E[Q]=xA(fe,l)):we<=l&&(o.expiredLanes|=fe),N&=~fe}}function Ou(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function xs(){var o=_r;return _r<<=1,(_r&4194240)===0&&(_r=64),o}function Uu(o){for(var l=[],g=0;31>g;g++)l.push(o);return l}function Jo(o,l,g){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-Mr(l),o[l]=g}function SA(o,l){var g=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var b=o.eventTimes;for(o=o.expirationTimes;0<g;){var E=31-Mr(g),N=1<<E;l[E]=0,b[E]=-1,o[E]=-1,g&=~N}}function bs(o,l){var g=o.entangledLanes|=l;for(o=o.entanglements;g;){var b=31-Mr(g),E=1<<b;E&l|o[b]&l&&(o[b]|=l),g&=~E}}var $t=0;function Mf(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var ju=i.unstable_scheduleCallback,zf=i.unstable_cancelCallback,CA=i.unstable_shouldYield,wA=i.unstable_requestPaint,Yn=i.unstable_now,Gu=i.unstable_ImmediatePriority,_A=i.unstable_UserBlockingPriority,Hu=i.unstable_NormalPriority,EA=i.unstable_IdlePriority,ql=null,Ta=null;function RA(o){if(Ta&&typeof Ta.onCommitFiberRoot=="function")try{Ta.onCommitFiberRoot(ql,o,void 0,(o.current.flags&128)===128)}catch{}}function TA(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var Da=typeof Object.is=="function"?Object.is:TA,vi=null,Kl=!1,Wu=!1;function Xu(o){vi===null?vi=[o]:vi.push(o)}function Ff(o){Kl=!0,Xu(o)}function Ja(){if(!Wu&&vi!==null){Wu=!0;var o=0,l=$t;try{var g=vi;for($t=1;o<g.length;o++){var b=g[o];do b=b(!0);while(b!==null)}vi=null,Kl=!1}catch(E){throw vi!==null&&(vi=vi.slice(o+1)),ju(Gu,Ja),E}finally{$t=l,Wu=!1}}return null}var ji=[],Ss=0,Zo=null,Jl=0,fa=[],ha=0,Gi=null,La=1,yi="";function Cs(o,l){ji[Ss++]=Jl,ji[Ss++]=Zo,Zo=o,Jl=l}function $o(o,l,g){fa[ha++]=La,fa[ha++]=yi,fa[ha++]=Gi,Gi=o;var b=La;o=yi;var E=32-Mr(b)-1;b&=~(1<<E),g+=1;var N=32-Mr(l)+E;if(30<N){var Q=E-E%5;N=(b&(1<<Q)-1).toString(32),b>>=Q,E-=Q,La=1<<32-Mr(l)+E|g<<E|b,yi=N+o}else La=1<<N|g<<E|b,yi=o}function Qu(o){o.return!==null&&(Cs(o,1),$o(o,1,0))}function Yu(o){for(;o===Zo;)Zo=ji[--Ss],ji[Ss]=null,Jl=ji[--Ss],ji[Ss]=null;for(;o===Gi;)Gi=fa[--ha],fa[ha]=null,yi=fa[--ha],fa[ha]=null,La=fa[--ha],fa[ha]=null}var Kr=null,pa=null,bn=!1,el=!1,ka=null;function If(o,l){var g=sa(5,null,null,0);g.elementType="DELETED",g.stateNode=l,g.return=o,l=o.deletions,l===null?(o.deletions=[g],o.flags|=16):l.push(g)}function Of(o,l){switch(o.tag){case 5:return l=ms(l,o.type,o.pendingProps),l!==null?(o.stateNode=l,Kr=o,pa=gs(l),!0):!1;case 6:return l=Lu(l,o.pendingProps),l!==null?(o.stateNode=l,Kr=o,pa=null,!0):!1;case 13:if(l=AA(l),l!==null){var g=Gi!==null?{id:La,overflow:yi}:null;return o.memoizedState={dehydrated:l,treeContext:g,retryLane:1073741824},g=sa(18,null,null,0),g.stateNode=l,g.return=o,o.child=g,Kr=o,pa=null,!0}return!1;default:return!1}}function Vu(o){return(o.mode&1)!==0&&(o.flags&128)===0}function qu(o){if(bn){var l=pa;if(l){var g=l;if(!Of(o,l)){if(Vu(o))throw Error(d(418));l=to(g);var b=Kr;l&&Of(o,l)?If(b,g):(o.flags=o.flags&-4097|2,bn=!1,Kr=o)}}else{if(Vu(o))throw Error(d(418));o.flags=o.flags&-4097|2,bn=!1,Kr=o}}}function Uf(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;Kr=o}function Zl(o){if(!ge||o!==Kr)return!1;if(!bn)return Uf(o),bn=!0,!1;if(o.tag!==3&&(o.tag!==5||gA(o.type)&&!Ne(o.type,o.memoizedProps))){var l=pa;if(l){if(Vu(o))throw jf(),Error(d(418));for(;l;)If(o,l),l=to(l)}}if(Uf(o),o.tag===13){if(!ge)throw Error(d(316));if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(d(317));pa=qo(o)}else pa=Kr?to(o.stateNode):null;return!0}function jf(){for(var o=pa;o;)o=to(o)}function ao(){ge&&(pa=Kr=null,el=bn=!1)}function Ku(o){ka===null?ka=[o]:ka.push(o)}var DA=h.ReactCurrentBatchConfig;function $l(o,l){if(Da(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var g=Object.keys(o),b=Object.keys(l);if(g.length!==b.length)return!1;for(b=0;b<g.length;b++){var E=g[b];if(!Pf.call(l,E)||!Da(o[E],l[E]))return!1}return!0}function LA(o){switch(o.tag){case 5:return vs(o.type);case 16:return vs("Lazy");case 13:return vs("Suspense");case 19:return vs("SuspenseList");case 0:case 2:case 15:return o=Mu(o.type,!1),o;case 11:return o=Mu(o.type.render,!1),o;case 1:return o=Mu(o.type,!0),o;default:return""}}function tl(o,l,g){if(o=g.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(g._owner){if(g=g._owner,g){if(g.tag!==1)throw Error(d(309));var b=g.stateNode}if(!b)throw Error(d(147,o));var E=b,N=""+o;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===N?l.ref:(l=function(Q){var fe=E.refs;Q===null?delete fe[N]:fe[N]=Q},l._stringRef=N,l)}if(typeof o!="string")throw Error(d(284));if(!g._owner)throw Error(d(290,o))}return o}function ec(o,l){throw o=Object.prototype.toString.call(l),Error(d(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o))}function Gf(o){var l=o._init;return l(o._payload)}function Hf(o){function l(xe,ue){if(o){var Te=xe.deletions;Te===null?(xe.deletions=[ue],xe.flags|=16):Te.push(ue)}}function g(xe,ue){if(!o)return null;for(;ue!==null;)l(xe,ue),ue=ue.sibling;return null}function b(xe,ue){for(xe=new Map;ue!==null;)ue.key!==null?xe.set(ue.key,ue):xe.set(ue.index,ue),ue=ue.sibling;return xe}function E(xe,ue){return xe=_i(xe,ue),xe.index=0,xe.sibling=null,xe}function N(xe,ue,Te){return xe.index=Te,o?(Te=xe.alternate,Te!==null?(Te=Te.index,Te<ue?(xe.flags|=2,ue):Te):(xe.flags|=2,ue)):(xe.flags|=1048576,ue)}function Q(xe){return o&&xe.alternate===null&&(xe.flags|=2),xe}function fe(xe,ue,Te,Ze){return ue===null||ue.tag!==6?(ue=vl(Te,xe.mode,Ze),ue.return=xe,ue):(ue=E(ue,Te),ue.return=xe,ue)}function we(xe,ue,Te,Ze){var pt=Te.type;return pt===A?Je(xe,ue,Te.props.children,Ze,Te.key):ue!==null&&(ue.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===M&&Gf(pt)===ue.type)?(Ze=E(ue,Te.props),Ze.ref=tl(xe,ue,Te),Ze.return=xe,Ze):(Ze=gl(Te.type,Te.key,Te.props,null,xe.mode,Ze),Ze.ref=tl(xe,ue,Te),Ze.return=xe,Ze)}function Ue(xe,ue,Te,Ze){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==Te.containerInfo||ue.stateNode.implementation!==Te.implementation?(ue=xd(Te,xe.mode,Ze),ue.return=xe,ue):(ue=E(ue,Te.children||[]),ue.return=xe,ue)}function Je(xe,ue,Te,Ze,pt){return ue===null||ue.tag!==7?(ue=Ei(Te,xe.mode,Ze,pt),ue.return=xe,ue):(ue=E(ue,Te),ue.return=xe,ue)}function St(xe,ue,Te){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ue=vl(""+ue,xe.mode,Te),ue.return=xe,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case p:return Te=gl(ue.type,ue.key,ue.props,null,xe.mode,Te),Te.ref=tl(xe,null,ue),Te.return=xe,Te;case u:return ue=xd(ue,xe.mode,Te),ue.return=xe,ue;case M:var Ze=ue._init;return St(xe,Ze(ue._payload),Te)}if(ne(ue)||V(ue))return ue=Ei(ue,xe.mode,Te,null),ue.return=xe,ue;ec(xe,ue)}return null}function nt(xe,ue,Te,Ze){var pt=ue!==null?ue.key:null;if(typeof Te=="string"&&Te!==""||typeof Te=="number")return pt!==null?null:fe(xe,ue,""+Te,Ze);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case p:return Te.key===pt?we(xe,ue,Te,Ze):null;case u:return Te.key===pt?Ue(xe,ue,Te,Ze):null;case M:return pt=Te._init,nt(xe,ue,pt(Te._payload),Ze)}if(ne(Te)||V(Te))return pt!==null?null:Je(xe,ue,Te,Ze,null);ec(xe,Te)}return null}function vn(xe,ue,Te,Ze,pt){if(typeof Ze=="string"&&Ze!==""||typeof Ze=="number")return xe=xe.get(Te)||null,fe(ue,xe,""+Ze,pt);if(typeof Ze=="object"&&Ze!==null){switch(Ze.$$typeof){case p:return xe=xe.get(Ze.key===null?Te:Ze.key)||null,we(ue,xe,Ze,pt);case u:return xe=xe.get(Ze.key===null?Te:Ze.key)||null,Ue(ue,xe,Ze,pt);case M:var kt=Ze._init;return vn(xe,ue,Te,kt(Ze._payload),pt)}if(ne(Ze)||V(Ze))return xe=xe.get(Te)||null,Je(ue,xe,Ze,pt,null);ec(ue,Ze)}return null}function Pt(xe,ue,Te,Ze){for(var pt=null,kt=null,Ct=ue,Gt=ue=0,Dn=null;Ct!==null&&Gt<Te.length;Gt++){Ct.index>Gt?(Dn=Ct,Ct=null):Dn=Ct.sibling;var Ht=nt(xe,Ct,Te[Gt],Ze);if(Ht===null){Ct===null&&(Ct=Dn);break}o&&Ct&&Ht.alternate===null&&l(xe,Ct),ue=N(Ht,ue,Gt),kt===null?pt=Ht:kt.sibling=Ht,kt=Ht,Ct=Dn}if(Gt===Te.length)return g(xe,Ct),bn&&Cs(xe,Gt),pt;if(Ct===null){for(;Gt<Te.length;Gt++)Ct=St(xe,Te[Gt],Ze),Ct!==null&&(ue=N(Ct,ue,Gt),kt===null?pt=Ct:kt.sibling=Ct,kt=Ct);return bn&&Cs(xe,Gt),pt}for(Ct=b(xe,Ct);Gt<Te.length;Gt++)Dn=vn(Ct,xe,Gt,Te[Gt],Ze),Dn!==null&&(o&&Dn.alternate!==null&&Ct.delete(Dn.key===null?Gt:Dn.key),ue=N(Dn,ue,Gt),kt===null?pt=Dn:kt.sibling=Dn,kt=Dn);return o&&Ct.forEach(function(Hr){return l(xe,Hr)}),bn&&Cs(xe,Gt),pt}function Vt(xe,ue,Te,Ze){var pt=V(Te);if(typeof pt!="function")throw Error(d(150));if(Te=pt.call(Te),Te==null)throw Error(d(151));for(var kt=pt=null,Ct=ue,Gt=ue=0,Dn=null,Ht=Te.next();Ct!==null&&!Ht.done;Gt++,Ht=Te.next()){Ct.index>Gt?(Dn=Ct,Ct=null):Dn=Ct.sibling;var Hr=nt(xe,Ct,Ht.value,Ze);if(Hr===null){Ct===null&&(Ct=Dn);break}o&&Ct&&Hr.alternate===null&&l(xe,Ct),ue=N(Hr,ue,Gt),kt===null?pt=Hr:kt.sibling=Hr,kt=Hr,Ct=Dn}if(Ht.done)return g(xe,Ct),bn&&Cs(xe,Gt),pt;if(Ct===null){for(;!Ht.done;Gt++,Ht=Te.next())Ht=St(xe,Ht.value,Ze),Ht!==null&&(ue=N(Ht,ue,Gt),kt===null?pt=Ht:kt.sibling=Ht,kt=Ht);return bn&&Cs(xe,Gt),pt}for(Ct=b(xe,Ct);!Ht.done;Gt++,Ht=Te.next())Ht=vn(Ct,xe,Gt,Ht.value,Ze),Ht!==null&&(o&&Ht.alternate!==null&&Ct.delete(Ht.key===null?Gt:Ht.key),ue=N(Ht,ue,Gt),kt===null?pt=Ht:kt.sibling=Ht,kt=Ht);return o&&Ct.forEach(function(Yc){return l(xe,Yc)}),bn&&Cs(xe,Gt),pt}function Ri(xe,ue,Te,Ze){if(typeof Te=="object"&&Te!==null&&Te.type===A&&Te.key===null&&(Te=Te.props.children),typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case p:e:{for(var pt=Te.key,kt=ue;kt!==null;){if(kt.key===pt){if(pt=Te.type,pt===A){if(kt.tag===7){g(xe,kt.sibling),ue=E(kt,Te.props.children),ue.return=xe,xe=ue;break e}}else if(kt.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===M&&Gf(pt)===kt.type){g(xe,kt.sibling),ue=E(kt,Te.props),ue.ref=tl(xe,kt,Te),ue.return=xe,xe=ue;break e}g(xe,kt);break}else l(xe,kt);kt=kt.sibling}Te.type===A?(ue=Ei(Te.props.children,xe.mode,Ze,Te.key),ue.return=xe,xe=ue):(Ze=gl(Te.type,Te.key,Te.props,null,xe.mode,Ze),Ze.ref=tl(xe,ue,Te),Ze.return=xe,xe=Ze)}return Q(xe);case u:e:{for(kt=Te.key;ue!==null;){if(ue.key===kt)if(ue.tag===4&&ue.stateNode.containerInfo===Te.containerInfo&&ue.stateNode.implementation===Te.implementation){g(xe,ue.sibling),ue=E(ue,Te.children||[]),ue.return=xe,xe=ue;break e}else{g(xe,ue);break}else l(xe,ue);ue=ue.sibling}ue=xd(Te,xe.mode,Ze),ue.return=xe,xe=ue}return Q(xe);case M:return kt=Te._init,Ri(xe,ue,kt(Te._payload),Ze)}if(ne(Te))return Pt(xe,ue,Te,Ze);if(V(Te))return Vt(xe,ue,Te,Ze);ec(xe,Te)}return typeof Te=="string"&&Te!==""||typeof Te=="number"?(Te=""+Te,ue!==null&&ue.tag===6?(g(xe,ue.sibling),ue=E(ue,Te),ue.return=xe,xe=ue):(g(xe,ue),ue=vl(Te,xe.mode,Ze),ue.return=xe,xe=ue),Q(xe)):g(xe,ue)}return Ri}var io=Hf(!0),Wf=Hf(!1),tc=Ka(null),nc=null,Za=null,rc=null;function ac(){rc=Za=nc=null}function Ju(o,l,g){Lt?(hn(tc,l._currentValue),l._currentValue=g):(hn(tc,l._currentValue2),l._currentValue2=g)}function ic(o){var l=tc.current;An(tc),Lt?o._currentValue=l:o._currentValue2=l}function sc(o,l,g){for(;o!==null;){var b=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,b!==null&&(b.childLanes|=l)):b!==null&&(b.childLanes&l)!==l&&(b.childLanes|=l),o===g)break;o=o.return}}function ws(o,l){nc=o,rc=Za=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&l)!==0&&(qn=!0),o.firstContext=null)}function Jr(o){var l=Lt?o._currentValue:o._currentValue2;if(rc!==o)if(o={context:o,memoizedValue:l,next:null},Za===null){if(nc===null)throw Error(d(308));Za=o,nc.dependencies={lanes:0,firstContext:o}}else Za=Za.next=o;return l}var Hi=null;function Zu(o){Hi===null?Hi=[o]:Hi.push(o)}function Xf(o,l,g,b){var E=l.interleaved;return E===null?(g.next=g,Zu(l)):(g.next=E.next,E.next=g),l.interleaved=g,Aa(o,b)}function Aa(o,l){o.lanes|=l;var g=o.alternate;for(g!==null&&(g.lanes|=l),g=o,o=o.return;o!==null;)o.childLanes|=l,g=o.alternate,g!==null&&(g.childLanes|=l),g=o,o=o.return;return g.tag===3?g.stateNode:null}var $a=!1;function ei(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oc(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function ma(o,l){return{eventTime:o,lane:l,tag:0,payload:null,callback:null,next:null}}function Wi(o,l,g){var b=o.updateQueue;if(b===null)return null;if(b=b.shared,(It&2)!==0){var E=b.pending;return E===null?l.next=l:(l.next=E.next,E.next=l),b.pending=l,Aa(o,g)}return E=b.interleaved,E===null?(l.next=l,Zu(b)):(l.next=E.next,E.next=l),b.interleaved=l,Aa(o,g)}function so(o,l,g){if(l=l.updateQueue,l!==null&&(l=l.shared,(g&4194240)!==0)){var b=l.lanes;b&=o.pendingLanes,g|=b,l.lanes=g,bs(o,g)}}function Qf(o,l){var g=o.updateQueue,b=o.alternate;if(b!==null&&(b=b.updateQueue,g===b)){var E=null,N=null;if(g=g.firstBaseUpdate,g!==null){do{var Q={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};N===null?E=N=Q:N=N.next=Q,g=g.next}while(g!==null);N===null?E=N=l:N=N.next=l}else E=N=l;g={baseState:b.baseState,firstBaseUpdate:E,lastBaseUpdate:N,shared:b.shared,effects:b.effects},o.updateQueue=g;return}o=g.lastBaseUpdate,o===null?g.firstBaseUpdate=l:o.next=l,g.lastBaseUpdate=l}function oo(o,l,g,b){var E=o.updateQueue;$a=!1;var N=E.firstBaseUpdate,Q=E.lastBaseUpdate,fe=E.shared.pending;if(fe!==null){E.shared.pending=null;var we=fe,Ue=we.next;we.next=null,Q===null?N=Ue:Q.next=Ue,Q=we;var Je=o.alternate;Je!==null&&(Je=Je.updateQueue,fe=Je.lastBaseUpdate,fe!==Q&&(fe===null?Je.firstBaseUpdate=Ue:fe.next=Ue,Je.lastBaseUpdate=we))}if(N!==null){var St=E.baseState;Q=0,Je=Ue=we=null,fe=N;do{var nt=fe.lane,vn=fe.eventTime;if((b&nt)===nt){Je!==null&&(Je=Je.next={eventTime:vn,lane:0,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null});e:{var Pt=o,Vt=fe;switch(nt=l,vn=g,Vt.tag){case 1:if(Pt=Vt.payload,typeof Pt=="function"){St=Pt.call(vn,St,nt);break e}St=Pt;break e;case 3:Pt.flags=Pt.flags&-65537|128;case 0:if(Pt=Vt.payload,nt=typeof Pt=="function"?Pt.call(vn,St,nt):Pt,nt==null)break e;St=c({},St,nt);break e;case 2:$a=!0}}fe.callback!==null&&fe.lane!==0&&(o.flags|=64,nt=E.effects,nt===null?E.effects=[fe]:nt.push(fe))}else vn={eventTime:vn,lane:nt,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null},Je===null?(Ue=Je=vn,we=St):Je=Je.next=vn,Q|=nt;if(fe=fe.next,fe===null){if(fe=E.shared.pending,fe===null)break;nt=fe,fe=nt.next,nt.next=null,E.lastBaseUpdate=nt,E.shared.pending=null}}while(!0);if(Je===null&&(we=St),E.baseState=we,E.firstBaseUpdate=Ue,E.lastBaseUpdate=Je,l=E.shared.interleaved,l!==null){E=l;do Q|=E.lane,E=E.next;while(E!==l)}else N===null&&(E.shared.lanes=0);Is|=Q,o.lanes=Q,o.memoizedState=St}}function Yf(o,l,g){if(o=l.effects,l.effects=null,o!==null)for(l=0;l<o.length;l++){var b=o[l],E=b.callback;if(E!==null){if(b.callback=null,b=g,typeof E!="function")throw Error(d(191,E));E.call(b)}}}var _s={},Zr=Ka(_s),lo=Ka(_s),Es=Ka(_s);function $r(o){if(o===_s)throw Error(d(174));return o}function ea(o,l){hn(Es,l),hn(lo,o),hn(Zr,_s),o=Ae(l),An(Zr),hn(Zr,o)}function Xi(){An(Zr),An(lo),An(Es)}function nl(o){var l=$r(Es.current),g=$r(Zr.current);l=re(g,o.type,l),g!==l&&(hn(lo,o),hn(Zr,l))}function Na(o){lo.current===o&&(An(Zr),An(lo))}var rn=Ka(0);function jn(o){for(var l=o;l!==null;){if(l.tag===13){var g=l.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||Yo(g)||tr(g)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Gn=[];function rl(){for(var o=0;o<Gn.length;o++){var l=Gn[o];Lt?l._workInProgressVersionPrimary=null:l._workInProgressVersionSecondary=null}Gn.length=0}var mr=h.ReactCurrentDispatcher,Ba=h.ReactCurrentBatchConfig,gr=0,mn=null,Sn=null,Hn=null,xi=!1,Qi=!1,zr=0,lc=0;function Vn(){throw Error(d(321))}function cc(o,l){if(l===null)return!1;for(var g=0;g<l.length&&g<o.length;g++)if(!Da(o[g],l[g]))return!1;return!0}function uc(o,l,g,b,E,N){if(gr=N,mn=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,mr.current=o===null||o.memoizedState===null?rd:ad,o=g(b,E),Qi){N=0;do{if(Qi=!1,zr=0,25<=N)throw Error(d(301));N+=1,Hn=Sn=null,l.updateQueue=null,mr.current=id,o=g(b,E)}while(Qi)}if(mr.current=fo,l=Sn!==null&&Sn.next!==null,gr=0,Hn=Sn=mn=null,xi=!1,l)throw Error(d(300));return o}function co(){var o=zr!==0;return zr=0,o}function Pa(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hn===null?mn.memoizedState=Hn=o:Hn=Hn.next=o,Hn}function ga(){if(Sn===null){var o=mn.alternate;o=o!==null?o.memoizedState:null}else o=Sn.next;var l=Hn===null?mn.memoizedState:Hn.next;if(l!==null)Hn=l,Sn=o;else{if(o===null)throw Error(d(310));Sn=o,o={memoizedState:Sn.memoizedState,baseState:Sn.baseState,baseQueue:Sn.baseQueue,queue:Sn.queue,next:null},Hn===null?mn.memoizedState=Hn=o:Hn=Hn.next=o}return Hn}function ti(o,l){return typeof l=="function"?l(o):l}function dc(o){var l=ga(),g=l.queue;if(g===null)throw Error(d(311));g.lastRenderedReducer=o;var b=Sn,E=b.baseQueue,N=g.pending;if(N!==null){if(E!==null){var Q=E.next;E.next=N.next,N.next=Q}b.baseQueue=E=N,g.pending=null}if(E!==null){N=E.next,b=b.baseState;var fe=Q=null,we=null,Ue=N;do{var Je=Ue.lane;if((gr&Je)===Je)we!==null&&(we=we.next={lane:0,action:Ue.action,hasEagerState:Ue.hasEagerState,eagerState:Ue.eagerState,next:null}),b=Ue.hasEagerState?Ue.eagerState:o(b,Ue.action);else{var St={lane:Je,action:Ue.action,hasEagerState:Ue.hasEagerState,eagerState:Ue.eagerState,next:null};we===null?(fe=we=St,Q=b):we=we.next=St,mn.lanes|=Je,Is|=Je}Ue=Ue.next}while(Ue!==null&&Ue!==N);we===null?Q=b:we.next=fe,Da(b,l.memoizedState)||(qn=!0),l.memoizedState=b,l.baseState=Q,l.baseQueue=we,g.lastRenderedState=b}if(o=g.interleaved,o!==null){E=o;do N=E.lane,mn.lanes|=N,Is|=N,E=E.next;while(E!==o)}else E===null&&(g.lanes=0);return[l.memoizedState,g.dispatch]}function At(o){var l=ga(),g=l.queue;if(g===null)throw Error(d(311));g.lastRenderedReducer=o;var b=g.dispatch,E=g.pending,N=l.memoizedState;if(E!==null){g.pending=null;var Q=E=E.next;do N=o(N,Q.action),Q=Q.next;while(Q!==E);Da(N,l.memoizedState)||(qn=!0),l.memoizedState=N,l.baseQueue===null&&(l.baseState=N),g.lastRenderedState=N}return[N,b]}function jt(){}function tn(o,l){var g=mn,b=ga(),E=l(),N=!Da(b.memoizedState,E);if(N&&(b.memoizedState=E,qn=!0),b=b.queue,za($u.bind(null,g,b,o),[o]),b.getSnapshot!==l||N||Hn!==null&&Hn.memoizedState.tag&1){if(g.flags|=2048,Rs(9,Ma.bind(null,g,b,E,l),void 0,null),Jn===null)throw Error(d(349));(gr&30)!==0||Rn(g,l,E)}return E}function Rn(o,l,g){o.flags|=16384,o={getSnapshot:l,value:g},l=mn.updateQueue,l===null?(l={lastEffect:null,stores:null},mn.updateQueue=l,l.stores=[o]):(g=l.stores,g===null?l.stores=[o]:g.push(o))}function Ma(o,l,g,b){l.value=g,l.getSnapshot=b,Vf(l)&&qf(o)}function $u(o,l,g){return g(function(){Vf(l)&&qf(o)})}function Vf(o){var l=o.getSnapshot;o=o.value;try{var g=l();return!Da(o,g)}catch{return!0}}function qf(o){var l=Aa(o,1);l!==null&&sr(l,o,1,-1)}function Kf(o){var l=Pa();return typeof o=="function"&&(o=o()),l.memoizedState=l.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:o},l.queue=o,o=o.dispatch=nd.bind(null,mn,o),[l.memoizedState,o]}function Rs(o,l,g,b){return o={tag:o,create:l,destroy:g,deps:b,next:null},l=mn.updateQueue,l===null?(l={lastEffect:null,stores:null},mn.updateQueue=l,l.lastEffect=o.next=o):(g=l.lastEffect,g===null?l.lastEffect=o.next=o:(b=g.next,g.next=o,o.next=b,l.lastEffect=o)),o}function Pe(){return ga().memoizedState}function Ln(o,l,g,b){var E=Pa();mn.flags|=o,E.memoizedState=Rs(1|l,g,void 0,b===void 0?null:b)}function vt(o,l,g,b){var E=ga();b=b===void 0?null:b;var N=void 0;if(Sn!==null){var Q=Sn.memoizedState;if(N=Q.destroy,b!==null&&cc(b,Q.deps)){E.memoizedState=Rs(l,g,N,b);return}}mn.flags|=o,E.memoizedState=Rs(1|l,g,N,b)}function Ts(o,l){return Ln(8390656,8,o,l)}function za(o,l){return vt(2048,8,o,l)}function Yi(o,l){return vt(4,2,o,l)}function Fa(o,l){return vt(4,4,o,l)}function uo(o,l){if(typeof l=="function")return o=o(),l(o),function(){l(null)};if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function Ds(o,l,g){return g=g!=null?g.concat([o]):null,vt(4,4,uo.bind(null,l,o),g)}function Ls(){}function fc(o,l){var g=ga();l=l===void 0?null:l;var b=g.memoizedState;return b!==null&&l!==null&&cc(l,b[1])?b[0]:(g.memoizedState=[o,l],o)}function hc(o,l){var g=ga();l=l===void 0?null:l;var b=g.memoizedState;return b!==null&&l!==null&&cc(l,b[1])?b[0]:(o=o(),g.memoizedState=[o,l],o)}function pc(o,l,g){return(gr&21)===0?(o.baseState&&(o.baseState=!1,qn=!0),o.memoizedState=g):(Da(g,l)||(g=xs(),mn.lanes|=g,Is|=g,o.baseState=!0),l)}function ed(o,l){var g=$t;$t=g!==0&&4>g?g:4,o(!0);var b=Ba.transition;Ba.transition={};try{o(!1),l()}finally{$t=g,Ba.transition=b}}function Ac(){return ga().memoizedState}function td(o,l,g){var b=Ci(o);if(g={lane:b,action:g,hasEagerState:!1,eagerState:null,next:null},mc(o))gc(l,g);else if(g=Xf(o,l,g,b),g!==null){var E=gn();sr(g,o,b,E),vc(g,l,b)}}function nd(o,l,g){var b=Ci(o),E={lane:b,action:g,hasEagerState:!1,eagerState:null,next:null};if(mc(o))gc(l,E);else{var N=o.alternate;if(o.lanes===0&&(N===null||N.lanes===0)&&(N=l.lastRenderedReducer,N!==null))try{var Q=l.lastRenderedState,fe=N(Q,g);if(E.hasEagerState=!0,E.eagerState=fe,Da(fe,Q)){var we=l.interleaved;we===null?(E.next=E,Zu(l)):(E.next=we.next,we.next=E),l.interleaved=E;return}}catch{}finally{}g=Xf(o,l,E,b),g!==null&&(E=gn(),sr(g,o,b,E),vc(g,l,b))}}function mc(o){var l=o.alternate;return o===mn||l!==null&&l===mn}function gc(o,l){Qi=xi=!0;var g=o.pending;g===null?l.next=l:(l.next=g.next,g.next=l),o.pending=l}function vc(o,l,g){if((g&4194240)!==0){var b=l.lanes;b&=o.pendingLanes,g|=b,l.lanes=g,bs(o,g)}}var fo={readContext:Jr,useCallback:Vn,useContext:Vn,useEffect:Vn,useImperativeHandle:Vn,useInsertionEffect:Vn,useLayoutEffect:Vn,useMemo:Vn,useReducer:Vn,useRef:Vn,useState:Vn,useDebugValue:Vn,useDeferredValue:Vn,useTransition:Vn,useMutableSource:Vn,useSyncExternalStore:Vn,useId:Vn,unstable_isNewReconciler:!1},rd={readContext:Jr,useCallback:function(o,l){return Pa().memoizedState=[o,l===void 0?null:l],o},useContext:Jr,useEffect:Ts,useImperativeHandle:function(o,l,g){return g=g!=null?g.concat([o]):null,Ln(4194308,4,uo.bind(null,l,o),g)},useLayoutEffect:function(o,l){return Ln(4194308,4,o,l)},useInsertionEffect:function(o,l){return Ln(4,2,o,l)},useMemo:function(o,l){var g=Pa();return l=l===void 0?null:l,o=o(),g.memoizedState=[o,l],o},useReducer:function(o,l,g){var b=Pa();return l=g!==void 0?g(l):l,b.memoizedState=b.baseState=l,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:l},b.queue=o,o=o.dispatch=td.bind(null,mn,o),[b.memoizedState,o]},useRef:function(o){var l=Pa();return o={current:o},l.memoizedState=o},useState:Kf,useDebugValue:Ls,useDeferredValue:function(o){return Pa().memoizedState=o},useTransition:function(){var o=Kf(!1),l=o[0];return o=ed.bind(null,o[1]),Pa().memoizedState=o,[l,o]},useMutableSource:function(){},useSyncExternalStore:function(o,l,g){var b=mn,E=Pa();if(bn){if(g===void 0)throw Error(d(407));g=g()}else{if(g=l(),Jn===null)throw Error(d(349));(gr&30)!==0||Rn(b,l,g)}E.memoizedState=g;var N={value:g,getSnapshot:l};return E.queue=N,Ts($u.bind(null,b,N,o),[o]),b.flags|=2048,Rs(9,Ma.bind(null,b,N,g,l),void 0,null),g},useId:function(){var o=Pa(),l=Jn.identifierPrefix;if(bn){var g=yi,b=La;g=(b&~(1<<32-Mr(b)-1)).toString(32)+g,l=":"+l+"R"+g,g=zr++,0<g&&(l+="H"+g.toString(32)),l+=":"}else g=lc++,l=":"+l+"r"+g.toString(32)+":";return o.memoizedState=l},unstable_isNewReconciler:!1},ad={readContext:Jr,useCallback:fc,useContext:Jr,useEffect:za,useImperativeHandle:Ds,useInsertionEffect:Yi,useLayoutEffect:Fa,useMemo:hc,useReducer:dc,useRef:Pe,useState:function(){return dc(ti)},useDebugValue:Ls,useDeferredValue:function(o){var l=ga();return pc(l,Sn.memoizedState,o)},useTransition:function(){var o=dc(ti)[0],l=ga().memoizedState;return[o,l]},useMutableSource:jt,useSyncExternalStore:tn,useId:Ac,unstable_isNewReconciler:!1},id={readContext:Jr,useCallback:fc,useContext:Jr,useEffect:za,useImperativeHandle:Ds,useInsertionEffect:Yi,useLayoutEffect:Fa,useMemo:hc,useReducer:At,useRef:Pe,useState:function(){return At(ti)},useDebugValue:Ls,useDeferredValue:function(o){var l=ga();return Sn===null?l.memoizedState=o:pc(l,Sn.memoizedState,o)},useTransition:function(){var o=At(ti)[0],l=ga().memoizedState;return[o,l]},useMutableSource:jt,useSyncExternalStore:tn,useId:Ac,unstable_isNewReconciler:!1};function ta(o,l){if(o&&o.defaultProps){l=c({},l),o=o.defaultProps;for(var g in o)l[g]===void 0&&(l[g]=o[g]);return l}return l}function ho(o,l,g,b){l=o.memoizedState,g=g(b,l),g=g==null?l:c({},l,g),o.memoizedState=g,o.lanes===0&&(o.updateQueue.baseState=g)}var bi={isMounted:function(o){return(o=o._reactInternals)?Y(o)===o:!1},enqueueSetState:function(o,l,g){o=o._reactInternals;var b=gn(),E=Ci(o),N=ma(b,E);N.payload=l,g!=null&&(N.callback=g),l=Wi(o,N,E),l!==null&&(sr(l,o,E,b),so(l,o,E))},enqueueReplaceState:function(o,l,g){o=o._reactInternals;var b=gn(),E=Ci(o),N=ma(b,E);N.tag=1,N.payload=l,g!=null&&(N.callback=g),l=Wi(o,N,E),l!==null&&(sr(l,o,E,b),so(l,o,E))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var g=gn(),b=Ci(o),E=ma(g,b);E.tag=2,l!=null&&(E.callback=l),l=Wi(o,E,b),l!==null&&(sr(l,o,b,g),so(l,o,b))}};function yc(o,l,g,b,E,N,Q){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(b,N,Q):l.prototype&&l.prototype.isPureReactComponent?!$l(g,b)||!$l(E,N):!0}function xc(o,l,g){var b=!1,E=Ui,N=l.contextType;return typeof N=="object"&&N!==null?N=Jr(N):(E=wr(l)?gi:Ar.current,b=l.contextTypes,N=(b=b!=null)?ys(o,E):Ui),l=new l(g,N),o.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=bi,o.stateNode=l,l._reactInternals=o,b&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=E,o.__reactInternalMemoizedMaskedChildContext=N),l}function bc(o,l,g,b){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(g,b),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(g,b),l.state!==o&&bi.enqueueReplaceState(l,l.state,null)}function al(o,l,g,b){var E=o.stateNode;E.props=g,E.state=o.memoizedState,E.refs={},ei(o);var N=l.contextType;typeof N=="object"&&N!==null?E.context=Jr(N):(N=wr(l)?gi:Ar.current,E.context=ys(o,N)),E.state=o.memoizedState,N=l.getDerivedStateFromProps,typeof N=="function"&&(ho(o,l,N,g),E.state=o.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(l=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),l!==E.state&&bi.enqueueReplaceState(E,E.state,null),oo(o,g,E,b),E.state=o.memoizedState),typeof E.componentDidMount=="function"&&(o.flags|=4194308)}function ks(o,l){try{var g="",b=l;do g+=LA(b),b=b.return;while(b);var E=g}catch(N){E=`
|
|
304
|
+
`),X=E.length-1,fe=N.length-1;1<=X&&0<=fe&&E[X]!==N[fe];)fe--;for(;1<=X&&0<=fe;X--,fe--)if(E[X]!==N[fe]){if(X!==1||fe!==1)do if(X--,fe--,0>fe||E[X]!==N[fe]){var we=`
|
|
305
|
+
`+E[X].replace(" at new "," at ");return o.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",o.displayName)),we}while(1<=X&&0<=fe);break}}}finally{Hl=!1,Error.prepareStackTrace=g}return(o=o?o.displayName||o.name:"")?vs(o):""}var Pf=Object.prototype.hasOwnProperty,zu=[],Qn=-1;function Ka(o){return{current:o}}function An(o){0>Qn||(o.current=zu[Qn],zu[Qn]=null,Qn--)}function hn(o,l){Qn++,zu[Qn]=o.current,o.current=l}var Ui={},Ar=Ka(Ui),Pr=Ka(!1),gi=Ui;function ys(o,l){var g=o.type.contextTypes;if(!g)return Ui;var b=o.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===l)return b.__reactInternalMemoizedMaskedChildContext;var E={},N;for(N in g)E[N]=l[N];return b&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=E),E}function wr(o){return o=o.childContextTypes,o!=null}function ro(){An(Pr),An(Ar)}function Fu(o,l,g){if(Ar.current!==Ui)throw Error(d(168));hn(Ar,l),hn(Pr,g)}function Iu(o,l,g){var b=o.stateNode;if(l=l.childContextTypes,typeof b.getChildContext!="function")return g;b=b.getChildContext();for(var E in b)if(!(E in l))throw Error(d(108,q(o)||"Unknown",E));return c({},g,b)}function Wl(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Ui,gi=Ar.current,hn(Ar,o),hn(Pr,Pr.current),!0}function Xl(o,l,g){var b=o.stateNode;if(!b)throw Error(d(169));g?(o=Iu(o,l,gi),b.__reactInternalMemoizedMergedChildContext=o,An(Pr),An(Ar),hn(Ar,o)):An(Pr),hn(Pr,g)}var Mr=Math.clz32?Math.clz32:Ql,yA=Math.log,qr=Math.LN2;function Ql(o){return o>>>=0,o===0?32:31-(yA(o)/qr|0)|0}var _r=64,Yl=4194304;function Ko(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Vl(o,l){var g=o.pendingLanes;if(g===0)return 0;var b=0,E=o.suspendedLanes,N=o.pingedLanes,X=g&268435455;if(X!==0){var fe=X&~E;fe!==0?b=Ko(fe):(N&=X,N!==0&&(b=Ko(N)))}else X=g&~E,X!==0?b=Ko(X):N!==0&&(b=Ko(N));if(b===0)return 0;if(l!==0&&l!==b&&(l&E)===0&&(E=b&-b,N=l&-l,E>=N||E===16&&(N&4194240)!==0))return l;if((b&4)!==0&&(b|=g&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=b;0<l;)g=31-Mr(l),E=1<<g,b|=o[g],l&=~E;return b}function xA(o,l){switch(o){case 1:case 2:case 4:return l+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bA(o,l){for(var g=o.suspendedLanes,b=o.pingedLanes,E=o.expirationTimes,N=o.pendingLanes;0<N;){var X=31-Mr(N),fe=1<<X,we=E[X];we===-1?((fe&g)===0||(fe&b)!==0)&&(E[X]=xA(fe,l)):we<=l&&(o.expiredLanes|=fe),N&=~fe}}function Ou(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function xs(){var o=_r;return _r<<=1,(_r&4194240)===0&&(_r=64),o}function Uu(o){for(var l=[],g=0;31>g;g++)l.push(o);return l}function Jo(o,l,g){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-Mr(l),o[l]=g}function SA(o,l){var g=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var b=o.eventTimes;for(o=o.expirationTimes;0<g;){var E=31-Mr(g),N=1<<E;l[E]=0,b[E]=-1,o[E]=-1,g&=~N}}function bs(o,l){var g=o.entangledLanes|=l;for(o=o.entanglements;g;){var b=31-Mr(g),E=1<<b;E&l|o[b]&l&&(o[b]|=l),g&=~E}}var $t=0;function Mf(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var ju=i.unstable_scheduleCallback,zf=i.unstable_cancelCallback,CA=i.unstable_shouldYield,wA=i.unstable_requestPaint,Yn=i.unstable_now,Gu=i.unstable_ImmediatePriority,_A=i.unstable_UserBlockingPriority,Hu=i.unstable_NormalPriority,EA=i.unstable_IdlePriority,ql=null,Ta=null;function RA(o){if(Ta&&typeof Ta.onCommitFiberRoot=="function")try{Ta.onCommitFiberRoot(ql,o,void 0,(o.current.flags&128)===128)}catch{}}function TA(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var Da=typeof Object.is=="function"?Object.is:TA,vi=null,Kl=!1,Wu=!1;function Xu(o){vi===null?vi=[o]:vi.push(o)}function Ff(o){Kl=!0,Xu(o)}function Ja(){if(!Wu&&vi!==null){Wu=!0;var o=0,l=$t;try{var g=vi;for($t=1;o<g.length;o++){var b=g[o];do b=b(!0);while(b!==null)}vi=null,Kl=!1}catch(E){throw vi!==null&&(vi=vi.slice(o+1)),ju(Gu,Ja),E}finally{$t=l,Wu=!1}}return null}var ji=[],Ss=0,Zo=null,Jl=0,fa=[],ha=0,Gi=null,La=1,yi="";function Cs(o,l){ji[Ss++]=Jl,ji[Ss++]=Zo,Zo=o,Jl=l}function $o(o,l,g){fa[ha++]=La,fa[ha++]=yi,fa[ha++]=Gi,Gi=o;var b=La;o=yi;var E=32-Mr(b)-1;b&=~(1<<E),g+=1;var N=32-Mr(l)+E;if(30<N){var X=E-E%5;N=(b&(1<<X)-1).toString(32),b>>=X,E-=X,La=1<<32-Mr(l)+E|g<<E|b,yi=N+o}else La=1<<N|g<<E|b,yi=o}function Qu(o){o.return!==null&&(Cs(o,1),$o(o,1,0))}function Yu(o){for(;o===Zo;)Zo=ji[--Ss],ji[Ss]=null,Jl=ji[--Ss],ji[Ss]=null;for(;o===Gi;)Gi=fa[--ha],fa[ha]=null,yi=fa[--ha],fa[ha]=null,La=fa[--ha],fa[ha]=null}var Kr=null,pa=null,bn=!1,el=!1,ka=null;function If(o,l){var g=sa(5,null,null,0);g.elementType="DELETED",g.stateNode=l,g.return=o,l=o.deletions,l===null?(o.deletions=[g],o.flags|=16):l.push(g)}function Of(o,l){switch(o.tag){case 5:return l=ms(l,o.type,o.pendingProps),l!==null?(o.stateNode=l,Kr=o,pa=gs(l),!0):!1;case 6:return l=Lu(l,o.pendingProps),l!==null?(o.stateNode=l,Kr=o,pa=null,!0):!1;case 13:if(l=AA(l),l!==null){var g=Gi!==null?{id:La,overflow:yi}:null;return o.memoizedState={dehydrated:l,treeContext:g,retryLane:1073741824},g=sa(18,null,null,0),g.stateNode=l,g.return=o,o.child=g,Kr=o,pa=null,!0}return!1;default:return!1}}function Vu(o){return(o.mode&1)!==0&&(o.flags&128)===0}function qu(o){if(bn){var l=pa;if(l){var g=l;if(!Of(o,l)){if(Vu(o))throw Error(d(418));l=to(g);var b=Kr;l&&Of(o,l)?If(b,g):(o.flags=o.flags&-4097|2,bn=!1,Kr=o)}}else{if(Vu(o))throw Error(d(418));o.flags=o.flags&-4097|2,bn=!1,Kr=o}}}function Uf(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;Kr=o}function Zl(o){if(!me||o!==Kr)return!1;if(!bn)return Uf(o),bn=!0,!1;if(o.tag!==3&&(o.tag!==5||gA(o.type)&&!Ne(o.type,o.memoizedProps))){var l=pa;if(l){if(Vu(o))throw jf(),Error(d(418));for(;l;)If(o,l),l=to(l)}}if(Uf(o),o.tag===13){if(!me)throw Error(d(316));if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(d(317));pa=qo(o)}else pa=Kr?to(o.stateNode):null;return!0}function jf(){for(var o=pa;o;)o=to(o)}function ao(){me&&(pa=Kr=null,el=bn=!1)}function Ku(o){ka===null?ka=[o]:ka.push(o)}var DA=h.ReactCurrentBatchConfig;function $l(o,l){if(Da(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var g=Object.keys(o),b=Object.keys(l);if(g.length!==b.length)return!1;for(b=0;b<g.length;b++){var E=g[b];if(!Pf.call(l,E)||!Da(o[E],l[E]))return!1}return!0}function LA(o){switch(o.tag){case 5:return vs(o.type);case 16:return vs("Lazy");case 13:return vs("Suspense");case 19:return vs("SuspenseList");case 0:case 2:case 15:return o=Mu(o.type,!1),o;case 11:return o=Mu(o.type.render,!1),o;case 1:return o=Mu(o.type,!0),o;default:return""}}function tl(o,l,g){if(o=g.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(g._owner){if(g=g._owner,g){if(g.tag!==1)throw Error(d(309));var b=g.stateNode}if(!b)throw Error(d(147,o));var E=b,N=""+o;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===N?l.ref:(l=function(X){var fe=E.refs;X===null?delete fe[N]:fe[N]=X},l._stringRef=N,l)}if(typeof o!="string")throw Error(d(284));if(!g._owner)throw Error(d(290,o))}return o}function ec(o,l){throw o=Object.prototype.toString.call(l),Error(d(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o))}function Gf(o){var l=o._init;return l(o._payload)}function Hf(o){function l(xe,ue){if(o){var Te=xe.deletions;Te===null?(xe.deletions=[ue],xe.flags|=16):Te.push(ue)}}function g(xe,ue){if(!o)return null;for(;ue!==null;)l(xe,ue),ue=ue.sibling;return null}function b(xe,ue){for(xe=new Map;ue!==null;)ue.key!==null?xe.set(ue.key,ue):xe.set(ue.index,ue),ue=ue.sibling;return xe}function E(xe,ue){return xe=_i(xe,ue),xe.index=0,xe.sibling=null,xe}function N(xe,ue,Te){return xe.index=Te,o?(Te=xe.alternate,Te!==null?(Te=Te.index,Te<ue?(xe.flags|=2,ue):Te):(xe.flags|=2,ue)):(xe.flags|=1048576,ue)}function X(xe){return o&&xe.alternate===null&&(xe.flags|=2),xe}function fe(xe,ue,Te,Ze){return ue===null||ue.tag!==6?(ue=vl(Te,xe.mode,Ze),ue.return=xe,ue):(ue=E(ue,Te),ue.return=xe,ue)}function we(xe,ue,Te,Ze){var At=Te.type;return At===A?Je(xe,ue,Te.props.children,Ze,Te.key):ue!==null&&(ue.elementType===At||typeof At=="object"&&At!==null&&At.$$typeof===M&&Gf(At)===ue.type)?(Ze=E(ue,Te.props),Ze.ref=tl(xe,ue,Te),Ze.return=xe,Ze):(Ze=gl(Te.type,Te.key,Te.props,null,xe.mode,Ze),Ze.ref=tl(xe,ue,Te),Ze.return=xe,Ze)}function je(xe,ue,Te,Ze){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==Te.containerInfo||ue.stateNode.implementation!==Te.implementation?(ue=xd(Te,xe.mode,Ze),ue.return=xe,ue):(ue=E(ue,Te.children||[]),ue.return=xe,ue)}function Je(xe,ue,Te,Ze,At){return ue===null||ue.tag!==7?(ue=Ei(Te,xe.mode,Ze,At),ue.return=xe,ue):(ue=E(ue,Te),ue.return=xe,ue)}function St(xe,ue,Te){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ue=vl(""+ue,xe.mode,Te),ue.return=xe,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case p:return Te=gl(ue.type,ue.key,ue.props,null,xe.mode,Te),Te.ref=tl(xe,null,ue),Te.return=xe,Te;case u:return ue=xd(ue,xe.mode,Te),ue.return=xe,ue;case M:var Ze=ue._init;return St(xe,Ze(ue._payload),Te)}if(ne(ue)||Y(ue))return ue=Ei(ue,xe.mode,Te,null),ue.return=xe,ue;ec(xe,ue)}return null}function nt(xe,ue,Te,Ze){var At=ue!==null?ue.key:null;if(typeof Te=="string"&&Te!==""||typeof Te=="number")return At!==null?null:fe(xe,ue,""+Te,Ze);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case p:return Te.key===At?we(xe,ue,Te,Ze):null;case u:return Te.key===At?je(xe,ue,Te,Ze):null;case M:return At=Te._init,nt(xe,ue,At(Te._payload),Ze)}if(ne(Te)||Y(Te))return At!==null?null:Je(xe,ue,Te,Ze,null);ec(xe,Te)}return null}function vn(xe,ue,Te,Ze,At){if(typeof Ze=="string"&&Ze!==""||typeof Ze=="number")return xe=xe.get(Te)||null,fe(ue,xe,""+Ze,At);if(typeof Ze=="object"&&Ze!==null){switch(Ze.$$typeof){case p:return xe=xe.get(Ze.key===null?Te:Ze.key)||null,we(ue,xe,Ze,At);case u:return xe=xe.get(Ze.key===null?Te:Ze.key)||null,je(ue,xe,Ze,At);case M:var kt=Ze._init;return vn(xe,ue,Te,kt(Ze._payload),At)}if(ne(Ze)||Y(Ze))return xe=xe.get(Te)||null,Je(ue,xe,Ze,At,null);ec(ue,Ze)}return null}function Pt(xe,ue,Te,Ze){for(var At=null,kt=null,Ct=ue,Gt=ue=0,Dn=null;Ct!==null&&Gt<Te.length;Gt++){Ct.index>Gt?(Dn=Ct,Ct=null):Dn=Ct.sibling;var Ht=nt(xe,Ct,Te[Gt],Ze);if(Ht===null){Ct===null&&(Ct=Dn);break}o&&Ct&&Ht.alternate===null&&l(xe,Ct),ue=N(Ht,ue,Gt),kt===null?At=Ht:kt.sibling=Ht,kt=Ht,Ct=Dn}if(Gt===Te.length)return g(xe,Ct),bn&&Cs(xe,Gt),At;if(Ct===null){for(;Gt<Te.length;Gt++)Ct=St(xe,Te[Gt],Ze),Ct!==null&&(ue=N(Ct,ue,Gt),kt===null?At=Ct:kt.sibling=Ct,kt=Ct);return bn&&Cs(xe,Gt),At}for(Ct=b(xe,Ct);Gt<Te.length;Gt++)Dn=vn(Ct,xe,Gt,Te[Gt],Ze),Dn!==null&&(o&&Dn.alternate!==null&&Ct.delete(Dn.key===null?Gt:Dn.key),ue=N(Dn,ue,Gt),kt===null?At=Dn:kt.sibling=Dn,kt=Dn);return o&&Ct.forEach(function(Hr){return l(xe,Hr)}),bn&&Cs(xe,Gt),At}function Vt(xe,ue,Te,Ze){var At=Y(Te);if(typeof At!="function")throw Error(d(150));if(Te=At.call(Te),Te==null)throw Error(d(151));for(var kt=At=null,Ct=ue,Gt=ue=0,Dn=null,Ht=Te.next();Ct!==null&&!Ht.done;Gt++,Ht=Te.next()){Ct.index>Gt?(Dn=Ct,Ct=null):Dn=Ct.sibling;var Hr=nt(xe,Ct,Ht.value,Ze);if(Hr===null){Ct===null&&(Ct=Dn);break}o&&Ct&&Hr.alternate===null&&l(xe,Ct),ue=N(Hr,ue,Gt),kt===null?At=Hr:kt.sibling=Hr,kt=Hr,Ct=Dn}if(Ht.done)return g(xe,Ct),bn&&Cs(xe,Gt),At;if(Ct===null){for(;!Ht.done;Gt++,Ht=Te.next())Ht=St(xe,Ht.value,Ze),Ht!==null&&(ue=N(Ht,ue,Gt),kt===null?At=Ht:kt.sibling=Ht,kt=Ht);return bn&&Cs(xe,Gt),At}for(Ct=b(xe,Ct);!Ht.done;Gt++,Ht=Te.next())Ht=vn(Ct,xe,Gt,Ht.value,Ze),Ht!==null&&(o&&Ht.alternate!==null&&Ct.delete(Ht.key===null?Gt:Ht.key),ue=N(Ht,ue,Gt),kt===null?At=Ht:kt.sibling=Ht,kt=Ht);return o&&Ct.forEach(function(Yc){return l(xe,Yc)}),bn&&Cs(xe,Gt),At}function Ri(xe,ue,Te,Ze){if(typeof Te=="object"&&Te!==null&&Te.type===A&&Te.key===null&&(Te=Te.props.children),typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case p:e:{for(var At=Te.key,kt=ue;kt!==null;){if(kt.key===At){if(At=Te.type,At===A){if(kt.tag===7){g(xe,kt.sibling),ue=E(kt,Te.props.children),ue.return=xe,xe=ue;break e}}else if(kt.elementType===At||typeof At=="object"&&At!==null&&At.$$typeof===M&&Gf(At)===kt.type){g(xe,kt.sibling),ue=E(kt,Te.props),ue.ref=tl(xe,kt,Te),ue.return=xe,xe=ue;break e}g(xe,kt);break}else l(xe,kt);kt=kt.sibling}Te.type===A?(ue=Ei(Te.props.children,xe.mode,Ze,Te.key),ue.return=xe,xe=ue):(Ze=gl(Te.type,Te.key,Te.props,null,xe.mode,Ze),Ze.ref=tl(xe,ue,Te),Ze.return=xe,xe=Ze)}return X(xe);case u:e:{for(kt=Te.key;ue!==null;){if(ue.key===kt)if(ue.tag===4&&ue.stateNode.containerInfo===Te.containerInfo&&ue.stateNode.implementation===Te.implementation){g(xe,ue.sibling),ue=E(ue,Te.children||[]),ue.return=xe,xe=ue;break e}else{g(xe,ue);break}else l(xe,ue);ue=ue.sibling}ue=xd(Te,xe.mode,Ze),ue.return=xe,xe=ue}return X(xe);case M:return kt=Te._init,Ri(xe,ue,kt(Te._payload),Ze)}if(ne(Te))return Pt(xe,ue,Te,Ze);if(Y(Te))return Vt(xe,ue,Te,Ze);ec(xe,Te)}return typeof Te=="string"&&Te!==""||typeof Te=="number"?(Te=""+Te,ue!==null&&ue.tag===6?(g(xe,ue.sibling),ue=E(ue,Te),ue.return=xe,xe=ue):(g(xe,ue),ue=vl(Te,xe.mode,Ze),ue.return=xe,xe=ue),X(xe)):g(xe,ue)}return Ri}var io=Hf(!0),Wf=Hf(!1),tc=Ka(null),nc=null,Za=null,rc=null;function ac(){rc=Za=nc=null}function Ju(o,l,g){Lt?(hn(tc,l._currentValue),l._currentValue=g):(hn(tc,l._currentValue2),l._currentValue2=g)}function ic(o){var l=tc.current;An(tc),Lt?o._currentValue=l:o._currentValue2=l}function sc(o,l,g){for(;o!==null;){var b=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,b!==null&&(b.childLanes|=l)):b!==null&&(b.childLanes&l)!==l&&(b.childLanes|=l),o===g)break;o=o.return}}function ws(o,l){nc=o,rc=Za=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&l)!==0&&(qn=!0),o.firstContext=null)}function Jr(o){var l=Lt?o._currentValue:o._currentValue2;if(rc!==o)if(o={context:o,memoizedValue:l,next:null},Za===null){if(nc===null)throw Error(d(308));Za=o,nc.dependencies={lanes:0,firstContext:o}}else Za=Za.next=o;return l}var Hi=null;function Zu(o){Hi===null?Hi=[o]:Hi.push(o)}function Xf(o,l,g,b){var E=l.interleaved;return E===null?(g.next=g,Zu(l)):(g.next=E.next,E.next=g),l.interleaved=g,Aa(o,b)}function Aa(o,l){o.lanes|=l;var g=o.alternate;for(g!==null&&(g.lanes|=l),g=o,o=o.return;o!==null;)o.childLanes|=l,g=o.alternate,g!==null&&(g.childLanes|=l),g=o,o=o.return;return g.tag===3?g.stateNode:null}var $a=!1;function ei(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oc(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function ma(o,l){return{eventTime:o,lane:l,tag:0,payload:null,callback:null,next:null}}function Wi(o,l,g){var b=o.updateQueue;if(b===null)return null;if(b=b.shared,(It&2)!==0){var E=b.pending;return E===null?l.next=l:(l.next=E.next,E.next=l),b.pending=l,Aa(o,g)}return E=b.interleaved,E===null?(l.next=l,Zu(b)):(l.next=E.next,E.next=l),b.interleaved=l,Aa(o,g)}function so(o,l,g){if(l=l.updateQueue,l!==null&&(l=l.shared,(g&4194240)!==0)){var b=l.lanes;b&=o.pendingLanes,g|=b,l.lanes=g,bs(o,g)}}function Qf(o,l){var g=o.updateQueue,b=o.alternate;if(b!==null&&(b=b.updateQueue,g===b)){var E=null,N=null;if(g=g.firstBaseUpdate,g!==null){do{var X={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};N===null?E=N=X:N=N.next=X,g=g.next}while(g!==null);N===null?E=N=l:N=N.next=l}else E=N=l;g={baseState:b.baseState,firstBaseUpdate:E,lastBaseUpdate:N,shared:b.shared,effects:b.effects},o.updateQueue=g;return}o=g.lastBaseUpdate,o===null?g.firstBaseUpdate=l:o.next=l,g.lastBaseUpdate=l}function oo(o,l,g,b){var E=o.updateQueue;$a=!1;var N=E.firstBaseUpdate,X=E.lastBaseUpdate,fe=E.shared.pending;if(fe!==null){E.shared.pending=null;var we=fe,je=we.next;we.next=null,X===null?N=je:X.next=je,X=we;var Je=o.alternate;Je!==null&&(Je=Je.updateQueue,fe=Je.lastBaseUpdate,fe!==X&&(fe===null?Je.firstBaseUpdate=je:fe.next=je,Je.lastBaseUpdate=we))}if(N!==null){var St=E.baseState;X=0,Je=je=we=null,fe=N;do{var nt=fe.lane,vn=fe.eventTime;if((b&nt)===nt){Je!==null&&(Je=Je.next={eventTime:vn,lane:0,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null});e:{var Pt=o,Vt=fe;switch(nt=l,vn=g,Vt.tag){case 1:if(Pt=Vt.payload,typeof Pt=="function"){St=Pt.call(vn,St,nt);break e}St=Pt;break e;case 3:Pt.flags=Pt.flags&-65537|128;case 0:if(Pt=Vt.payload,nt=typeof Pt=="function"?Pt.call(vn,St,nt):Pt,nt==null)break e;St=c({},St,nt);break e;case 2:$a=!0}}fe.callback!==null&&fe.lane!==0&&(o.flags|=64,nt=E.effects,nt===null?E.effects=[fe]:nt.push(fe))}else vn={eventTime:vn,lane:nt,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null},Je===null?(je=Je=vn,we=St):Je=Je.next=vn,X|=nt;if(fe=fe.next,fe===null){if(fe=E.shared.pending,fe===null)break;nt=fe,fe=nt.next,nt.next=null,E.lastBaseUpdate=nt,E.shared.pending=null}}while(!0);if(Je===null&&(we=St),E.baseState=we,E.firstBaseUpdate=je,E.lastBaseUpdate=Je,l=E.shared.interleaved,l!==null){E=l;do X|=E.lane,E=E.next;while(E!==l)}else N===null&&(E.shared.lanes=0);Is|=X,o.lanes=X,o.memoizedState=St}}function Yf(o,l,g){if(o=l.effects,l.effects=null,o!==null)for(l=0;l<o.length;l++){var b=o[l],E=b.callback;if(E!==null){if(b.callback=null,b=g,typeof E!="function")throw Error(d(191,E));E.call(b)}}}var _s={},Zr=Ka(_s),lo=Ka(_s),Es=Ka(_s);function $r(o){if(o===_s)throw Error(d(174));return o}function ea(o,l){hn(Es,l),hn(lo,o),hn(Zr,_s),o=pe(l),An(Zr),hn(Zr,o)}function Xi(){An(Zr),An(lo),An(Es)}function nl(o){var l=$r(Es.current),g=$r(Zr.current);l=J(g,o.type,l),g!==l&&(hn(lo,o),hn(Zr,l))}function Na(o){lo.current===o&&(An(Zr),An(lo))}var rn=Ka(0);function jn(o){for(var l=o;l!==null;){if(l.tag===13){var g=l.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||Yo(g)||tr(g)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Gn=[];function rl(){for(var o=0;o<Gn.length;o++){var l=Gn[o];Lt?l._workInProgressVersionPrimary=null:l._workInProgressVersionSecondary=null}Gn.length=0}var mr=h.ReactCurrentDispatcher,Ba=h.ReactCurrentBatchConfig,gr=0,mn=null,Sn=null,Hn=null,xi=!1,Qi=!1,zr=0,lc=0;function Vn(){throw Error(d(321))}function cc(o,l){if(l===null)return!1;for(var g=0;g<l.length&&g<o.length;g++)if(!Da(o[g],l[g]))return!1;return!0}function uc(o,l,g,b,E,N){if(gr=N,mn=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,mr.current=o===null||o.memoizedState===null?rd:ad,o=g(b,E),Qi){N=0;do{if(Qi=!1,zr=0,25<=N)throw Error(d(301));N+=1,Hn=Sn=null,l.updateQueue=null,mr.current=id,o=g(b,E)}while(Qi)}if(mr.current=fo,l=Sn!==null&&Sn.next!==null,gr=0,Hn=Sn=mn=null,xi=!1,l)throw Error(d(300));return o}function co(){var o=zr!==0;return zr=0,o}function Pa(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hn===null?mn.memoizedState=Hn=o:Hn=Hn.next=o,Hn}function ga(){if(Sn===null){var o=mn.alternate;o=o!==null?o.memoizedState:null}else o=Sn.next;var l=Hn===null?mn.memoizedState:Hn.next;if(l!==null)Hn=l,Sn=o;else{if(o===null)throw Error(d(310));Sn=o,o={memoizedState:Sn.memoizedState,baseState:Sn.baseState,baseQueue:Sn.baseQueue,queue:Sn.queue,next:null},Hn===null?mn.memoizedState=Hn=o:Hn=Hn.next=o}return Hn}function ti(o,l){return typeof l=="function"?l(o):l}function dc(o){var l=ga(),g=l.queue;if(g===null)throw Error(d(311));g.lastRenderedReducer=o;var b=Sn,E=b.baseQueue,N=g.pending;if(N!==null){if(E!==null){var X=E.next;E.next=N.next,N.next=X}b.baseQueue=E=N,g.pending=null}if(E!==null){N=E.next,b=b.baseState;var fe=X=null,we=null,je=N;do{var Je=je.lane;if((gr&Je)===Je)we!==null&&(we=we.next={lane:0,action:je.action,hasEagerState:je.hasEagerState,eagerState:je.eagerState,next:null}),b=je.hasEagerState?je.eagerState:o(b,je.action);else{var St={lane:Je,action:je.action,hasEagerState:je.hasEagerState,eagerState:je.eagerState,next:null};we===null?(fe=we=St,X=b):we=we.next=St,mn.lanes|=Je,Is|=Je}je=je.next}while(je!==null&&je!==N);we===null?X=b:we.next=fe,Da(b,l.memoizedState)||(qn=!0),l.memoizedState=b,l.baseState=X,l.baseQueue=we,g.lastRenderedState=b}if(o=g.interleaved,o!==null){E=o;do N=E.lane,mn.lanes|=N,Is|=N,E=E.next;while(E!==o)}else E===null&&(g.lanes=0);return[l.memoizedState,g.dispatch]}function mt(o){var l=ga(),g=l.queue;if(g===null)throw Error(d(311));g.lastRenderedReducer=o;var b=g.dispatch,E=g.pending,N=l.memoizedState;if(E!==null){g.pending=null;var X=E=E.next;do N=o(N,X.action),X=X.next;while(X!==E);Da(N,l.memoizedState)||(qn=!0),l.memoizedState=N,l.baseQueue===null&&(l.baseState=N),g.lastRenderedState=N}return[N,b]}function jt(){}function tn(o,l){var g=mn,b=ga(),E=l(),N=!Da(b.memoizedState,E);if(N&&(b.memoizedState=E,qn=!0),b=b.queue,za($u.bind(null,g,b,o),[o]),b.getSnapshot!==l||N||Hn!==null&&Hn.memoizedState.tag&1){if(g.flags|=2048,Rs(9,Ma.bind(null,g,b,E,l),void 0,null),Jn===null)throw Error(d(349));(gr&30)!==0||Rn(g,l,E)}return E}function Rn(o,l,g){o.flags|=16384,o={getSnapshot:l,value:g},l=mn.updateQueue,l===null?(l={lastEffect:null,stores:null},mn.updateQueue=l,l.stores=[o]):(g=l.stores,g===null?l.stores=[o]:g.push(o))}function Ma(o,l,g,b){l.value=g,l.getSnapshot=b,Vf(l)&&qf(o)}function $u(o,l,g){return g(function(){Vf(l)&&qf(o)})}function Vf(o){var l=o.getSnapshot;o=o.value;try{var g=l();return!Da(o,g)}catch{return!0}}function qf(o){var l=Aa(o,1);l!==null&&sr(l,o,1,-1)}function Kf(o){var l=Pa();return typeof o=="function"&&(o=o()),l.memoizedState=l.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:o},l.queue=o,o=o.dispatch=nd.bind(null,mn,o),[l.memoizedState,o]}function Rs(o,l,g,b){return o={tag:o,create:l,destroy:g,deps:b,next:null},l=mn.updateQueue,l===null?(l={lastEffect:null,stores:null},mn.updateQueue=l,l.lastEffect=o.next=o):(g=l.lastEffect,g===null?l.lastEffect=o.next=o:(b=g.next,g.next=o,o.next=b,l.lastEffect=o)),o}function Pe(){return ga().memoizedState}function Ln(o,l,g,b){var E=Pa();mn.flags|=o,E.memoizedState=Rs(1|l,g,void 0,b===void 0?null:b)}function vt(o,l,g,b){var E=ga();b=b===void 0?null:b;var N=void 0;if(Sn!==null){var X=Sn.memoizedState;if(N=X.destroy,b!==null&&cc(b,X.deps)){E.memoizedState=Rs(l,g,N,b);return}}mn.flags|=o,E.memoizedState=Rs(1|l,g,N,b)}function Ts(o,l){return Ln(8390656,8,o,l)}function za(o,l){return vt(2048,8,o,l)}function Yi(o,l){return vt(4,2,o,l)}function Fa(o,l){return vt(4,4,o,l)}function uo(o,l){if(typeof l=="function")return o=o(),l(o),function(){l(null)};if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function Ds(o,l,g){return g=g!=null?g.concat([o]):null,vt(4,4,uo.bind(null,l,o),g)}function Ls(){}function fc(o,l){var g=ga();l=l===void 0?null:l;var b=g.memoizedState;return b!==null&&l!==null&&cc(l,b[1])?b[0]:(g.memoizedState=[o,l],o)}function hc(o,l){var g=ga();l=l===void 0?null:l;var b=g.memoizedState;return b!==null&&l!==null&&cc(l,b[1])?b[0]:(o=o(),g.memoizedState=[o,l],o)}function pc(o,l,g){return(gr&21)===0?(o.baseState&&(o.baseState=!1,qn=!0),o.memoizedState=g):(Da(g,l)||(g=xs(),mn.lanes|=g,Is|=g,o.baseState=!0),l)}function ed(o,l){var g=$t;$t=g!==0&&4>g?g:4,o(!0);var b=Ba.transition;Ba.transition={};try{o(!1),l()}finally{$t=g,Ba.transition=b}}function Ac(){return ga().memoizedState}function td(o,l,g){var b=Ci(o);if(g={lane:b,action:g,hasEagerState:!1,eagerState:null,next:null},mc(o))gc(l,g);else if(g=Xf(o,l,g,b),g!==null){var E=gn();sr(g,o,b,E),vc(g,l,b)}}function nd(o,l,g){var b=Ci(o),E={lane:b,action:g,hasEagerState:!1,eagerState:null,next:null};if(mc(o))gc(l,E);else{var N=o.alternate;if(o.lanes===0&&(N===null||N.lanes===0)&&(N=l.lastRenderedReducer,N!==null))try{var X=l.lastRenderedState,fe=N(X,g);if(E.hasEagerState=!0,E.eagerState=fe,Da(fe,X)){var we=l.interleaved;we===null?(E.next=E,Zu(l)):(E.next=we.next,we.next=E),l.interleaved=E;return}}catch{}finally{}g=Xf(o,l,E,b),g!==null&&(E=gn(),sr(g,o,b,E),vc(g,l,b))}}function mc(o){var l=o.alternate;return o===mn||l!==null&&l===mn}function gc(o,l){Qi=xi=!0;var g=o.pending;g===null?l.next=l:(l.next=g.next,g.next=l),o.pending=l}function vc(o,l,g){if((g&4194240)!==0){var b=l.lanes;b&=o.pendingLanes,g|=b,l.lanes=g,bs(o,g)}}var fo={readContext:Jr,useCallback:Vn,useContext:Vn,useEffect:Vn,useImperativeHandle:Vn,useInsertionEffect:Vn,useLayoutEffect:Vn,useMemo:Vn,useReducer:Vn,useRef:Vn,useState:Vn,useDebugValue:Vn,useDeferredValue:Vn,useTransition:Vn,useMutableSource:Vn,useSyncExternalStore:Vn,useId:Vn,unstable_isNewReconciler:!1},rd={readContext:Jr,useCallback:function(o,l){return Pa().memoizedState=[o,l===void 0?null:l],o},useContext:Jr,useEffect:Ts,useImperativeHandle:function(o,l,g){return g=g!=null?g.concat([o]):null,Ln(4194308,4,uo.bind(null,l,o),g)},useLayoutEffect:function(o,l){return Ln(4194308,4,o,l)},useInsertionEffect:function(o,l){return Ln(4,2,o,l)},useMemo:function(o,l){var g=Pa();return l=l===void 0?null:l,o=o(),g.memoizedState=[o,l],o},useReducer:function(o,l,g){var b=Pa();return l=g!==void 0?g(l):l,b.memoizedState=b.baseState=l,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:l},b.queue=o,o=o.dispatch=td.bind(null,mn,o),[b.memoizedState,o]},useRef:function(o){var l=Pa();return o={current:o},l.memoizedState=o},useState:Kf,useDebugValue:Ls,useDeferredValue:function(o){return Pa().memoizedState=o},useTransition:function(){var o=Kf(!1),l=o[0];return o=ed.bind(null,o[1]),Pa().memoizedState=o,[l,o]},useMutableSource:function(){},useSyncExternalStore:function(o,l,g){var b=mn,E=Pa();if(bn){if(g===void 0)throw Error(d(407));g=g()}else{if(g=l(),Jn===null)throw Error(d(349));(gr&30)!==0||Rn(b,l,g)}E.memoizedState=g;var N={value:g,getSnapshot:l};return E.queue=N,Ts($u.bind(null,b,N,o),[o]),b.flags|=2048,Rs(9,Ma.bind(null,b,N,g,l),void 0,null),g},useId:function(){var o=Pa(),l=Jn.identifierPrefix;if(bn){var g=yi,b=La;g=(b&~(1<<32-Mr(b)-1)).toString(32)+g,l=":"+l+"R"+g,g=zr++,0<g&&(l+="H"+g.toString(32)),l+=":"}else g=lc++,l=":"+l+"r"+g.toString(32)+":";return o.memoizedState=l},unstable_isNewReconciler:!1},ad={readContext:Jr,useCallback:fc,useContext:Jr,useEffect:za,useImperativeHandle:Ds,useInsertionEffect:Yi,useLayoutEffect:Fa,useMemo:hc,useReducer:dc,useRef:Pe,useState:function(){return dc(ti)},useDebugValue:Ls,useDeferredValue:function(o){var l=ga();return pc(l,Sn.memoizedState,o)},useTransition:function(){var o=dc(ti)[0],l=ga().memoizedState;return[o,l]},useMutableSource:jt,useSyncExternalStore:tn,useId:Ac,unstable_isNewReconciler:!1},id={readContext:Jr,useCallback:fc,useContext:Jr,useEffect:za,useImperativeHandle:Ds,useInsertionEffect:Yi,useLayoutEffect:Fa,useMemo:hc,useReducer:mt,useRef:Pe,useState:function(){return mt(ti)},useDebugValue:Ls,useDeferredValue:function(o){var l=ga();return Sn===null?l.memoizedState=o:pc(l,Sn.memoizedState,o)},useTransition:function(){var o=mt(ti)[0],l=ga().memoizedState;return[o,l]},useMutableSource:jt,useSyncExternalStore:tn,useId:Ac,unstable_isNewReconciler:!1};function ta(o,l){if(o&&o.defaultProps){l=c({},l),o=o.defaultProps;for(var g in o)l[g]===void 0&&(l[g]=o[g]);return l}return l}function ho(o,l,g,b){l=o.memoizedState,g=g(b,l),g=g==null?l:c({},l,g),o.memoizedState=g,o.lanes===0&&(o.updateQueue.baseState=g)}var bi={isMounted:function(o){return(o=o._reactInternals)?Q(o)===o:!1},enqueueSetState:function(o,l,g){o=o._reactInternals;var b=gn(),E=Ci(o),N=ma(b,E);N.payload=l,g!=null&&(N.callback=g),l=Wi(o,N,E),l!==null&&(sr(l,o,E,b),so(l,o,E))},enqueueReplaceState:function(o,l,g){o=o._reactInternals;var b=gn(),E=Ci(o),N=ma(b,E);N.tag=1,N.payload=l,g!=null&&(N.callback=g),l=Wi(o,N,E),l!==null&&(sr(l,o,E,b),so(l,o,E))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var g=gn(),b=Ci(o),E=ma(g,b);E.tag=2,l!=null&&(E.callback=l),l=Wi(o,E,b),l!==null&&(sr(l,o,b,g),so(l,o,b))}};function yc(o,l,g,b,E,N,X){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(b,N,X):l.prototype&&l.prototype.isPureReactComponent?!$l(g,b)||!$l(E,N):!0}function xc(o,l,g){var b=!1,E=Ui,N=l.contextType;return typeof N=="object"&&N!==null?N=Jr(N):(E=wr(l)?gi:Ar.current,b=l.contextTypes,N=(b=b!=null)?ys(o,E):Ui),l=new l(g,N),o.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=bi,o.stateNode=l,l._reactInternals=o,b&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=E,o.__reactInternalMemoizedMaskedChildContext=N),l}function bc(o,l,g,b){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(g,b),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(g,b),l.state!==o&&bi.enqueueReplaceState(l,l.state,null)}function al(o,l,g,b){var E=o.stateNode;E.props=g,E.state=o.memoizedState,E.refs={},ei(o);var N=l.contextType;typeof N=="object"&&N!==null?E.context=Jr(N):(N=wr(l)?gi:Ar.current,E.context=ys(o,N)),E.state=o.memoizedState,N=l.getDerivedStateFromProps,typeof N=="function"&&(ho(o,l,N,g),E.state=o.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(l=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),l!==E.state&&bi.enqueueReplaceState(E,E.state,null),oo(o,g,E,b),E.state=o.memoizedState),typeof E.componentDidMount=="function"&&(o.flags|=4194308)}function ks(o,l){try{var g="",b=l;do g+=LA(b),b=b.return;while(b);var E=g}catch(N){E=`
|
|
306
306
|
Error generating stack: `+N.message+`
|
|
307
|
-
`+N.stack}return{value:o,source:l,stack:E,digest:null}}function Ns(o,l,g){return{value:o,source:null,stack:g??null,digest:l??null}}function Sc(o,l){try{console.error(l.value)}catch(g){setTimeout(function(){throw g})}}var il=typeof WeakMap=="function"?WeakMap:Map;function Vi(o,l,g){g=ma(-1,g),g.tag=3,g.payload={element:null};var b=l.value;return g.callback=function(){Oc||(Oc=!0,pl=b),Sc(o,l)},g}function Fr(o,l,g){g=ma(-1,g),g.tag=3;var b=o.type.getDerivedStateFromError;if(typeof b=="function"){var E=l.value;g.payload=function(){return b(E)},g.callback=function(){Sc(o,l)}}var N=o.stateNode;return N!==null&&typeof N.componentDidCatch=="function"&&(g.callback=function(){Sc(o,l),typeof b!="function"&&(Zi===null?Zi=new Set([this]):Zi.add(this));var Q=l.stack;this.componentDidCatch(l.value,{componentStack:Q!==null?Q:""})}),g}function Jf(o,l,g){var b=o.pingCache;if(b===null){b=o.pingCache=new il;var E=new Set;b.set(l,E)}else E=b.get(l),E===void 0&&(E=new Set,b.set(l,E));E.has(g)||(E.add(g),o=es.bind(null,o,l,g),l.then(o,o))}function dn(o){do{var l;if((l=o.tag===13)&&(l=o.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return o;o=o.return}while(o!==null);return null}function sl(o,l,g,b,E){return(o.mode&1)===0?(o===l?o.flags|=65536:(o.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(l=ma(-1,1),l.tag=2,Wi(g,l,1))),g.lanes|=1),o):(o.flags|=65536,o.lanes=E,o)}var Cc=h.ReactCurrentOwner,qn=!1;function Kn(o,l,g,b){l.child=o===null?Wf(l,null,g,b):io(l,o.child,g,b)}function Zf(o,l,g,b,E){g=g.render;var N=l.ref;return ws(l,E),b=uc(o,l,g,b,N,E),g=co(),o!==null&&!qn?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~E,Ir(o,l,E)):(bn&&g&&Qu(l),l.flags|=1,Kn(o,l,b,E),l.child)}function $f(o,l,g,b,E){if(o===null){var N=g.type;return typeof N=="function"&&!Xc(N)&&N.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(l.tag=15,l.type=N,eh(o,l,N,b,E)):(o=gl(g.type,null,b,l,l.mode,E),o.ref=l.ref,o.return=l,l.child=o)}if(N=o.child,(o.lanes&E)===0){var Q=N.memoizedProps;if(g=g.compare,g=g!==null?g:$l,g(Q,b)&&o.ref===l.ref)return Ir(o,l,E)}return l.flags|=1,o=_i(N,b),o.ref=l.ref,o.return=l,l.child=o}function eh(o,l,g,b,E){if(o!==null){var N=o.memoizedProps;if($l(N,b)&&o.ref===l.ref)if(qn=!1,l.pendingProps=b=N,(o.lanes&E)!==0)(o.flags&131072)!==0&&(qn=!0);else return l.lanes=o.lanes,Ir(o,l,E)}return sd(o,l,g,b,E)}function th(o,l,g){var b=l.pendingProps,E=b.children,N=o!==null?o.memoizedState:null;if(b.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},hn(Fs,aa),aa|=g;else{if((g&1073741824)===0)return o=N!==null?N.baseLanes|g:g,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:o,cachePool:null,transitions:null},l.updateQueue=null,hn(Fs,aa),aa|=o,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},b=N!==null?N.baseLanes:g,hn(Fs,aa),aa|=b}else N!==null?(b=N.baseLanes|g,l.memoizedState=null):b=g,hn(Fs,aa),aa|=b;return Kn(o,l,E,g),l.child}function wc(o,l){var g=l.ref;(o===null&&g!==null||o!==null&&o.ref!==g)&&(l.flags|=512,l.flags|=2097152)}function sd(o,l,g,b,E){var N=wr(g)?gi:Ar.current;return N=ys(l,N),ws(l,E),g=uc(o,l,g,b,N,E),b=co(),o!==null&&!qn?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~E,Ir(o,l,E)):(bn&&b&&Qu(l),l.flags|=1,Kn(o,l,g,E),l.child)}function _c(o,l,g,b,E){if(wr(g)){var N=!0;Wl(l)}else N=!1;if(ws(l,E),l.stateNode===null)vr(o,l),xc(l,g,b),al(l,g,b,E),b=!0;else if(o===null){var Q=l.stateNode,fe=l.memoizedProps;Q.props=fe;var we=Q.context,Ue=g.contextType;typeof Ue=="object"&&Ue!==null?Ue=Jr(Ue):(Ue=wr(g)?gi:Ar.current,Ue=ys(l,Ue));var Je=g.getDerivedStateFromProps,St=typeof Je=="function"||typeof Q.getSnapshotBeforeUpdate=="function";St||typeof Q.UNSAFE_componentWillReceiveProps!="function"&&typeof Q.componentWillReceiveProps!="function"||(fe!==b||we!==Ue)&&bc(l,Q,b,Ue),$a=!1;var nt=l.memoizedState;Q.state=nt,oo(l,b,Q,E),we=l.memoizedState,fe!==b||nt!==we||Pr.current||$a?(typeof Je=="function"&&(ho(l,g,Je,b),we=l.memoizedState),(fe=$a||yc(l,g,fe,b,nt,we,Ue))?(St||typeof Q.UNSAFE_componentWillMount!="function"&&typeof Q.componentWillMount!="function"||(typeof Q.componentWillMount=="function"&&Q.componentWillMount(),typeof Q.UNSAFE_componentWillMount=="function"&&Q.UNSAFE_componentWillMount()),typeof Q.componentDidMount=="function"&&(l.flags|=4194308)):(typeof Q.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=b,l.memoizedState=we),Q.props=b,Q.state=we,Q.context=Ue,b=fe):(typeof Q.componentDidMount=="function"&&(l.flags|=4194308),b=!1)}else{Q=l.stateNode,oc(o,l),fe=l.memoizedProps,Ue=l.type===l.elementType?fe:ta(l.type,fe),Q.props=Ue,St=l.pendingProps,nt=Q.context,we=g.contextType,typeof we=="object"&&we!==null?we=Jr(we):(we=wr(g)?gi:Ar.current,we=ys(l,we));var vn=g.getDerivedStateFromProps;(Je=typeof vn=="function"||typeof Q.getSnapshotBeforeUpdate=="function")||typeof Q.UNSAFE_componentWillReceiveProps!="function"&&typeof Q.componentWillReceiveProps!="function"||(fe!==St||nt!==we)&&bc(l,Q,b,we),$a=!1,nt=l.memoizedState,Q.state=nt,oo(l,b,Q,E);var Pt=l.memoizedState;fe!==St||nt!==Pt||Pr.current||$a?(typeof vn=="function"&&(ho(l,g,vn,b),Pt=l.memoizedState),(Ue=$a||yc(l,g,Ue,b,nt,Pt,we)||!1)?(Je||typeof Q.UNSAFE_componentWillUpdate!="function"&&typeof Q.componentWillUpdate!="function"||(typeof Q.componentWillUpdate=="function"&&Q.componentWillUpdate(b,Pt,we),typeof Q.UNSAFE_componentWillUpdate=="function"&&Q.UNSAFE_componentWillUpdate(b,Pt,we)),typeof Q.componentDidUpdate=="function"&&(l.flags|=4),typeof Q.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof Q.componentDidUpdate!="function"||fe===o.memoizedProps&&nt===o.memoizedState||(l.flags|=4),typeof Q.getSnapshotBeforeUpdate!="function"||fe===o.memoizedProps&&nt===o.memoizedState||(l.flags|=1024),l.memoizedProps=b,l.memoizedState=Pt),Q.props=b,Q.state=Pt,Q.context=we,b=Ue):(typeof Q.componentDidUpdate!="function"||fe===o.memoizedProps&&nt===o.memoizedState||(l.flags|=4),typeof Q.getSnapshotBeforeUpdate!="function"||fe===o.memoizedProps&&nt===o.memoizedState||(l.flags|=1024),b=!1)}return Ec(o,l,g,b,N,E)}function Ec(o,l,g,b,E,N){wc(o,l);var Q=(l.flags&128)!==0;if(!b&&!Q)return E&&Xl(l,g,!1),Ir(o,l,N);b=l.stateNode,Cc.current=l;var fe=Q&&typeof g.getDerivedStateFromError!="function"?null:b.render();return l.flags|=1,o!==null&&Q?(l.child=io(l,o.child,null,N),l.child=io(l,null,fe,N)):Kn(o,l,fe,N),l.memoizedState=b.state,E&&Xl(l,g,!0),l.child}function nh(o){var l=o.stateNode;l.pendingContext?Fu(o,l.pendingContext,l.pendingContext!==l.context):l.context&&Fu(o,l.context,!1),ea(o,l.containerInfo)}function rh(o,l,g,b,E){return ao(),Ku(E),l.flags|=256,Kn(o,l,g,b),l.child}var po={dehydrated:null,treeContext:null,retryLane:0};function od(o){return{baseLanes:o,cachePool:null,transitions:null}}function ld(o,l,g){var b=l.pendingProps,E=rn.current,N=!1,Q=(l.flags&128)!==0,fe;if((fe=Q)||(fe=o!==null&&o.memoizedState===null?!1:(E&2)!==0),fe?(N=!0,l.flags&=-129):(o===null||o.memoizedState!==null)&&(E|=1),hn(rn,E&1),o===null)return qu(l),o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((l.mode&1)===0?l.lanes=1:tr(o)?l.lanes=8:l.lanes=1073741824,null):(Q=b.children,o=b.fallback,N?(b=l.mode,N=l.child,Q={mode:"hidden",children:Q},(b&1)===0&&N!==null?(N.childLanes=0,N.pendingProps=Q):N=So(Q,b,0,null),o=Ei(o,b,g,null),N.return=l,o.return=l,N.sibling=o,l.child=N,l.child.memoizedState=od(g),l.memoizedState=po,o):Rc(l,Q));if(E=o.memoizedState,E!==null&&(fe=E.dehydrated,fe!==null))return Bs(o,l,Q,b,fe,E,g);if(N){N=b.fallback,Q=l.mode,E=o.child,fe=E.sibling;var we={mode:"hidden",children:b.children};return(Q&1)===0&&l.child!==E?(b=l.child,b.childLanes=0,b.pendingProps=we,l.deletions=null):(b=_i(E,we),b.subtreeFlags=E.subtreeFlags&14680064),fe!==null?N=_i(fe,N):(N=Ei(N,Q,g,null),N.flags|=2),N.return=l,b.return=l,b.sibling=N,l.child=b,b=N,N=l.child,Q=o.child.memoizedState,Q=Q===null?od(g):{baseLanes:Q.baseLanes|g,cachePool:null,transitions:Q.transitions},N.memoizedState=Q,N.childLanes=o.childLanes&~g,l.memoizedState=po,b}return N=o.child,o=N.sibling,b=_i(N,{mode:"visible",children:b.children}),(l.mode&1)===0&&(b.lanes=g),b.return=l,b.sibling=null,o!==null&&(g=l.deletions,g===null?(l.deletions=[o],l.flags|=16):g.push(o)),l.child=b,l.memoizedState=null,b}function Rc(o,l){return l=So({mode:"visible",children:l},o.mode,0,null),l.return=o,o.child=l}function Tc(o,l,g,b){return b!==null&&Ku(b),io(l,o.child,null,g),o=Rc(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function Bs(o,l,g,b,E,N,Q){if(g)return l.flags&256?(l.flags&=-257,b=Ns(Error(d(422))),Tc(o,l,Q,b)):l.memoizedState!==null?(l.child=o.child,l.flags|=128,null):(N=b.fallback,E=l.mode,b=So({mode:"visible",children:b.children},E,0,null),N=Ei(N,E,Q,null),N.flags|=2,b.return=l,N.return=l,b.sibling=N,l.child=b,(l.mode&1)!==0&&io(l,o.child,null,Q),l.child.memoizedState=od(Q),l.memoizedState=po,N);if((l.mode&1)===0)return Tc(o,l,Q,null);if(tr(E))return b=ku(E).digest,N=Error(d(419)),b=Ns(N,b,void 0),Tc(o,l,Q,b);if(g=(Q&o.childLanes)!==0,qn||g){if(b=Jn,b!==null){switch(Q&-Q){case 4:E=2;break;case 16:E=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:E=32;break;case 536870912:E=268435456;break;default:E=0}E=(E&(b.suspendedLanes|Q))!==0?0:E,E!==0&&E!==N.retryLane&&(N.retryLane=E,Aa(o,E),sr(b,o,E,-1))}return Gc(),b=Ns(Error(d(421))),Tc(o,l,Q,b)}return Yo(E)?(l.flags|=128,l.child=o.child,l=PA.bind(null,o),Nf(E,l),null):(o=N.treeContext,ge&&(pa=Oi(E),Kr=l,bn=!0,ka=null,el=!1,o!==null&&(fa[ha++]=La,fa[ha++]=yi,fa[ha++]=Gi,La=o.id,yi=o.overflow,Gi=l)),l=Rc(l,b.children),l.flags|=4096,l)}function Ao(o,l,g){o.lanes|=l;var b=o.alternate;b!==null&&(b.lanes|=l),sc(o.return,l,g)}function Si(o,l,g,b,E){var N=o.memoizedState;N===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:b,tail:g,tailMode:E}:(N.isBackwards=l,N.rendering=null,N.renderingStartTime=0,N.last=b,N.tail=g,N.tailMode=E)}function Dc(o,l,g){var b=l.pendingProps,E=b.revealOrder,N=b.tail;if(Kn(o,l,b.children,g),b=rn.current,(b&2)!==0)b=b&1|2,l.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Ao(o,g,l);else if(o.tag===19)Ao(o,g,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}b&=1}if(hn(rn,b),(l.mode&1)===0)l.memoizedState=null;else switch(E){case"forwards":for(g=l.child,E=null;g!==null;)o=g.alternate,o!==null&&jn(o)===null&&(E=g),g=g.sibling;g=E,g===null?(E=l.child,l.child=null):(E=g.sibling,g.sibling=null),Si(l,!1,E,g,N);break;case"backwards":for(g=null,E=l.child,l.child=null;E!==null;){if(o=E.alternate,o!==null&&jn(o)===null){l.child=E;break}o=E.sibling,E.sibling=g,g=E,E=o}Si(l,!0,g,null,N);break;case"together":Si(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function vr(o,l){(l.mode&1)===0&&o!==null&&(o.alternate=null,l.alternate=null,l.flags|=2)}function Ir(o,l,g){if(o!==null&&(l.dependencies=o.dependencies),Is|=l.lanes,(g&l.childLanes)===0)return null;if(o!==null&&l.child!==o.child)throw Error(d(153));if(l.child!==null){for(o=l.child,g=_i(o,o.pendingProps),l.child=g,g.return=l;o.sibling!==null;)o=o.sibling,g=g.sibling=_i(o,o.pendingProps),g.return=l;g.sibling=null}return l.child}function Bt(o,l,g){switch(l.tag){case 3:nh(l),ao();break;case 5:nl(l);break;case 1:wr(l.type)&&Wl(l);break;case 4:ea(l,l.stateNode.containerInfo);break;case 10:Ju(l,l.type._context,l.memoizedProps.value);break;case 13:var b=l.memoizedState;if(b!==null)return b.dehydrated!==null?(hn(rn,rn.current&1),l.flags|=128,null):(g&l.child.childLanes)!==0?ld(o,l,g):(hn(rn,rn.current&1),o=Ir(o,l,g),o!==null?o.sibling:null);hn(rn,rn.current&1);break;case 19:if(b=(g&l.childLanes)!==0,(o.flags&128)!==0){if(b)return Dc(o,l,g);l.flags|=128}var E=l.memoizedState;if(E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),hn(rn,rn.current),b)break;return null;case 22:case 23:return l.lanes=0,th(o,l,g)}return Ir(o,l,g)}function na(o){o.flags|=4}function cd(o,l){if(o!==null&&o.child===l.child)return!0;if((l.flags&16)!==0)return!1;for(o=l.child;o!==null;){if((o.flags&12854)!==0||(o.subtreeFlags&12854)!==0)return!1;o=o.sibling}return!0}var Lc,ol,mo,qi;if(qe)Lc=function(o,l){for(var g=l.child;g!==null;){if(g.tag===5||g.tag===6)$(o,g.stateNode);else if(g.tag!==4&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===l)break;for(;g.sibling===null;){if(g.return===null||g.return===l)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},ol=function(){},mo=function(o,l,g,b,E){if(o=o.memoizedProps,o!==b){var N=l.stateNode,Q=$r(Zr.current);g=Re(N,g,o,b,E,Q),(l.updateQueue=g)&&na(l)}},qi=function(o,l,g,b){g!==b&&na(l)};else if(Dt){Lc=function(o,l,g,b){for(var E=l.child;E!==null;){if(E.tag===5){var N=E.stateNode;g&&b&&(N=Ai(N,E.type,E.memoizedProps,E)),$(o,N)}else if(E.tag===6)N=E.stateNode,g&&b&&(N=qa(N,E.memoizedProps,E)),$(o,N);else if(E.tag!==4){if(E.tag===22&&E.memoizedState!==null)N=E.child,N!==null&&(N.return=E),Lc(o,E,!0,!0);else if(E.child!==null){E.child.return=E,E=E.child;continue}}if(E===l)break;for(;E.sibling===null;){if(E.return===null||E.return===l)return;E=E.return}E.sibling.return=E.return,E=E.sibling}};var ah=function(o,l,g,b){for(var E=l.child;E!==null;){if(E.tag===5){var N=E.stateNode;g&&b&&(N=Ai(N,E.type,E.memoizedProps,E)),Va(o,N)}else if(E.tag===6)N=E.stateNode,g&&b&&(N=qa(N,E.memoizedProps,E)),Va(o,N);else if(E.tag!==4){if(E.tag===22&&E.memoizedState!==null)N=E.child,N!==null&&(N.return=E),ah(o,E,!0,!0);else if(E.child!==null){E.child.return=E,E=E.child;continue}}if(E===l)break;for(;E.sibling===null;){if(E.return===null||E.return===l)return;E=E.return}E.sibling.return=E.return,E=E.sibling}};ol=function(o,l){var g=l.stateNode;if(!cd(o,l)){o=g.containerInfo;var b=Qt(o);ah(b,l,!1,!1),g.pendingChildren=b,na(l),As(o,b)}},mo=function(o,l,g,b,E){var N=o.stateNode,Q=o.memoizedProps;if((o=cd(o,l))&&Q===b)l.stateNode=N;else{var fe=l.stateNode,we=$r(Zr.current),Ue=null;Q!==b&&(Ue=Re(fe,g,Q,b,E,we)),o&&Ue===null?l.stateNode=N:(N=ps(N,Ue,g,Q,b,l,o,fe),Ee(N,g,b,E,we)&&na(l),l.stateNode=N,o?na(l):Lc(N,l,!1,!1))}},qi=function(o,l,g,b){g!==b?(o=$r(Es.current),g=$r(Zr.current),l.stateNode=je(b,o,g,l),na(l)):l.stateNode=o.stateNode}}else ol=function(){},mo=function(){},qi=function(){};function go(o,l){if(!bn)switch(o.tailMode){case"hidden":l=o.tail;for(var g=null;l!==null;)l.alternate!==null&&(g=l),l=l.sibling;g===null?o.tail=null:g.sibling=null;break;case"collapsed":g=o.tail;for(var b=null;g!==null;)g.alternate!==null&&(b=g),g=g.sibling;b===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:b.sibling=null}}function yr(o){var l=o.alternate!==null&&o.alternate.child===o.child,g=0,b=0;if(l)for(var E=o.child;E!==null;)g|=E.lanes|E.childLanes,b|=E.subtreeFlags&14680064,b|=E.flags&14680064,E.return=o,E=E.sibling;else for(E=o.child;E!==null;)g|=E.lanes|E.childLanes,b|=E.subtreeFlags,b|=E.flags,E.return=o,E=E.sibling;return o.subtreeFlags|=b,o.childLanes=g,l}function ud(o,l,g){var b=l.pendingProps;switch(Yu(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yr(l),null;case 1:return wr(l.type)&&ro(),yr(l),null;case 3:return g=l.stateNode,Xi(),An(Pr),An(Ar),rl(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(o===null||o.child===null)&&(Zl(l)?na(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,ka!==null&&(jr(ka),ka=null))),ol(o,l),yr(l),null;case 5:Na(l),g=$r(Es.current);var E=l.type;if(o!==null&&l.stateNode!=null)mo(o,l,E,b,g),o.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!b){if(l.stateNode===null)throw Error(d(166));return yr(l),null}if(o=$r(Zr.current),Zl(l)){if(!ge)throw Error(d(175));o=Bu(l.stateNode,l.type,l.memoizedProps,g,o,l,!el),l.updateQueue=o,o!==null&&na(l)}else{var N=H(E,b,g,o,l);Lc(N,l,!1,!1),l.stateNode=N,Ee(N,E,b,g,o)&&na(l)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return yr(l),null;case 6:if(o&&l.stateNode!=null)qi(o,l,o.memoizedProps,b);else{if(typeof b!="string"&&l.stateNode===null)throw Error(d(166));if(o=$r(Es.current),g=$r(Zr.current),Zl(l)){if(!ge)throw Error(d(176));if(o=l.stateNode,g=l.memoizedProps,(b=Pu(o,g,l,!el))&&(E=Kr,E!==null))switch(E.tag){case 3:vA(E.stateNode.containerInfo,o,g,(E.mode&1)!==0);break;case 5:Bf(E.type,E.memoizedProps,E.stateNode,o,g,(E.mode&1)!==0)}b&&na(l)}else l.stateNode=je(b,o,g,l)}return yr(l),null;case 13:if(An(rn),b=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(bn&&pa!==null&&(l.mode&1)!==0&&(l.flags&128)===0)jf(),ao(),l.flags|=98560,E=!1;else if(E=Zl(l),b!==null&&b.dehydrated!==null){if(o===null){if(!E)throw Error(d(318));if(!ge)throw Error(d(344));if(E=l.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(d(317));Vo(E,l)}else ao(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;yr(l),E=!1}else ka!==null&&(jr(ka),ka=null),E=!0;if(!E)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=g,l):(g=b!==null,g!==(o!==null&&o.memoizedState!==null)&&g&&(l.child.flags|=8192,(l.mode&1)!==0&&(o===null||(rn.current&1)!==0?On===0&&(On=3):Gc())),l.updateQueue!==null&&(l.flags|=4),yr(l),null);case 4:return Xi(),ol(o,l),o===null&&ce(l.stateNode.containerInfo),yr(l),null;case 10:return ic(l.type._context),yr(l),null;case 17:return wr(l.type)&&ro(),yr(l),null;case 19:if(An(rn),E=l.memoizedState,E===null)return yr(l),null;if(b=(l.flags&128)!==0,N=E.rendering,N===null)if(b)go(E,!1);else{if(On!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(N=jn(o),N!==null){for(l.flags|=128,go(E,!1),o=N.updateQueue,o!==null&&(l.updateQueue=o,l.flags|=4),l.subtreeFlags=0,o=g,g=l.child;g!==null;)b=g,E=o,b.flags&=14680066,N=b.alternate,N===null?(b.childLanes=0,b.lanes=E,b.child=null,b.subtreeFlags=0,b.memoizedProps=null,b.memoizedState=null,b.updateQueue=null,b.dependencies=null,b.stateNode=null):(b.childLanes=N.childLanes,b.lanes=N.lanes,b.child=N.child,b.subtreeFlags=0,b.deletions=null,b.memoizedProps=N.memoizedProps,b.memoizedState=N.memoizedState,b.updateQueue=N.updateQueue,b.type=N.type,E=N.dependencies,b.dependencies=E===null?null:{lanes:E.lanes,firstContext:E.firstContext}),g=g.sibling;return hn(rn,rn.current&1|2),l.child}o=o.sibling}E.tail!==null&&Yn()>gd&&(l.flags|=128,b=!0,go(E,!1),l.lanes=4194304)}else{if(!b)if(o=jn(N),o!==null){if(l.flags|=128,b=!0,o=o.updateQueue,o!==null&&(l.updateQueue=o,l.flags|=4),go(E,!0),E.tail===null&&E.tailMode==="hidden"&&!N.alternate&&!bn)return yr(l),null}else 2*Yn()-E.renderingStartTime>gd&&g!==1073741824&&(l.flags|=128,b=!0,go(E,!1),l.lanes=4194304);E.isBackwards?(N.sibling=l.child,l.child=N):(o=E.last,o!==null?o.sibling=N:l.child=N,E.last=N)}return E.tail!==null?(l=E.tail,E.rendering=l,E.tail=l.sibling,E.renderingStartTime=Yn(),l.sibling=null,o=rn.current,hn(rn,b?o&1|2:o&1),l):(yr(l),null);case 22:case 23:return vd(),g=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==g&&(l.flags|=8192),g&&(l.mode&1)!==0?(aa&1073741824)!==0&&(yr(l),qe&&l.subtreeFlags&6&&(l.flags|=8192)):yr(l),null;case 24:return null;case 25:return null}throw Error(d(156,l.tag))}function kA(o,l){switch(Yu(l),l.tag){case 1:return wr(l.type)&&ro(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return Xi(),An(Pr),An(Ar),rl(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 5:return Na(l),null;case 13:if(An(rn),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(d(340));ao()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return An(rn),null;case 4:return Xi(),null;case 10:return ic(l.type._context),null;case 22:case 23:return vd(),null;case 24:return null;default:return null}}var ll=!1,nr=!1,ih=typeof WeakSet=="function"?WeakSet:Set,$e=null;function ni(o,l){var g=o.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(b){Yt(o,l,b)}else g.current=null}function Ps(o,l,g){try{g()}catch(b){Yt(o,l,b)}}var kc=!1;function cl(o,l){for(ie(o.containerInfo),$e=l;$e!==null;)if(o=$e,l=o.child,(o.subtreeFlags&1028)!==0&&l!==null)l.return=o,$e=l;else for(;$e!==null;){o=$e;try{var g=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var b=g.memoizedProps,E=g.memoizedState,N=o.stateNode,Q=N.getSnapshotBeforeUpdate(o.elementType===o.type?b:ta(o.type,b),E);N.__reactInternalSnapshotBeforeUpdate=Q}break;case 3:qe&&Ra(o.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(d(163))}}catch(fe){Yt(o,o.return,fe)}if(l=o.sibling,l!==null){l.return=o.return,$e=l;break}$e=o.return}return g=kc,kc=!1,g}function Er(o,l,g){var b=l.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var E=b=b.next;do{if((E.tag&o)===o){var N=E.destroy;E.destroy=void 0,N!==void 0&&Ps(l,g,N)}E=E.next}while(E!==b)}}function kn(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var g=l=l.next;do{if((g.tag&o)===o){var b=g.create;g.destroy=b()}g=g.next}while(g!==l)}}function dd(o){var l=o.ref;if(l!==null){var g=o.stateNode;switch(o.tag){case 5:o=le(g);break;default:o=g}typeof l=="function"?l(o):l.current=o}}function sh(o){var l=o.alternate;l!==null&&(o.alternate=null,sh(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&j(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function oh(o){return o.tag===5||o.tag===3||o.tag===4}function fd(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||oh(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Nc(o,l,g){var b=o.tag;if(b===5||b===6)o=o.stateNode,l?pn(g,o,l):pr(g,o);else if(b!==4&&(o=o.child,o!==null))for(Nc(o,l,g),o=o.sibling;o!==null;)Nc(o,l,g),o=o.sibling}function Bc(o,l,g){var b=o.tag;if(b===5||b===6)o=o.stateNode,l?et(g,o,l):zt(g,o);else if(b!==4&&(o=o.child,o!==null))for(Bc(o,l,g),o=o.sibling;o!==null;)Bc(o,l,g),o=o.sibling}var rr=null,Ia=!1;function ri(o,l,g){for(g=g.child;g!==null;)zn(o,l,g),g=g.sibling}function zn(o,l,g){if(Ta&&typeof Ta.onCommitFiberUnmount=="function")try{Ta.onCommitFiberUnmount(ql,g)}catch{}switch(g.tag){case 5:nr||ni(g,l);case 6:if(qe){var b=rr,E=Ia;rr=null,ri(o,l,g),rr=b,Ia=E,rr!==null&&(Ia?it(rr,g.stateNode):Xn(rr,g.stateNode))}else ri(o,l,g);break;case 18:qe&&rr!==null&&(Ia?jl(rr,g.stateNode):mA(rr,g.stateNode));break;case 4:qe?(b=rr,E=Ia,rr=g.stateNode.containerInfo,Ia=!0,ri(o,l,g),rr=b,Ia=E):(Dt&&(b=g.stateNode.containerInfo,E=Qt(b),Ii(b,E)),ri(o,l,g));break;case 0:case 11:case 14:case 15:if(!nr&&(b=g.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){E=b=b.next;do{var N=E,Q=N.destroy;N=N.tag,Q!==void 0&&((N&2)!==0||(N&4)!==0)&&Ps(g,l,Q),E=E.next}while(E!==b)}ri(o,l,g);break;case 1:if(!nr&&(ni(g,l),b=g.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=g.memoizedProps,b.state=g.memoizedState,b.componentWillUnmount()}catch(fe){Yt(g,l,fe)}ri(o,l,g);break;case 21:ri(o,l,g);break;case 22:g.mode&1?(nr=(b=nr)||g.memoizedState!==null,ri(o,l,g),nr=b):ri(o,l,g);break;default:ri(o,l,g)}}function ul(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var g=o.stateNode;g===null&&(g=o.stateNode=new ih),l.forEach(function(b){var E=hh.bind(null,o,b);g.has(b)||(g.add(b),b.then(E,E))})}}function va(o,l){var g=l.deletions;if(g!==null)for(var b=0;b<g.length;b++){var E=g[b];try{var N=o,Q=l;if(qe){var fe=Q;e:for(;fe!==null;){switch(fe.tag){case 5:rr=fe.stateNode,Ia=!1;break e;case 3:rr=fe.stateNode.containerInfo,Ia=!0;break e;case 4:rr=fe.stateNode.containerInfo,Ia=!0;break e}fe=fe.return}if(rr===null)throw Error(d(160));zn(N,Q,E),rr=null,Ia=!1}else zn(N,Q,E);var we=E.alternate;we!==null&&(we.return=null),E.return=null}catch(Ue){Yt(E,l,Ue)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)Ms(l,o),l=l.sibling}function Ms(o,l){var g=o.alternate,b=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(va(l,o),Oa(o),b&4){try{Er(3,o,o.return),kn(3,o)}catch(nt){Yt(o,o.return,nt)}try{Er(5,o,o.return)}catch(nt){Yt(o,o.return,nt)}}break;case 1:va(l,o),Oa(o),b&512&&g!==null&&ni(g,g.return);break;case 5:if(va(l,o),Oa(o),b&512&&g!==null&&ni(g,g.return),qe){if(o.flags&32){var E=o.stateNode;try{st(E)}catch(nt){Yt(o,o.return,nt)}}if(b&4&&(E=o.stateNode,E!=null)){var N=o.memoizedProps;if(g=g!==null?g.memoizedProps:N,b=o.type,l=o.updateQueue,o.updateQueue=null,l!==null)try{Nt(E,l,b,g,N,o)}catch(nt){Yt(o,o.return,nt)}}}break;case 6:if(va(l,o),Oa(o),b&4&&qe){if(o.stateNode===null)throw Error(d(162));E=o.stateNode,N=o.memoizedProps,g=g!==null?g.memoizedProps:N;try{Ye(E,g,N)}catch(nt){Yt(o,o.return,nt)}}break;case 3:if(va(l,o),Oa(o),b&4){if(qe&&ge&&g!==null&&g.memoizedState.isDehydrated)try{no(l.containerInfo)}catch(nt){Yt(o,o.return,nt)}if(Dt){E=l.containerInfo,N=l.pendingChildren;try{Ii(E,N)}catch(nt){Yt(o,o.return,nt)}}}break;case 4:if(va(l,o),Oa(o),b&4&&Dt){N=o.stateNode,E=N.containerInfo,N=N.pendingChildren;try{Ii(E,N)}catch(nt){Yt(o,o.return,nt)}}break;case 13:va(l,o),Oa(o),E=o.child,E.flags&8192&&(N=E.memoizedState!==null,E.stateNode.isHidden=N,!N||E.alternate!==null&&E.alternate.memoizedState!==null||(Ic=Yn())),b&4&&ul(o);break;case 22:var Q=g!==null&&g.memoizedState!==null;if(o.mode&1?(nr=(g=nr)||Q,va(l,o),nr=g):va(l,o),Oa(o),b&8192){if(g=o.memoizedState!==null,(o.stateNode.isHidden=g)&&!Q&&(o.mode&1)!==0)for($e=o,b=o.child;b!==null;){for(l=$e=b;$e!==null;){Q=$e;var fe=Q.child;switch(Q.tag){case 0:case 11:case 14:case 15:Er(4,Q,Q.return);break;case 1:ni(Q,Q.return);var we=Q.stateNode;if(typeof we.componentWillUnmount=="function"){var Ue=Q,Je=Q.return;try{var St=Ue;we.props=St.memoizedProps,we.state=St.memoizedState,we.componentWillUnmount()}catch(nt){Yt(Ue,Je,nt)}}break;case 5:ni(Q,Q.return);break;case 22:if(Q.memoizedState!==null){ar(l);continue}}fe!==null?(fe.return=Q,$e=fe):ar(l)}b=b.sibling}if(qe){e:if(b=null,qe)for(l=o;;){if(l.tag===5){if(b===null){b=l;try{E=l.stateNode,g?En(E):Ut(l.stateNode,l.memoizedProps)}catch(nt){Yt(o,o.return,nt)}}}else if(l.tag===6){if(b===null)try{N=l.stateNode,g?un(N):Ea(N,l.memoizedProps)}catch(nt){Yt(o,o.return,nt)}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;b===l&&(b=null),l=l.return}b===l&&(b=null),l.sibling.return=l.return,l=l.sibling}}}break;case 19:va(l,o),Oa(o),b&4&&ul(o);break;case 21:break;default:va(l,o),Oa(o)}}function Oa(o){var l=o.flags;if(l&2){try{if(qe){e:{for(var g=o.return;g!==null;){if(oh(g)){var b=g;break e}g=g.return}throw Error(d(160))}switch(b.tag){case 5:var E=b.stateNode;b.flags&32&&(st(E),b.flags&=-33);var N=fd(o);Bc(o,N,E);break;case 3:case 4:var Q=b.stateNode.containerInfo,fe=fd(o);Nc(o,fe,Q);break;default:throw Error(d(161))}}}catch(we){Yt(o,o.return,we)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function NA(o,l,g){$e=o,lh(o)}function lh(o,l,g){for(var b=(o.mode&1)!==0;$e!==null;){var E=$e,N=E.child;if(E.tag===22&&b){var Q=E.memoizedState!==null||ll;if(!Q){var fe=E.alternate,we=fe!==null&&fe.memoizedState!==null||nr;fe=ll;var Ue=nr;if(ll=Q,(nr=we)&&!Ue)for($e=E;$e!==null;)Q=$e,we=Q.child,Q.tag===22&&Q.memoizedState!==null?tt(E):we!==null?(we.return=Q,$e=we):tt(E);for(;N!==null;)$e=N,lh(N),N=N.sibling;$e=E,ll=fe,nr=Ue}zs(o)}else(E.subtreeFlags&8772)!==0&&N!==null?(N.return=E,$e=N):zs(o)}}function zs(o){for(;$e!==null;){var l=$e;if((l.flags&8772)!==0){var g=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:nr||kn(5,l);break;case 1:var b=l.stateNode;if(l.flags&4&&!nr)if(g===null)b.componentDidMount();else{var E=l.elementType===l.type?g.memoizedProps:ta(l.type,g.memoizedProps);b.componentDidUpdate(E,g.memoizedState,b.__reactInternalSnapshotBeforeUpdate)}var N=l.updateQueue;N!==null&&Yf(l,N,b);break;case 3:var Q=l.updateQueue;if(Q!==null){if(g=null,l.child!==null)switch(l.child.tag){case 5:g=le(l.child.stateNode);break;case 1:g=l.child.stateNode}Yf(l,Q,g)}break;case 5:var fe=l.stateNode;g===null&&l.flags&4&&dt(fe,l.type,l.memoizedProps,l);break;case 6:break;case 4:break;case 12:break;case 13:if(ge&&l.memoizedState===null){var we=l.alternate;if(we!==null){var Ue=we.memoizedState;if(Ue!==null){var Je=Ue.dehydrated;Je!==null&&mi(Je)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(d(163))}nr||l.flags&512&&dd(l)}catch(St){Yt(l,l.return,St)}}if(l===o){$e=null;break}if(g=l.sibling,g!==null){g.return=l.return,$e=g;break}$e=l.return}}function ar(o){for(;$e!==null;){var l=$e;if(l===o){$e=null;break}var g=l.sibling;if(g!==null){g.return=l.return,$e=g;break}$e=l.return}}function tt(o){for(;$e!==null;){var l=$e;try{switch(l.tag){case 0:case 11:case 15:var g=l.return;try{kn(4,l)}catch(we){Yt(l,g,we)}break;case 1:var b=l.stateNode;if(typeof b.componentDidMount=="function"){var E=l.return;try{b.componentDidMount()}catch(we){Yt(l,E,we)}}var N=l.return;try{dd(l)}catch(we){Yt(l,N,we)}break;case 5:var Q=l.return;try{dd(l)}catch(we){Yt(l,Q,we)}}}catch(we){Yt(l,l.return,we)}if(l===o){$e=null;break}var fe=l.sibling;if(fe!==null){fe.return=l.return,$e=fe;break}$e=l.return}}var ra=0,Or=1,Pc=2,Mc=3,zc=4;if(typeof Symbol=="function"&&Symbol.for){var dl=Symbol.for;ra=dl("selector.component"),Or=dl("selector.has_pseudo_class"),Pc=dl("selector.role"),Mc=dl("selector.test_id"),zc=dl("selector.text")}function hd(o){var l=k(o);if(l!=null){if(typeof l.memoizedProps["data-testname"]!="string")throw Error(d(364));return l}if(o=Ce(o),o===null)throw Error(d(362));return o.stateNode.current}function Fn(o,l){switch(l.$$typeof){case ra:if(o.type===l.value)return!0;break;case Or:e:{l=l.value,o=[o,0];for(var g=0;g<o.length;){var b=o[g++],E=o[g++],N=l[E];if(b.tag!==5||!Xe(b)){for(;N!=null&&Fn(b,N);)E++,N=l[E];if(E===l.length){l=!0;break e}else for(b=b.child;b!==null;)o.push(b,E),b=b.sibling}}l=!1}return l;case Pc:if(o.tag===5&&Ie(o.stateNode,l.value))return!0;break;case zc:if((o.tag===5||o.tag===6)&&(o=ze(o),o!==null&&0<=o.indexOf(l.value)))return!0;break;case Mc:if(o.tag===5&&(o=o.memoizedProps["data-testname"],typeof o=="string"&&o.toLowerCase()===l.value.toLowerCase()))return!0;break;default:throw Error(d(365))}return!1}function pd(o){switch(o.$$typeof){case ra:return"<"+(K(o.value)||"Unknown")+">";case Or:return":has("+(pd(o)||"")+")";case Pc:return'[role="'+o.value+'"]';case zc:return'"'+o.value+'"';case Mc:return'[data-testname="'+o.value+'"]';default:throw Error(d(365))}}function ch(o,l){var g=[];o=[o,0];for(var b=0;b<o.length;){var E=o[b++],N=o[b++],Q=l[N];if(E.tag!==5||!Xe(E)){for(;Q!=null&&Fn(E,Q);)N++,Q=l[N];if(N===l.length)g.push(E);else for(E=E.child;E!==null;)o.push(E,N),E=E.sibling}}return g}function Ad(o,l){if(!ye)throw Error(d(363));o=hd(o),o=ch(o,l),l=[],o=Array.from(o);for(var g=0;g<o.length;){var b=o[g++];if(b.tag===5)Xe(b)||l.push(b.stateNode);else for(b=b.child;b!==null;)o.push(b),b=b.sibling}return l}var uh=Math.ceil,Ki=h.ReactCurrentDispatcher,Ji=h.ReactCurrentOwner,Nn=h.ReactCurrentBatchConfig,It=0,Jn=null,In=null,ir=0,aa=0,Fs=Ka(0),On=0,fl=null,Is=0,Fc=0,md=0,hl=null,Ur=null,Ic=0,gd=1/0,ai=null;function vo(){gd=Yn()+500}var Oc=!1,pl=null,Zi=null,xr=!1,br=null,yo=0,Os=0,Uc=null,jc=-1,Al=0;function gn(){return(It&6)!==0?Yn():jc!==-1?jc:jc=Yn()}function Ci(o){return(o.mode&1)===0?1:(It&2)!==0&&ir!==0?ir&-ir:DA.transition!==null?(Al===0&&(Al=xs()),Al):(o=$t,o!==0?o:de())}function sr(o,l,g,b){if(50<Os)throw Os=0,Uc=null,Error(d(185));Jo(o,g,b),((It&2)===0||o!==Jn)&&(o===Jn&&((It&2)===0&&(Fc|=g),On===4&&Gr(o,ir)),Wn(o,b),g===1&&It===0&&(l.mode&1)===0&&(vo(),Kl&&Ja()))}function Wn(o,l){var g=o.callbackNode;bA(o,l);var b=Vl(o,o===Jn?ir:0);if(b===0)g!==null&&zf(g),o.callbackNode=null,o.callbackPriority=0;else if(l=b&-b,o.callbackPriority!==l){if(g!=null&&zf(g),l===1)o.tag===0?Ff(ii.bind(null,o)):Xu(ii.bind(null,o)),U?Z(function(){(It&6)===0&&Ja()}):ju(Gu,Ja),g=null;else{switch(Mf(b)){case 1:g=Gu;break;case 4:g=_A;break;case 16:g=Hu;break;case 536870912:g=EA;break;default:g=Hu}g=Ah(g,ml.bind(null,o))}o.callbackPriority=l,o.callbackNode=g}}function ml(o,l){if(jc=-1,Al=0,(It&6)!==0)throw Error(d(327));var g=o.callbackNode;if(Tn()&&o.callbackNode!==g)return null;var b=Vl(o,o===Jn?ir:0);if(b===0)return null;if((b&30)!==0||(b&o.expiredLanes)!==0||l)l=bo(o,b);else{l=b;var E=It;It|=2;var N=$i();(Jn!==o||ir!==l)&&(ai=null,vo(),Us(o,l));do try{BA();break}catch(fe){dh(o,fe)}while(!0);ac(),Ki.current=N,It=E,In!==null?l=0:(Jn=null,ir=0,l=On)}if(l!==0){if(l===2&&(E=Ou(o),E!==0&&(b=E,l=xo(o,E))),l===1)throw g=fl,Us(o,0),Gr(o,b),Wn(o,Yn()),g;if(l===6)Gr(o,b);else{if(E=o.current.alternate,(b&30)===0&&!ya(E)&&(l=bo(o,b),l===2&&(N=Ou(o),N!==0&&(b=N,l=xo(o,N))),l===1))throw g=fl,Us(o,0),Gr(o,b),Wn(o,Yn()),g;switch(o.finishedWork=E,o.finishedLanes=b,l){case 0:case 1:throw Error(d(345));case 2:js(o,Ur,ai);break;case 3:if(Gr(o,b),(b&130023424)===b&&(l=Ic+500-Yn(),10<l)){if(Vl(o,0)!==0)break;if(E=o.suspendedLanes,(E&b)!==b){gn(),o.pingedLanes|=o.suspendedLanes&E;break}o.timeoutHandle=gt(js.bind(null,o,Ur,ai),l);break}js(o,Ur,ai);break;case 4:if(Gr(o,b),(b&4194240)===b)break;for(l=o.eventTimes,E=-1;0<b;){var Q=31-Mr(b);N=1<<Q,Q=l[Q],Q>E&&(E=Q),b&=~N}if(b=E,b=Yn()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*uh(b/1960))-b,10<b){o.timeoutHandle=gt(js.bind(null,o,Ur,ai),b);break}js(o,Ur,ai);break;case 5:js(o,Ur,ai);break;default:throw Error(d(329))}}}return Wn(o,Yn()),o.callbackNode===g?ml.bind(null,o):null}function xo(o,l){var g=hl;return o.current.memoizedState.isDehydrated&&(Us(o,l).flags|=256),o=bo(o,l),o!==2&&(l=Ur,Ur=g,l!==null&&jr(l)),o}function jr(o){Ur===null?Ur=o:Ur.push.apply(Ur,o)}function ya(o){for(var l=o;;){if(l.flags&16384){var g=l.updateQueue;if(g!==null&&(g=g.stores,g!==null))for(var b=0;b<g.length;b++){var E=g[b],N=E.getSnapshot;E=E.value;try{if(!Da(N(),E))return!1}catch{return!1}}}if(g=l.child,l.subtreeFlags&16384&&g!==null)g.return=l,l=g;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Gr(o,l){for(l&=~md,l&=~Fc,o.suspendedLanes|=l,o.pingedLanes&=~l,o=o.expirationTimes;0<l;){var g=31-Mr(l),b=1<<g;o[g]=-1,l&=~b}}function ii(o){if((It&6)!==0)throw Error(d(327));Tn();var l=Vl(o,0);if((l&1)===0)return Wn(o,Yn()),null;var g=bo(o,l);if(o.tag!==0&&g===2){var b=Ou(o);b!==0&&(l=b,g=xo(o,b))}if(g===1)throw g=fl,Us(o,0),Gr(o,l),Wn(o,Yn()),g;if(g===6)throw Error(d(345));return o.finishedWork=o.current.alternate,o.finishedLanes=l,js(o,Ur,ai),Wn(o,Yn()),null}function si(o){br!==null&&br.tag===0&&(It&6)===0&&Tn();var l=It;It|=1;var g=Nn.transition,b=$t;try{if(Nn.transition=null,$t=1,o)return o()}finally{$t=b,Nn.transition=g,It=l,(It&6)===0&&Ja()}}function vd(){aa=Fs.current,An(Fs)}function Us(o,l){o.finishedWork=null,o.finishedLanes=0;var g=o.timeoutHandle;if(g!==ht&&(o.timeoutHandle=ht,ft(g)),In!==null)for(g=In.return;g!==null;){var b=g;switch(Yu(b),b.tag){case 1:b=b.type.childContextTypes,b!=null&&ro();break;case 3:Xi(),An(Pr),An(Ar),rl();break;case 5:Na(b);break;case 4:Xi();break;case 13:An(rn);break;case 19:An(rn);break;case 10:ic(b.type._context);break;case 22:case 23:vd()}g=g.return}if(Jn=o,In=o=_i(o.current,null),ir=aa=l,On=0,fl=null,md=Fc=Is=0,Ur=hl=null,Hi!==null){for(l=0;l<Hi.length;l++)if(g=Hi[l],b=g.interleaved,b!==null){g.interleaved=null;var E=b.next,N=g.pending;if(N!==null){var Q=N.next;N.next=E,b.next=Q}g.pending=b}Hi=null}return o}function dh(o,l){do{var g=In;try{if(ac(),mr.current=fo,xi){for(var b=mn.memoizedState;b!==null;){var E=b.queue;E!==null&&(E.pending=null),b=b.next}xi=!1}if(gr=0,Hn=Sn=mn=null,Qi=!1,zr=0,Ji.current=null,g===null||g.return===null){On=1,fl=l,In=null;break}e:{var N=o,Q=g.return,fe=g,we=l;if(l=ir,fe.flags|=32768,we!==null&&typeof we=="object"&&typeof we.then=="function"){var Ue=we,Je=fe,St=Je.tag;if((Je.mode&1)===0&&(St===0||St===11||St===15)){var nt=Je.alternate;nt?(Je.updateQueue=nt.updateQueue,Je.memoizedState=nt.memoizedState,Je.lanes=nt.lanes):(Je.updateQueue=null,Je.memoizedState=null)}var vn=dn(Q);if(vn!==null){vn.flags&=-257,sl(vn,Q,fe,N,l),vn.mode&1&&Jf(N,Ue,l),l=vn,we=Ue;var Pt=l.updateQueue;if(Pt===null){var Vt=new Set;Vt.add(we),l.updateQueue=Vt}else Pt.add(we);break e}else{if((l&1)===0){Jf(N,Ue,l),Gc();break e}we=Error(d(426))}}else if(bn&&fe.mode&1){var Ri=dn(Q);if(Ri!==null){(Ri.flags&65536)===0&&(Ri.flags|=256),sl(Ri,Q,fe,N,l),Ku(ks(we,fe));break e}}N=we=ks(we,fe),On!==4&&(On=2),hl===null?hl=[N]:hl.push(N),N=Q;do{switch(N.tag){case 3:N.flags|=65536,l&=-l,N.lanes|=l;var xe=Vi(N,we,l);Qf(N,xe);break e;case 1:fe=we;var ue=N.type,Te=N.stateNode;if((N.flags&128)===0&&(typeof ue.getDerivedStateFromError=="function"||Te!==null&&typeof Te.componentDidCatch=="function"&&(Zi===null||!Zi.has(Te)))){N.flags|=65536,l&=-l,N.lanes|=l;var Ze=Fr(N,fe,l);Qf(N,Ze);break e}}N=N.return}while(N!==null)}fh(g)}catch(pt){l=pt,In===g&&g!==null&&(In=g=g.return);continue}break}while(!0)}function $i(){var o=Ki.current;return Ki.current=fo,o===null?fo:o}function Gc(){(On===0||On===3||On===2)&&(On=4),Jn===null||(Is&268435455)===0&&(Fc&268435455)===0||Gr(Jn,ir)}function bo(o,l){var g=It;It|=2;var b=$i();(Jn!==o||ir!==l)&&(ai=null,Us(o,l));do try{Hc();break}catch(E){dh(o,E)}while(!0);if(ac(),It=g,Ki.current=b,In!==null)throw Error(d(261));return Jn=null,ir=0,On}function Hc(){for(;In!==null;)Wc(In)}function BA(){for(;In!==null&&!CA();)Wc(In)}function Wc(o){var l=ph(o.alternate,o,aa);o.memoizedProps=o.pendingProps,l===null?fh(o):In=l,Ji.current=null}function fh(o){var l=o;do{var g=l.alternate;if(o=l.return,(l.flags&32768)===0){if(g=ud(g,l,aa),g!==null){In=g;return}}else{if(g=kA(g,l),g!==null){g.flags&=32767,In=g;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{On=6,In=null;return}}if(l=l.sibling,l!==null){In=l;return}In=l=o}while(l!==null);On===0&&(On=5)}function js(o,l,g){var b=$t,E=Nn.transition;try{Nn.transition=null,$t=1,Gs(o,l,g,b)}finally{Nn.transition=E,$t=b}return null}function Gs(o,l,g,b){do Tn();while(br!==null);if((It&6)!==0)throw Error(d(327));g=o.finishedWork;var E=o.finishedLanes;if(g===null)return null;if(o.finishedWork=null,o.finishedLanes=0,g===o.current)throw Error(d(177));o.callbackNode=null,o.callbackPriority=0;var N=g.lanes|g.childLanes;if(SA(o,N),o===Jn&&(In=Jn=null,ir=0),(g.subtreeFlags&2064)===0&&(g.flags&2064)===0||xr||(xr=!0,Ah(Hu,function(){return Tn(),null})),N=(g.flags&15990)!==0,(g.subtreeFlags&15990)!==0||N){N=Nn.transition,Nn.transition=null;var Q=$t;$t=1;var fe=It;It|=4,Ji.current=null,cl(o,g),Ms(g,o),ae(o.containerInfo),o.current=g,NA(g),wA(),It=fe,$t=Q,Nn.transition=N}else o.current=g;if(xr&&(xr=!1,br=o,yo=E),N=o.pendingLanes,N===0&&(Zi=null),RA(g.stateNode),Wn(o,Yn()),l!==null)for(b=o.onRecoverableError,g=0;g<l.length;g++)E=l[g],b(E.value,{componentStack:E.stack,digest:E.digest});if(Oc)throw Oc=!1,o=pl,pl=null,o;return(yo&1)!==0&&o.tag!==0&&Tn(),N=o.pendingLanes,(N&1)!==0?o===Uc?Os++:(Os=0,Uc=o):Os=0,Ja(),null}function Tn(){if(br!==null){var o=Mf(yo),l=Nn.transition,g=$t;try{if(Nn.transition=null,$t=16>o?16:o,br===null)var b=!1;else{if(o=br,br=null,yo=0,(It&6)!==0)throw Error(d(331));var E=It;for(It|=4,$e=o.current;$e!==null;){var N=$e,Q=N.child;if(($e.flags&16)!==0){var fe=N.deletions;if(fe!==null){for(var we=0;we<fe.length;we++){var Ue=fe[we];for($e=Ue;$e!==null;){var Je=$e;switch(Je.tag){case 0:case 11:case 15:Er(8,Je,N)}var St=Je.child;if(St!==null)St.return=Je,$e=St;else for(;$e!==null;){Je=$e;var nt=Je.sibling,vn=Je.return;if(sh(Je),Je===Ue){$e=null;break}if(nt!==null){nt.return=vn,$e=nt;break}$e=vn}}}var Pt=N.alternate;if(Pt!==null){var Vt=Pt.child;if(Vt!==null){Pt.child=null;do{var Ri=Vt.sibling;Vt.sibling=null,Vt=Ri}while(Vt!==null)}}$e=N}}if((N.subtreeFlags&2064)!==0&&Q!==null)Q.return=N,$e=Q;else e:for(;$e!==null;){if(N=$e,(N.flags&2048)!==0)switch(N.tag){case 0:case 11:case 15:Er(9,N,N.return)}var xe=N.sibling;if(xe!==null){xe.return=N.return,$e=xe;break e}$e=N.return}}var ue=o.current;for($e=ue;$e!==null;){Q=$e;var Te=Q.child;if((Q.subtreeFlags&2064)!==0&&Te!==null)Te.return=Q,$e=Te;else e:for(Q=ue;$e!==null;){if(fe=$e,(fe.flags&2048)!==0)try{switch(fe.tag){case 0:case 11:case 15:kn(9,fe)}}catch(pt){Yt(fe,fe.return,pt)}if(fe===Q){$e=null;break e}var Ze=fe.sibling;if(Ze!==null){Ze.return=fe.return,$e=Ze;break e}$e=fe.return}}if(It=E,Ja(),Ta&&typeof Ta.onPostCommitFiberRoot=="function")try{Ta.onPostCommitFiberRoot(ql,o)}catch{}b=!0}return b}finally{$t=g,Nn.transition=l}}return!1}function ia(o,l,g){l=ks(g,l),l=Vi(o,l,1),o=Wi(o,l,1),l=gn(),o!==null&&(Jo(o,1,l),Wn(o,l))}function Yt(o,l,g){if(o.tag===3)ia(o,o,g);else for(;l!==null;){if(l.tag===3){ia(l,o,g);break}else if(l.tag===1){var b=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(Zi===null||!Zi.has(b))){o=ks(g,o),o=Fr(l,o,1),l=Wi(l,o,1),o=gn(),l!==null&&(Jo(l,1,o),Wn(l,o));break}}l=l.return}}function es(o,l,g){var b=o.pingCache;b!==null&&b.delete(l),l=gn(),o.pingedLanes|=o.suspendedLanes&g,Jn===o&&(ir&g)===g&&(On===4||On===3&&(ir&130023424)===ir&&500>Yn()-Ic?Us(o,0):md|=g),Wn(o,l)}function wi(o,l){l===0&&((o.mode&1)===0?l=1:(l=Yl,Yl<<=1,(Yl&130023424)===0&&(Yl=4194304)));var g=gn();o=Aa(o,l),o!==null&&(Jo(o,l,g),Wn(o,g))}function PA(o){var l=o.memoizedState,g=0;l!==null&&(g=l.retryLane),wi(o,g)}function hh(o,l){var g=0;switch(o.tag){case 13:var b=o.stateNode,E=o.memoizedState;E!==null&&(g=E.retryLane);break;case 19:b=o.stateNode;break;default:throw Error(d(314))}b!==null&&b.delete(l),wi(o,g)}var ph;ph=function(o,l,g){if(o!==null)if(o.memoizedProps!==l.pendingProps||Pr.current)qn=!0;else{if((o.lanes&g)===0&&(l.flags&128)===0)return qn=!1,Bt(o,l,g);qn=(o.flags&131072)!==0}else qn=!1,bn&&(l.flags&1048576)!==0&&$o(l,Jl,l.index);switch(l.lanes=0,l.tag){case 2:var b=l.type;vr(o,l),o=l.pendingProps;var E=ys(l,Ar.current);ws(l,g),E=uc(null,l,b,o,E,g);var N=co();return l.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,wr(b)?(N=!0,Wl(l)):N=!1,l.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,ei(l),E.updater=bi,l.stateNode=E,E._reactInternals=l,al(l,b,o,g),l=Ec(null,l,b,!0,N,g)):(l.tag=0,bn&&N&&Qu(l),Kn(null,l,E,g),l=l.child),l;case 16:b=l.elementType;e:{switch(vr(o,l),o=l.pendingProps,E=b._init,b=E(b._payload),l.type=b,E=l.tag=yd(b),o=ta(b,o),E){case 0:l=sd(null,l,b,o,g);break e;case 1:l=_c(null,l,b,o,g);break e;case 11:l=Zf(null,l,b,o,g);break e;case 14:l=$f(null,l,b,ta(b.type,o),g);break e}throw Error(d(306,b,""))}return l;case 0:return b=l.type,E=l.pendingProps,E=l.elementType===b?E:ta(b,E),sd(o,l,b,E,g);case 1:return b=l.type,E=l.pendingProps,E=l.elementType===b?E:ta(b,E),_c(o,l,b,E,g);case 3:e:{if(nh(l),o===null)throw Error(d(387));b=l.pendingProps,N=l.memoizedState,E=N.element,oc(o,l),oo(l,b,null,g);var Q=l.memoizedState;if(b=Q.element,ge&&N.isDehydrated)if(N={element:b,isDehydrated:!1,cache:Q.cache,pendingSuspenseBoundaries:Q.pendingSuspenseBoundaries,transitions:Q.transitions},l.updateQueue.baseState=N,l.memoizedState=N,l.flags&256){E=ks(Error(d(423)),l),l=rh(o,l,b,g,E);break e}else if(b!==E){E=ks(Error(d(424)),l),l=rh(o,l,b,g,E);break e}else for(ge&&(pa=Nu(l.stateNode.containerInfo),Kr=l,bn=!0,ka=null,el=!1),g=Wf(l,null,b,g),l.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(ao(),b===E){l=Ir(o,l,g);break e}Kn(o,l,b,g)}l=l.child}return l;case 5:return nl(l),o===null&&qu(l),b=l.type,E=l.pendingProps,N=o!==null?o.memoizedProps:null,Q=E.children,Ne(b,E)?Q=null:N!==null&&Ne(b,N)&&(l.flags|=32),wc(o,l),Kn(o,l,Q,g),l.child;case 6:return o===null&&qu(l),null;case 13:return ld(o,l,g);case 4:return ea(l,l.stateNode.containerInfo),b=l.pendingProps,o===null?l.child=io(l,null,b,g):Kn(o,l,b,g),l.child;case 11:return b=l.type,E=l.pendingProps,E=l.elementType===b?E:ta(b,E),Zf(o,l,b,E,g);case 7:return Kn(o,l,l.pendingProps,g),l.child;case 8:return Kn(o,l,l.pendingProps.children,g),l.child;case 12:return Kn(o,l,l.pendingProps.children,g),l.child;case 10:e:{if(b=l.type._context,E=l.pendingProps,N=l.memoizedProps,Q=E.value,Ju(l,b,Q),N!==null)if(Da(N.value,Q)){if(N.children===E.children&&!Pr.current){l=Ir(o,l,g);break e}}else for(N=l.child,N!==null&&(N.return=l);N!==null;){var fe=N.dependencies;if(fe!==null){Q=N.child;for(var we=fe.firstContext;we!==null;){if(we.context===b){if(N.tag===1){we=ma(-1,g&-g),we.tag=2;var Ue=N.updateQueue;if(Ue!==null){Ue=Ue.shared;var Je=Ue.pending;Je===null?we.next=we:(we.next=Je.next,Je.next=we),Ue.pending=we}}N.lanes|=g,we=N.alternate,we!==null&&(we.lanes|=g),sc(N.return,g,l),fe.lanes|=g;break}we=we.next}}else if(N.tag===10)Q=N.type===l.type?null:N.child;else if(N.tag===18){if(Q=N.return,Q===null)throw Error(d(341));Q.lanes|=g,fe=Q.alternate,fe!==null&&(fe.lanes|=g),sc(Q,g,l),Q=N.sibling}else Q=N.child;if(Q!==null)Q.return=N;else for(Q=N;Q!==null;){if(Q===l){Q=null;break}if(N=Q.sibling,N!==null){N.return=Q.return,Q=N;break}Q=Q.return}N=Q}Kn(o,l,E.children,g),l=l.child}return l;case 9:return E=l.type,b=l.pendingProps.children,ws(l,g),E=Jr(E),b=b(E),l.flags|=1,Kn(o,l,b,g),l.child;case 14:return b=l.type,E=ta(b,l.pendingProps),E=ta(b.type,E),$f(o,l,b,E,g);case 15:return eh(o,l,l.type,l.pendingProps,g);case 17:return b=l.type,E=l.pendingProps,E=l.elementType===b?E:ta(b,E),vr(o,l),l.tag=1,wr(b)?(o=!0,Wl(l)):o=!1,ws(l,g),xc(l,b,E),al(l,b,E,g),Ec(null,l,b,!0,o,g);case 19:return Dc(o,l,g);case 22:return th(o,l,g)}throw Error(d(156,l.tag))};function Ah(o,l){return ju(o,l)}function MA(o,l,g,b){this.tag=o,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sa(o,l,g,b){return new MA(o,l,g,b)}function Xc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function yd(o){if(typeof o=="function")return Xc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===R)return 11;if(o===P)return 14}return 2}function _i(o,l){var g=o.alternate;return g===null?(g=sa(o.tag,l,o.key,o.mode),g.elementType=o.elementType,g.type=o.type,g.stateNode=o.stateNode,g.alternate=o,o.alternate=g):(g.pendingProps=l,g.type=o.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=o.flags&14680064,g.childLanes=o.childLanes,g.lanes=o.lanes,g.child=o.child,g.memoizedProps=o.memoizedProps,g.memoizedState=o.memoizedState,g.updateQueue=o.updateQueue,l=o.dependencies,g.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},g.sibling=o.sibling,g.index=o.index,g.ref=o.ref,g}function gl(o,l,g,b,E,N){var Q=2;if(b=o,typeof o=="function")Xc(o)&&(Q=1);else if(typeof o=="string")Q=5;else e:switch(o){case A:return Ei(g.children,E,N,l);case y:Q=8,E|=8;break;case x:return o=sa(12,g,l,E|2),o.elementType=x,o.lanes=N,o;case T:return o=sa(13,g,l,E),o.elementType=T,o.lanes=N,o;case D:return o=sa(19,g,l,E),o.elementType=D,o.lanes=N,o;case O:return So(g,E,N,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case S:Q=10;break e;case C:Q=9;break e;case R:Q=11;break e;case P:Q=14;break e;case M:Q=16,b=null;break e}throw Error(d(130,o==null?o:typeof o,""))}return l=sa(Q,g,l,E),l.elementType=o,l.type=b,l.lanes=N,l}function Ei(o,l,g,b){return o=sa(7,o,b,l),o.lanes=g,o}function So(o,l,g,b){return o=sa(22,o,b,l),o.elementType=O,o.lanes=g,o.stateNode={isHidden:!1},o}function vl(o,l,g){return o=sa(6,o,null,l),o.lanes=g,o}function xd(o,l,g){return l=sa(4,o.children!==null?o.children:[],o.key,l),l.lanes=g,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function zA(o,l,g,b,E){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ht,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uu(0),this.expirationTimes=Uu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uu(0),this.identifierPrefix=b,this.onRecoverableError=E,ge&&(this.mutableSourceEagerHydrationData=null)}function mh(o,l,g,b,E,N,Q,fe,we){return o=new zA(o,l,g,fe,we),l===1?(l=1,N===!0&&(l|=8)):l=0,N=sa(3,null,null,l),o.current=N,N.stateNode=o,N.memoizedState={element:b,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},ei(N),o}function gh(o){if(!o)return Ui;o=o._reactInternals;e:{if(Y(o)!==o||o.tag!==1)throw Error(d(170));var l=o;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(wr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(d(171))}if(o.tag===1){var g=o.type;if(wr(g))return Iu(o,g,l)}return l}function bd(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(d(188)):(o=Object.keys(o).join(","),Error(d(268,o)));return o=G(l),o===null?null:o.stateNode}function yl(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var g=o.retryLane;o.retryLane=g!==0&&g<l?g:l}}function Qc(o,l){yl(o,l),(o=o.alternate)&&yl(o,l)}function vh(o){return o=G(o),o===null?null:o.stateNode}function Co(){return null}return n.attemptContinuousHydration=function(o){if(o.tag===13){var l=Aa(o,134217728);if(l!==null){var g=gn();sr(l,o,134217728,g)}Qc(o,134217728)}},n.attemptDiscreteHydration=function(o){if(o.tag===13){var l=Aa(o,1);if(l!==null){var g=gn();sr(l,o,1,g)}Qc(o,1)}},n.attemptHydrationAtCurrentPriority=function(o){if(o.tag===13){var l=Ci(o),g=Aa(o,l);if(g!==null){var b=gn();sr(g,o,l,b)}Qc(o,l)}},n.attemptSynchronousHydration=function(o){switch(o.tag){case 3:var l=o.stateNode;if(l.current.memoizedState.isDehydrated){var g=Ko(l.pendingLanes);g!==0&&(bs(l,g|1),Wn(l,Yn()),(It&6)===0&&(vo(),Ja()))}break;case 13:si(function(){var b=Aa(o,1);if(b!==null){var E=gn();sr(b,o,1,E)}}),Qc(o,1)}},n.batchedUpdates=function(o,l){var g=It;It|=1;try{return o(l)}finally{It=g,It===0&&(vo(),Kl&&Ja())}},n.createComponentSelector=function(o){return{$$typeof:ra,value:o}},n.createContainer=function(o,l,g,b,E,N,Q){return mh(o,l,!1,null,g,b,E,N,Q)},n.createHasPseudoClassSelector=function(o){return{$$typeof:Or,value:o}},n.createHydrationContainer=function(o,l,g,b,E,N,Q,fe,we){return o=mh(g,b,!0,o,E,N,Q,fe,we),o.context=gh(null),g=o.current,b=gn(),E=Ci(g),N=ma(b,E),N.callback=l??null,Wi(g,N,E),o.current.lanes=E,Jo(o,E,b),Wn(o,b),o},n.createPortal=function(o,l,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:o,containerInfo:l,implementation:g}},n.createRoleSelector=function(o){return{$$typeof:Pc,value:o}},n.createTestNameSelector=function(o){return{$$typeof:Mc,value:o}},n.createTextSelector=function(o){return{$$typeof:zc,value:o}},n.deferredUpdates=function(o){var l=$t,g=Nn.transition;try{return Nn.transition=null,$t=16,o()}finally{$t=l,Nn.transition=g}},n.discreteUpdates=function(o,l,g,b,E){var N=$t,Q=Nn.transition;try{return Nn.transition=null,$t=1,o(l,g,b,E)}finally{$t=N,Nn.transition=Q,It===0&&vo()}},n.findAllNodes=Ad,n.findBoundingRects=function(o,l){if(!ye)throw Error(d(363));l=Ad(o,l),o=[];for(var g=0;g<l.length;g++)o.push(me(l[g]));for(l=o.length-1;0<l;l--){g=o[l];for(var b=g.x,E=b+g.width,N=g.y,Q=N+g.height,fe=l-1;0<=fe;fe--)if(l!==fe){var we=o[fe],Ue=we.x,Je=Ue+we.width,St=we.y,nt=St+we.height;if(b>=Ue&&N>=St&&E<=Je&&Q<=nt){o.splice(l,1);break}else if(b!==Ue||g.width!==we.width||nt<N||St>Q){if(!(N!==St||g.height!==we.height||Je<b||Ue>E)){Ue>b&&(we.width+=Ue-b,we.x=b),Je<E&&(we.width=E-Ue),o.splice(l,1);break}}else{St>N&&(we.height+=St-N,we.y=N),nt<Q&&(we.height=Q-St),o.splice(l,1);break}}}return o},n.findHostInstance=bd,n.findHostInstanceWithNoPortals=function(o){return o=he(o),o=o!==null?L(o):null,o===null?null:o.stateNode},n.findHostInstanceWithWarning=function(o){return bd(o)},n.flushControlled=function(o){var l=It;It|=1;var g=Nn.transition,b=$t;try{Nn.transition=null,$t=1,o()}finally{$t=b,Nn.transition=g,It=l,It===0&&(vo(),Ja())}},n.flushPassiveEffects=Tn,n.flushSync=si,n.focusWithin=function(o,l){if(!ye)throw Error(d(363));for(o=hd(o),l=ch(o,l),l=Array.from(l),o=0;o<l.length;){var g=l[o++];if(!Xe(g)){if(g.tag===5&&ct(g.stateNode))return!0;for(g=g.child;g!==null;)l.push(g),g=g.sibling}}return!1},n.getCurrentUpdatePriority=function(){return $t},n.getFindAllNodesFailureDescription=function(o,l){if(!ye)throw Error(d(363));var g=0,b=[];o=[hd(o),0];for(var E=0;E<o.length;){var N=o[E++],Q=o[E++],fe=l[Q];if((N.tag!==5||!Xe(N))&&(Fn(N,fe)&&(b.push(pd(fe)),Q++,Q>g&&(g=Q)),Q<l.length))for(N=N.child;N!==null;)o.push(N,Q),N=N.sibling}if(g<l.length){for(o=[];g<l.length;g++)o.push(pd(l[g]));return`findAllNodes was able to match part of the selector:
|
|
307
|
+
`+N.stack}return{value:o,source:l,stack:E,digest:null}}function Ns(o,l,g){return{value:o,source:null,stack:g??null,digest:l??null}}function Sc(o,l){try{console.error(l.value)}catch(g){setTimeout(function(){throw g})}}var il=typeof WeakMap=="function"?WeakMap:Map;function Vi(o,l,g){g=ma(-1,g),g.tag=3,g.payload={element:null};var b=l.value;return g.callback=function(){Oc||(Oc=!0,pl=b),Sc(o,l)},g}function Fr(o,l,g){g=ma(-1,g),g.tag=3;var b=o.type.getDerivedStateFromError;if(typeof b=="function"){var E=l.value;g.payload=function(){return b(E)},g.callback=function(){Sc(o,l)}}var N=o.stateNode;return N!==null&&typeof N.componentDidCatch=="function"&&(g.callback=function(){Sc(o,l),typeof b!="function"&&(Zi===null?Zi=new Set([this]):Zi.add(this));var X=l.stack;this.componentDidCatch(l.value,{componentStack:X!==null?X:""})}),g}function Jf(o,l,g){var b=o.pingCache;if(b===null){b=o.pingCache=new il;var E=new Set;b.set(l,E)}else E=b.get(l),E===void 0&&(E=new Set,b.set(l,E));E.has(g)||(E.add(g),o=es.bind(null,o,l,g),l.then(o,o))}function dn(o){do{var l;if((l=o.tag===13)&&(l=o.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return o;o=o.return}while(o!==null);return null}function sl(o,l,g,b,E){return(o.mode&1)===0?(o===l?o.flags|=65536:(o.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(l=ma(-1,1),l.tag=2,Wi(g,l,1))),g.lanes|=1),o):(o.flags|=65536,o.lanes=E,o)}var Cc=h.ReactCurrentOwner,qn=!1;function Kn(o,l,g,b){l.child=o===null?Wf(l,null,g,b):io(l,o.child,g,b)}function Zf(o,l,g,b,E){g=g.render;var N=l.ref;return ws(l,E),b=uc(o,l,g,b,N,E),g=co(),o!==null&&!qn?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~E,Ir(o,l,E)):(bn&&g&&Qu(l),l.flags|=1,Kn(o,l,b,E),l.child)}function $f(o,l,g,b,E){if(o===null){var N=g.type;return typeof N=="function"&&!Xc(N)&&N.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(l.tag=15,l.type=N,eh(o,l,N,b,E)):(o=gl(g.type,null,b,l,l.mode,E),o.ref=l.ref,o.return=l,l.child=o)}if(N=o.child,(o.lanes&E)===0){var X=N.memoizedProps;if(g=g.compare,g=g!==null?g:$l,g(X,b)&&o.ref===l.ref)return Ir(o,l,E)}return l.flags|=1,o=_i(N,b),o.ref=l.ref,o.return=l,l.child=o}function eh(o,l,g,b,E){if(o!==null){var N=o.memoizedProps;if($l(N,b)&&o.ref===l.ref)if(qn=!1,l.pendingProps=b=N,(o.lanes&E)!==0)(o.flags&131072)!==0&&(qn=!0);else return l.lanes=o.lanes,Ir(o,l,E)}return sd(o,l,g,b,E)}function th(o,l,g){var b=l.pendingProps,E=b.children,N=o!==null?o.memoizedState:null;if(b.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},hn(Fs,aa),aa|=g;else{if((g&1073741824)===0)return o=N!==null?N.baseLanes|g:g,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:o,cachePool:null,transitions:null},l.updateQueue=null,hn(Fs,aa),aa|=o,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},b=N!==null?N.baseLanes:g,hn(Fs,aa),aa|=b}else N!==null?(b=N.baseLanes|g,l.memoizedState=null):b=g,hn(Fs,aa),aa|=b;return Kn(o,l,E,g),l.child}function wc(o,l){var g=l.ref;(o===null&&g!==null||o!==null&&o.ref!==g)&&(l.flags|=512,l.flags|=2097152)}function sd(o,l,g,b,E){var N=wr(g)?gi:Ar.current;return N=ys(l,N),ws(l,E),g=uc(o,l,g,b,N,E),b=co(),o!==null&&!qn?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~E,Ir(o,l,E)):(bn&&b&&Qu(l),l.flags|=1,Kn(o,l,g,E),l.child)}function _c(o,l,g,b,E){if(wr(g)){var N=!0;Wl(l)}else N=!1;if(ws(l,E),l.stateNode===null)vr(o,l),xc(l,g,b),al(l,g,b,E),b=!0;else if(o===null){var X=l.stateNode,fe=l.memoizedProps;X.props=fe;var we=X.context,je=g.contextType;typeof je=="object"&&je!==null?je=Jr(je):(je=wr(g)?gi:Ar.current,je=ys(l,je));var Je=g.getDerivedStateFromProps,St=typeof Je=="function"||typeof X.getSnapshotBeforeUpdate=="function";St||typeof X.UNSAFE_componentWillReceiveProps!="function"&&typeof X.componentWillReceiveProps!="function"||(fe!==b||we!==je)&&bc(l,X,b,je),$a=!1;var nt=l.memoizedState;X.state=nt,oo(l,b,X,E),we=l.memoizedState,fe!==b||nt!==we||Pr.current||$a?(typeof Je=="function"&&(ho(l,g,Je,b),we=l.memoizedState),(fe=$a||yc(l,g,fe,b,nt,we,je))?(St||typeof X.UNSAFE_componentWillMount!="function"&&typeof X.componentWillMount!="function"||(typeof X.componentWillMount=="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount=="function"&&X.UNSAFE_componentWillMount()),typeof X.componentDidMount=="function"&&(l.flags|=4194308)):(typeof X.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=b,l.memoizedState=we),X.props=b,X.state=we,X.context=je,b=fe):(typeof X.componentDidMount=="function"&&(l.flags|=4194308),b=!1)}else{X=l.stateNode,oc(o,l),fe=l.memoizedProps,je=l.type===l.elementType?fe:ta(l.type,fe),X.props=je,St=l.pendingProps,nt=X.context,we=g.contextType,typeof we=="object"&&we!==null?we=Jr(we):(we=wr(g)?gi:Ar.current,we=ys(l,we));var vn=g.getDerivedStateFromProps;(Je=typeof vn=="function"||typeof X.getSnapshotBeforeUpdate=="function")||typeof X.UNSAFE_componentWillReceiveProps!="function"&&typeof X.componentWillReceiveProps!="function"||(fe!==St||nt!==we)&&bc(l,X,b,we),$a=!1,nt=l.memoizedState,X.state=nt,oo(l,b,X,E);var Pt=l.memoizedState;fe!==St||nt!==Pt||Pr.current||$a?(typeof vn=="function"&&(ho(l,g,vn,b),Pt=l.memoizedState),(je=$a||yc(l,g,je,b,nt,Pt,we)||!1)?(Je||typeof X.UNSAFE_componentWillUpdate!="function"&&typeof X.componentWillUpdate!="function"||(typeof X.componentWillUpdate=="function"&&X.componentWillUpdate(b,Pt,we),typeof X.UNSAFE_componentWillUpdate=="function"&&X.UNSAFE_componentWillUpdate(b,Pt,we)),typeof X.componentDidUpdate=="function"&&(l.flags|=4),typeof X.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof X.componentDidUpdate!="function"||fe===o.memoizedProps&&nt===o.memoizedState||(l.flags|=4),typeof X.getSnapshotBeforeUpdate!="function"||fe===o.memoizedProps&&nt===o.memoizedState||(l.flags|=1024),l.memoizedProps=b,l.memoizedState=Pt),X.props=b,X.state=Pt,X.context=we,b=je):(typeof X.componentDidUpdate!="function"||fe===o.memoizedProps&&nt===o.memoizedState||(l.flags|=4),typeof X.getSnapshotBeforeUpdate!="function"||fe===o.memoizedProps&&nt===o.memoizedState||(l.flags|=1024),b=!1)}return Ec(o,l,g,b,N,E)}function Ec(o,l,g,b,E,N){wc(o,l);var X=(l.flags&128)!==0;if(!b&&!X)return E&&Xl(l,g,!1),Ir(o,l,N);b=l.stateNode,Cc.current=l;var fe=X&&typeof g.getDerivedStateFromError!="function"?null:b.render();return l.flags|=1,o!==null&&X?(l.child=io(l,o.child,null,N),l.child=io(l,null,fe,N)):Kn(o,l,fe,N),l.memoizedState=b.state,E&&Xl(l,g,!0),l.child}function nh(o){var l=o.stateNode;l.pendingContext?Fu(o,l.pendingContext,l.pendingContext!==l.context):l.context&&Fu(o,l.context,!1),ea(o,l.containerInfo)}function rh(o,l,g,b,E){return ao(),Ku(E),l.flags|=256,Kn(o,l,g,b),l.child}var po={dehydrated:null,treeContext:null,retryLane:0};function od(o){return{baseLanes:o,cachePool:null,transitions:null}}function ld(o,l,g){var b=l.pendingProps,E=rn.current,N=!1,X=(l.flags&128)!==0,fe;if((fe=X)||(fe=o!==null&&o.memoizedState===null?!1:(E&2)!==0),fe?(N=!0,l.flags&=-129):(o===null||o.memoizedState!==null)&&(E|=1),hn(rn,E&1),o===null)return qu(l),o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((l.mode&1)===0?l.lanes=1:tr(o)?l.lanes=8:l.lanes=1073741824,null):(X=b.children,o=b.fallback,N?(b=l.mode,N=l.child,X={mode:"hidden",children:X},(b&1)===0&&N!==null?(N.childLanes=0,N.pendingProps=X):N=So(X,b,0,null),o=Ei(o,b,g,null),N.return=l,o.return=l,N.sibling=o,l.child=N,l.child.memoizedState=od(g),l.memoizedState=po,o):Rc(l,X));if(E=o.memoizedState,E!==null&&(fe=E.dehydrated,fe!==null))return Bs(o,l,X,b,fe,E,g);if(N){N=b.fallback,X=l.mode,E=o.child,fe=E.sibling;var we={mode:"hidden",children:b.children};return(X&1)===0&&l.child!==E?(b=l.child,b.childLanes=0,b.pendingProps=we,l.deletions=null):(b=_i(E,we),b.subtreeFlags=E.subtreeFlags&14680064),fe!==null?N=_i(fe,N):(N=Ei(N,X,g,null),N.flags|=2),N.return=l,b.return=l,b.sibling=N,l.child=b,b=N,N=l.child,X=o.child.memoizedState,X=X===null?od(g):{baseLanes:X.baseLanes|g,cachePool:null,transitions:X.transitions},N.memoizedState=X,N.childLanes=o.childLanes&~g,l.memoizedState=po,b}return N=o.child,o=N.sibling,b=_i(N,{mode:"visible",children:b.children}),(l.mode&1)===0&&(b.lanes=g),b.return=l,b.sibling=null,o!==null&&(g=l.deletions,g===null?(l.deletions=[o],l.flags|=16):g.push(o)),l.child=b,l.memoizedState=null,b}function Rc(o,l){return l=So({mode:"visible",children:l},o.mode,0,null),l.return=o,o.child=l}function Tc(o,l,g,b){return b!==null&&Ku(b),io(l,o.child,null,g),o=Rc(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function Bs(o,l,g,b,E,N,X){if(g)return l.flags&256?(l.flags&=-257,b=Ns(Error(d(422))),Tc(o,l,X,b)):l.memoizedState!==null?(l.child=o.child,l.flags|=128,null):(N=b.fallback,E=l.mode,b=So({mode:"visible",children:b.children},E,0,null),N=Ei(N,E,X,null),N.flags|=2,b.return=l,N.return=l,b.sibling=N,l.child=b,(l.mode&1)!==0&&io(l,o.child,null,X),l.child.memoizedState=od(X),l.memoizedState=po,N);if((l.mode&1)===0)return Tc(o,l,X,null);if(tr(E))return b=ku(E).digest,N=Error(d(419)),b=Ns(N,b,void 0),Tc(o,l,X,b);if(g=(X&o.childLanes)!==0,qn||g){if(b=Jn,b!==null){switch(X&-X){case 4:E=2;break;case 16:E=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:E=32;break;case 536870912:E=268435456;break;default:E=0}E=(E&(b.suspendedLanes|X))!==0?0:E,E!==0&&E!==N.retryLane&&(N.retryLane=E,Aa(o,E),sr(b,o,E,-1))}return Gc(),b=Ns(Error(d(421))),Tc(o,l,X,b)}return Yo(E)?(l.flags|=128,l.child=o.child,l=PA.bind(null,o),Nf(E,l),null):(o=N.treeContext,me&&(pa=Oi(E),Kr=l,bn=!0,ka=null,el=!1,o!==null&&(fa[ha++]=La,fa[ha++]=yi,fa[ha++]=Gi,La=o.id,yi=o.overflow,Gi=l)),l=Rc(l,b.children),l.flags|=4096,l)}function Ao(o,l,g){o.lanes|=l;var b=o.alternate;b!==null&&(b.lanes|=l),sc(o.return,l,g)}function Si(o,l,g,b,E){var N=o.memoizedState;N===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:b,tail:g,tailMode:E}:(N.isBackwards=l,N.rendering=null,N.renderingStartTime=0,N.last=b,N.tail=g,N.tailMode=E)}function Dc(o,l,g){var b=l.pendingProps,E=b.revealOrder,N=b.tail;if(Kn(o,l,b.children,g),b=rn.current,(b&2)!==0)b=b&1|2,l.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Ao(o,g,l);else if(o.tag===19)Ao(o,g,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}b&=1}if(hn(rn,b),(l.mode&1)===0)l.memoizedState=null;else switch(E){case"forwards":for(g=l.child,E=null;g!==null;)o=g.alternate,o!==null&&jn(o)===null&&(E=g),g=g.sibling;g=E,g===null?(E=l.child,l.child=null):(E=g.sibling,g.sibling=null),Si(l,!1,E,g,N);break;case"backwards":for(g=null,E=l.child,l.child=null;E!==null;){if(o=E.alternate,o!==null&&jn(o)===null){l.child=E;break}o=E.sibling,E.sibling=g,g=E,E=o}Si(l,!0,g,null,N);break;case"together":Si(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function vr(o,l){(l.mode&1)===0&&o!==null&&(o.alternate=null,l.alternate=null,l.flags|=2)}function Ir(o,l,g){if(o!==null&&(l.dependencies=o.dependencies),Is|=l.lanes,(g&l.childLanes)===0)return null;if(o!==null&&l.child!==o.child)throw Error(d(153));if(l.child!==null){for(o=l.child,g=_i(o,o.pendingProps),l.child=g,g.return=l;o.sibling!==null;)o=o.sibling,g=g.sibling=_i(o,o.pendingProps),g.return=l;g.sibling=null}return l.child}function Bt(o,l,g){switch(l.tag){case 3:nh(l),ao();break;case 5:nl(l);break;case 1:wr(l.type)&&Wl(l);break;case 4:ea(l,l.stateNode.containerInfo);break;case 10:Ju(l,l.type._context,l.memoizedProps.value);break;case 13:var b=l.memoizedState;if(b!==null)return b.dehydrated!==null?(hn(rn,rn.current&1),l.flags|=128,null):(g&l.child.childLanes)!==0?ld(o,l,g):(hn(rn,rn.current&1),o=Ir(o,l,g),o!==null?o.sibling:null);hn(rn,rn.current&1);break;case 19:if(b=(g&l.childLanes)!==0,(o.flags&128)!==0){if(b)return Dc(o,l,g);l.flags|=128}var E=l.memoizedState;if(E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),hn(rn,rn.current),b)break;return null;case 22:case 23:return l.lanes=0,th(o,l,g)}return Ir(o,l,g)}function na(o){o.flags|=4}function cd(o,l){if(o!==null&&o.child===l.child)return!0;if((l.flags&16)!==0)return!1;for(o=l.child;o!==null;){if((o.flags&12854)!==0||(o.subtreeFlags&12854)!==0)return!1;o=o.sibling}return!0}var Lc,ol,mo,qi;if(qe)Lc=function(o,l){for(var g=l.child;g!==null;){if(g.tag===5||g.tag===6)ee(o,g.stateNode);else if(g.tag!==4&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===l)break;for(;g.sibling===null;){if(g.return===null||g.return===l)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},ol=function(){},mo=function(o,l,g,b,E){if(o=o.memoizedProps,o!==b){var N=l.stateNode,X=$r(Zr.current);g=Re(N,g,o,b,E,X),(l.updateQueue=g)&&na(l)}},qi=function(o,l,g,b){g!==b&&na(l)};else if(Dt){Lc=function(o,l,g,b){for(var E=l.child;E!==null;){if(E.tag===5){var N=E.stateNode;g&&b&&(N=Ai(N,E.type,E.memoizedProps,E)),ee(o,N)}else if(E.tag===6)N=E.stateNode,g&&b&&(N=qa(N,E.memoizedProps,E)),ee(o,N);else if(E.tag!==4){if(E.tag===22&&E.memoizedState!==null)N=E.child,N!==null&&(N.return=E),Lc(o,E,!0,!0);else if(E.child!==null){E.child.return=E,E=E.child;continue}}if(E===l)break;for(;E.sibling===null;){if(E.return===null||E.return===l)return;E=E.return}E.sibling.return=E.return,E=E.sibling}};var ah=function(o,l,g,b){for(var E=l.child;E!==null;){if(E.tag===5){var N=E.stateNode;g&&b&&(N=Ai(N,E.type,E.memoizedProps,E)),Va(o,N)}else if(E.tag===6)N=E.stateNode,g&&b&&(N=qa(N,E.memoizedProps,E)),Va(o,N);else if(E.tag!==4){if(E.tag===22&&E.memoizedState!==null)N=E.child,N!==null&&(N.return=E),ah(o,E,!0,!0);else if(E.child!==null){E.child.return=E,E=E.child;continue}}if(E===l)break;for(;E.sibling===null;){if(E.return===null||E.return===l)return;E=E.return}E.sibling.return=E.return,E=E.sibling}};ol=function(o,l){var g=l.stateNode;if(!cd(o,l)){o=g.containerInfo;var b=Qt(o);ah(b,l,!1,!1),g.pendingChildren=b,na(l),As(o,b)}},mo=function(o,l,g,b,E){var N=o.stateNode,X=o.memoizedProps;if((o=cd(o,l))&&X===b)l.stateNode=N;else{var fe=l.stateNode,we=$r(Zr.current),je=null;X!==b&&(je=Re(fe,g,X,b,E,we)),o&&je===null?l.stateNode=N:(N=ps(N,je,g,X,b,l,o,fe),Ee(N,g,b,E,we)&&na(l),l.stateNode=N,o?na(l):Lc(N,l,!1,!1))}},qi=function(o,l,g,b){g!==b?(o=$r(Es.current),g=$r(Zr.current),l.stateNode=Ue(b,o,g,l),na(l)):l.stateNode=o.stateNode}}else ol=function(){},mo=function(){},qi=function(){};function go(o,l){if(!bn)switch(o.tailMode){case"hidden":l=o.tail;for(var g=null;l!==null;)l.alternate!==null&&(g=l),l=l.sibling;g===null?o.tail=null:g.sibling=null;break;case"collapsed":g=o.tail;for(var b=null;g!==null;)g.alternate!==null&&(b=g),g=g.sibling;b===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:b.sibling=null}}function yr(o){var l=o.alternate!==null&&o.alternate.child===o.child,g=0,b=0;if(l)for(var E=o.child;E!==null;)g|=E.lanes|E.childLanes,b|=E.subtreeFlags&14680064,b|=E.flags&14680064,E.return=o,E=E.sibling;else for(E=o.child;E!==null;)g|=E.lanes|E.childLanes,b|=E.subtreeFlags,b|=E.flags,E.return=o,E=E.sibling;return o.subtreeFlags|=b,o.childLanes=g,l}function ud(o,l,g){var b=l.pendingProps;switch(Yu(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yr(l),null;case 1:return wr(l.type)&&ro(),yr(l),null;case 3:return g=l.stateNode,Xi(),An(Pr),An(Ar),rl(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(o===null||o.child===null)&&(Zl(l)?na(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,ka!==null&&(jr(ka),ka=null))),ol(o,l),yr(l),null;case 5:Na(l),g=$r(Es.current);var E=l.type;if(o!==null&&l.stateNode!=null)mo(o,l,E,b,g),o.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!b){if(l.stateNode===null)throw Error(d(166));return yr(l),null}if(o=$r(Zr.current),Zl(l)){if(!me)throw Error(d(175));o=Bu(l.stateNode,l.type,l.memoizedProps,g,o,l,!el),l.updateQueue=o,o!==null&&na(l)}else{var N=U(E,b,g,o,l);Lc(N,l,!1,!1),l.stateNode=N,Ee(N,E,b,g,o)&&na(l)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return yr(l),null;case 6:if(o&&l.stateNode!=null)qi(o,l,o.memoizedProps,b);else{if(typeof b!="string"&&l.stateNode===null)throw Error(d(166));if(o=$r(Es.current),g=$r(Zr.current),Zl(l)){if(!me)throw Error(d(176));if(o=l.stateNode,g=l.memoizedProps,(b=Pu(o,g,l,!el))&&(E=Kr,E!==null))switch(E.tag){case 3:vA(E.stateNode.containerInfo,o,g,(E.mode&1)!==0);break;case 5:Bf(E.type,E.memoizedProps,E.stateNode,o,g,(E.mode&1)!==0)}b&&na(l)}else l.stateNode=Ue(b,o,g,l)}return yr(l),null;case 13:if(An(rn),b=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(bn&&pa!==null&&(l.mode&1)!==0&&(l.flags&128)===0)jf(),ao(),l.flags|=98560,E=!1;else if(E=Zl(l),b!==null&&b.dehydrated!==null){if(o===null){if(!E)throw Error(d(318));if(!me)throw Error(d(344));if(E=l.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(d(317));Vo(E,l)}else ao(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;yr(l),E=!1}else ka!==null&&(jr(ka),ka=null),E=!0;if(!E)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=g,l):(g=b!==null,g!==(o!==null&&o.memoizedState!==null)&&g&&(l.child.flags|=8192,(l.mode&1)!==0&&(o===null||(rn.current&1)!==0?On===0&&(On=3):Gc())),l.updateQueue!==null&&(l.flags|=4),yr(l),null);case 4:return Xi(),ol(o,l),o===null&&ce(l.stateNode.containerInfo),yr(l),null;case 10:return ic(l.type._context),yr(l),null;case 17:return wr(l.type)&&ro(),yr(l),null;case 19:if(An(rn),E=l.memoizedState,E===null)return yr(l),null;if(b=(l.flags&128)!==0,N=E.rendering,N===null)if(b)go(E,!1);else{if(On!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(N=jn(o),N!==null){for(l.flags|=128,go(E,!1),o=N.updateQueue,o!==null&&(l.updateQueue=o,l.flags|=4),l.subtreeFlags=0,o=g,g=l.child;g!==null;)b=g,E=o,b.flags&=14680066,N=b.alternate,N===null?(b.childLanes=0,b.lanes=E,b.child=null,b.subtreeFlags=0,b.memoizedProps=null,b.memoizedState=null,b.updateQueue=null,b.dependencies=null,b.stateNode=null):(b.childLanes=N.childLanes,b.lanes=N.lanes,b.child=N.child,b.subtreeFlags=0,b.deletions=null,b.memoizedProps=N.memoizedProps,b.memoizedState=N.memoizedState,b.updateQueue=N.updateQueue,b.type=N.type,E=N.dependencies,b.dependencies=E===null?null:{lanes:E.lanes,firstContext:E.firstContext}),g=g.sibling;return hn(rn,rn.current&1|2),l.child}o=o.sibling}E.tail!==null&&Yn()>gd&&(l.flags|=128,b=!0,go(E,!1),l.lanes=4194304)}else{if(!b)if(o=jn(N),o!==null){if(l.flags|=128,b=!0,o=o.updateQueue,o!==null&&(l.updateQueue=o,l.flags|=4),go(E,!0),E.tail===null&&E.tailMode==="hidden"&&!N.alternate&&!bn)return yr(l),null}else 2*Yn()-E.renderingStartTime>gd&&g!==1073741824&&(l.flags|=128,b=!0,go(E,!1),l.lanes=4194304);E.isBackwards?(N.sibling=l.child,l.child=N):(o=E.last,o!==null?o.sibling=N:l.child=N,E.last=N)}return E.tail!==null?(l=E.tail,E.rendering=l,E.tail=l.sibling,E.renderingStartTime=Yn(),l.sibling=null,o=rn.current,hn(rn,b?o&1|2:o&1),l):(yr(l),null);case 22:case 23:return vd(),g=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==g&&(l.flags|=8192),g&&(l.mode&1)!==0?(aa&1073741824)!==0&&(yr(l),qe&&l.subtreeFlags&6&&(l.flags|=8192)):yr(l),null;case 24:return null;case 25:return null}throw Error(d(156,l.tag))}function kA(o,l){switch(Yu(l),l.tag){case 1:return wr(l.type)&&ro(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return Xi(),An(Pr),An(Ar),rl(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 5:return Na(l),null;case 13:if(An(rn),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(d(340));ao()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return An(rn),null;case 4:return Xi(),null;case 10:return ic(l.type._context),null;case 22:case 23:return vd(),null;case 24:return null;default:return null}}var ll=!1,nr=!1,ih=typeof WeakSet=="function"?WeakSet:Set,$e=null;function ni(o,l){var g=o.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(b){Yt(o,l,b)}else g.current=null}function Ps(o,l,g){try{g()}catch(b){Yt(o,l,b)}}var kc=!1;function cl(o,l){for(ae(o.containerInfo),$e=l;$e!==null;)if(o=$e,l=o.child,(o.subtreeFlags&1028)!==0&&l!==null)l.return=o,$e=l;else for(;$e!==null;){o=$e;try{var g=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var b=g.memoizedProps,E=g.memoizedState,N=o.stateNode,X=N.getSnapshotBeforeUpdate(o.elementType===o.type?b:ta(o.type,b),E);N.__reactInternalSnapshotBeforeUpdate=X}break;case 3:qe&&Ra(o.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(d(163))}}catch(fe){Yt(o,o.return,fe)}if(l=o.sibling,l!==null){l.return=o.return,$e=l;break}$e=o.return}return g=kc,kc=!1,g}function Er(o,l,g){var b=l.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var E=b=b.next;do{if((E.tag&o)===o){var N=E.destroy;E.destroy=void 0,N!==void 0&&Ps(l,g,N)}E=E.next}while(E!==b)}}function kn(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var g=l=l.next;do{if((g.tag&o)===o){var b=g.create;g.destroy=b()}g=g.next}while(g!==l)}}function dd(o){var l=o.ref;if(l!==null){var g=o.stateNode;switch(o.tag){case 5:o=le(g);break;default:o=g}typeof l=="function"?l(o):l.current=o}}function sh(o){var l=o.alternate;l!==null&&(o.alternate=null,sh(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&G(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function oh(o){return o.tag===5||o.tag===3||o.tag===4}function fd(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||oh(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Nc(o,l,g){var b=o.tag;if(b===5||b===6)o=o.stateNode,l?pn(g,o,l):pr(g,o);else if(b!==4&&(o=o.child,o!==null))for(Nc(o,l,g),o=o.sibling;o!==null;)Nc(o,l,g),o=o.sibling}function Bc(o,l,g){var b=o.tag;if(b===5||b===6)o=o.stateNode,l?et(g,o,l):zt(g,o);else if(b!==4&&(o=o.child,o!==null))for(Bc(o,l,g),o=o.sibling;o!==null;)Bc(o,l,g),o=o.sibling}var rr=null,Ia=!1;function ri(o,l,g){for(g=g.child;g!==null;)zn(o,l,g),g=g.sibling}function zn(o,l,g){if(Ta&&typeof Ta.onCommitFiberUnmount=="function")try{Ta.onCommitFiberUnmount(ql,g)}catch{}switch(g.tag){case 5:nr||ni(g,l);case 6:if(qe){var b=rr,E=Ia;rr=null,ri(o,l,g),rr=b,Ia=E,rr!==null&&(Ia?it(rr,g.stateNode):Xn(rr,g.stateNode))}else ri(o,l,g);break;case 18:qe&&rr!==null&&(Ia?jl(rr,g.stateNode):mA(rr,g.stateNode));break;case 4:qe?(b=rr,E=Ia,rr=g.stateNode.containerInfo,Ia=!0,ri(o,l,g),rr=b,Ia=E):(Dt&&(b=g.stateNode.containerInfo,E=Qt(b),Ii(b,E)),ri(o,l,g));break;case 0:case 11:case 14:case 15:if(!nr&&(b=g.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){E=b=b.next;do{var N=E,X=N.destroy;N=N.tag,X!==void 0&&((N&2)!==0||(N&4)!==0)&&Ps(g,l,X),E=E.next}while(E!==b)}ri(o,l,g);break;case 1:if(!nr&&(ni(g,l),b=g.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=g.memoizedProps,b.state=g.memoizedState,b.componentWillUnmount()}catch(fe){Yt(g,l,fe)}ri(o,l,g);break;case 21:ri(o,l,g);break;case 22:g.mode&1?(nr=(b=nr)||g.memoizedState!==null,ri(o,l,g),nr=b):ri(o,l,g);break;default:ri(o,l,g)}}function ul(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var g=o.stateNode;g===null&&(g=o.stateNode=new ih),l.forEach(function(b){var E=hh.bind(null,o,b);g.has(b)||(g.add(b),b.then(E,E))})}}function va(o,l){var g=l.deletions;if(g!==null)for(var b=0;b<g.length;b++){var E=g[b];try{var N=o,X=l;if(qe){var fe=X;e:for(;fe!==null;){switch(fe.tag){case 5:rr=fe.stateNode,Ia=!1;break e;case 3:rr=fe.stateNode.containerInfo,Ia=!0;break e;case 4:rr=fe.stateNode.containerInfo,Ia=!0;break e}fe=fe.return}if(rr===null)throw Error(d(160));zn(N,X,E),rr=null,Ia=!1}else zn(N,X,E);var we=E.alternate;we!==null&&(we.return=null),E.return=null}catch(je){Yt(E,l,je)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)Ms(l,o),l=l.sibling}function Ms(o,l){var g=o.alternate,b=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(va(l,o),Oa(o),b&4){try{Er(3,o,o.return),kn(3,o)}catch(nt){Yt(o,o.return,nt)}try{Er(5,o,o.return)}catch(nt){Yt(o,o.return,nt)}}break;case 1:va(l,o),Oa(o),b&512&&g!==null&&ni(g,g.return);break;case 5:if(va(l,o),Oa(o),b&512&&g!==null&&ni(g,g.return),qe){if(o.flags&32){var E=o.stateNode;try{st(E)}catch(nt){Yt(o,o.return,nt)}}if(b&4&&(E=o.stateNode,E!=null)){var N=o.memoizedProps;if(g=g!==null?g.memoizedProps:N,b=o.type,l=o.updateQueue,o.updateQueue=null,l!==null)try{Nt(E,l,b,g,N,o)}catch(nt){Yt(o,o.return,nt)}}}break;case 6:if(va(l,o),Oa(o),b&4&&qe){if(o.stateNode===null)throw Error(d(162));E=o.stateNode,N=o.memoizedProps,g=g!==null?g.memoizedProps:N;try{Ye(E,g,N)}catch(nt){Yt(o,o.return,nt)}}break;case 3:if(va(l,o),Oa(o),b&4){if(qe&&me&&g!==null&&g.memoizedState.isDehydrated)try{no(l.containerInfo)}catch(nt){Yt(o,o.return,nt)}if(Dt){E=l.containerInfo,N=l.pendingChildren;try{Ii(E,N)}catch(nt){Yt(o,o.return,nt)}}}break;case 4:if(va(l,o),Oa(o),b&4&&Dt){N=o.stateNode,E=N.containerInfo,N=N.pendingChildren;try{Ii(E,N)}catch(nt){Yt(o,o.return,nt)}}break;case 13:va(l,o),Oa(o),E=o.child,E.flags&8192&&(N=E.memoizedState!==null,E.stateNode.isHidden=N,!N||E.alternate!==null&&E.alternate.memoizedState!==null||(Ic=Yn())),b&4&&ul(o);break;case 22:var X=g!==null&&g.memoizedState!==null;if(o.mode&1?(nr=(g=nr)||X,va(l,o),nr=g):va(l,o),Oa(o),b&8192){if(g=o.memoizedState!==null,(o.stateNode.isHidden=g)&&!X&&(o.mode&1)!==0)for($e=o,b=o.child;b!==null;){for(l=$e=b;$e!==null;){X=$e;var fe=X.child;switch(X.tag){case 0:case 11:case 14:case 15:Er(4,X,X.return);break;case 1:ni(X,X.return);var we=X.stateNode;if(typeof we.componentWillUnmount=="function"){var je=X,Je=X.return;try{var St=je;we.props=St.memoizedProps,we.state=St.memoizedState,we.componentWillUnmount()}catch(nt){Yt(je,Je,nt)}}break;case 5:ni(X,X.return);break;case 22:if(X.memoizedState!==null){ar(l);continue}}fe!==null?(fe.return=X,$e=fe):ar(l)}b=b.sibling}if(qe){e:if(b=null,qe)for(l=o;;){if(l.tag===5){if(b===null){b=l;try{E=l.stateNode,g?En(E):Ut(l.stateNode,l.memoizedProps)}catch(nt){Yt(o,o.return,nt)}}}else if(l.tag===6){if(b===null)try{N=l.stateNode,g?un(N):Ea(N,l.memoizedProps)}catch(nt){Yt(o,o.return,nt)}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;b===l&&(b=null),l=l.return}b===l&&(b=null),l.sibling.return=l.return,l=l.sibling}}}break;case 19:va(l,o),Oa(o),b&4&&ul(o);break;case 21:break;default:va(l,o),Oa(o)}}function Oa(o){var l=o.flags;if(l&2){try{if(qe){e:{for(var g=o.return;g!==null;){if(oh(g)){var b=g;break e}g=g.return}throw Error(d(160))}switch(b.tag){case 5:var E=b.stateNode;b.flags&32&&(st(E),b.flags&=-33);var N=fd(o);Bc(o,N,E);break;case 3:case 4:var X=b.stateNode.containerInfo,fe=fd(o);Nc(o,fe,X);break;default:throw Error(d(161))}}}catch(we){Yt(o,o.return,we)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function NA(o,l,g){$e=o,lh(o)}function lh(o,l,g){for(var b=(o.mode&1)!==0;$e!==null;){var E=$e,N=E.child;if(E.tag===22&&b){var X=E.memoizedState!==null||ll;if(!X){var fe=E.alternate,we=fe!==null&&fe.memoizedState!==null||nr;fe=ll;var je=nr;if(ll=X,(nr=we)&&!je)for($e=E;$e!==null;)X=$e,we=X.child,X.tag===22&&X.memoizedState!==null?tt(E):we!==null?(we.return=X,$e=we):tt(E);for(;N!==null;)$e=N,lh(N),N=N.sibling;$e=E,ll=fe,nr=je}zs(o)}else(E.subtreeFlags&8772)!==0&&N!==null?(N.return=E,$e=N):zs(o)}}function zs(o){for(;$e!==null;){var l=$e;if((l.flags&8772)!==0){var g=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:nr||kn(5,l);break;case 1:var b=l.stateNode;if(l.flags&4&&!nr)if(g===null)b.componentDidMount();else{var E=l.elementType===l.type?g.memoizedProps:ta(l.type,g.memoizedProps);b.componentDidUpdate(E,g.memoizedState,b.__reactInternalSnapshotBeforeUpdate)}var N=l.updateQueue;N!==null&&Yf(l,N,b);break;case 3:var X=l.updateQueue;if(X!==null){if(g=null,l.child!==null)switch(l.child.tag){case 5:g=le(l.child.stateNode);break;case 1:g=l.child.stateNode}Yf(l,X,g)}break;case 5:var fe=l.stateNode;g===null&&l.flags&4&&ht(fe,l.type,l.memoizedProps,l);break;case 6:break;case 4:break;case 12:break;case 13:if(me&&l.memoizedState===null){var we=l.alternate;if(we!==null){var je=we.memoizedState;if(je!==null){var Je=je.dehydrated;Je!==null&&mi(Je)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(d(163))}nr||l.flags&512&&dd(l)}catch(St){Yt(l,l.return,St)}}if(l===o){$e=null;break}if(g=l.sibling,g!==null){g.return=l.return,$e=g;break}$e=l.return}}function ar(o){for(;$e!==null;){var l=$e;if(l===o){$e=null;break}var g=l.sibling;if(g!==null){g.return=l.return,$e=g;break}$e=l.return}}function tt(o){for(;$e!==null;){var l=$e;try{switch(l.tag){case 0:case 11:case 15:var g=l.return;try{kn(4,l)}catch(we){Yt(l,g,we)}break;case 1:var b=l.stateNode;if(typeof b.componentDidMount=="function"){var E=l.return;try{b.componentDidMount()}catch(we){Yt(l,E,we)}}var N=l.return;try{dd(l)}catch(we){Yt(l,N,we)}break;case 5:var X=l.return;try{dd(l)}catch(we){Yt(l,X,we)}}}catch(we){Yt(l,l.return,we)}if(l===o){$e=null;break}var fe=l.sibling;if(fe!==null){fe.return=l.return,$e=fe;break}$e=l.return}}var ra=0,Or=1,Pc=2,Mc=3,zc=4;if(typeof Symbol=="function"&&Symbol.for){var dl=Symbol.for;ra=dl("selector.component"),Or=dl("selector.has_pseudo_class"),Pc=dl("selector.role"),Mc=dl("selector.test_id"),zc=dl("selector.text")}function hd(o){var l=k(o);if(l!=null){if(typeof l.memoizedProps["data-testname"]!="string")throw Error(d(364));return l}if(o=Ce(o),o===null)throw Error(d(362));return o.stateNode.current}function Fn(o,l){switch(l.$$typeof){case ra:if(o.type===l.value)return!0;break;case Or:e:{l=l.value,o=[o,0];for(var g=0;g<o.length;){var b=o[g++],E=o[g++],N=l[E];if(b.tag!==5||!Xe(b)){for(;N!=null&&Fn(b,N);)E++,N=l[E];if(E===l.length){l=!0;break e}else for(b=b.child;b!==null;)o.push(b,E),b=b.sibling}}l=!1}return l;case Pc:if(o.tag===5&&Ie(o.stateNode,l.value))return!0;break;case zc:if((o.tag===5||o.tag===6)&&(o=ze(o),o!==null&&0<=o.indexOf(l.value)))return!0;break;case Mc:if(o.tag===5&&(o=o.memoizedProps["data-testname"],typeof o=="string"&&o.toLowerCase()===l.value.toLowerCase()))return!0;break;default:throw Error(d(365))}return!1}function pd(o){switch(o.$$typeof){case ra:return"<"+(K(o.value)||"Unknown")+">";case Or:return":has("+(pd(o)||"")+")";case Pc:return'[role="'+o.value+'"]';case zc:return'"'+o.value+'"';case Mc:return'[data-testname="'+o.value+'"]';default:throw Error(d(365))}}function ch(o,l){var g=[];o=[o,0];for(var b=0;b<o.length;){var E=o[b++],N=o[b++],X=l[N];if(E.tag!==5||!Xe(E)){for(;X!=null&&Fn(E,X);)N++,X=l[N];if(N===l.length)g.push(E);else for(E=E.child;E!==null;)o.push(E,N),E=E.sibling}}return g}function Ad(o,l){if(!ye)throw Error(d(363));o=hd(o),o=ch(o,l),l=[],o=Array.from(o);for(var g=0;g<o.length;){var b=o[g++];if(b.tag===5)Xe(b)||l.push(b.stateNode);else for(b=b.child;b!==null;)o.push(b),b=b.sibling}return l}var uh=Math.ceil,Ki=h.ReactCurrentDispatcher,Ji=h.ReactCurrentOwner,Nn=h.ReactCurrentBatchConfig,It=0,Jn=null,In=null,ir=0,aa=0,Fs=Ka(0),On=0,fl=null,Is=0,Fc=0,md=0,hl=null,Ur=null,Ic=0,gd=1/0,ai=null;function vo(){gd=Yn()+500}var Oc=!1,pl=null,Zi=null,xr=!1,br=null,yo=0,Os=0,Uc=null,jc=-1,Al=0;function gn(){return(It&6)!==0?Yn():jc!==-1?jc:jc=Yn()}function Ci(o){return(o.mode&1)===0?1:(It&2)!==0&&ir!==0?ir&-ir:DA.transition!==null?(Al===0&&(Al=xs()),Al):(o=$t,o!==0?o:de())}function sr(o,l,g,b){if(50<Os)throw Os=0,Uc=null,Error(d(185));Jo(o,g,b),((It&2)===0||o!==Jn)&&(o===Jn&&((It&2)===0&&(Fc|=g),On===4&&Gr(o,ir)),Wn(o,b),g===1&&It===0&&(l.mode&1)===0&&(vo(),Kl&&Ja()))}function Wn(o,l){var g=o.callbackNode;bA(o,l);var b=Vl(o,o===Jn?ir:0);if(b===0)g!==null&&zf(g),o.callbackNode=null,o.callbackPriority=0;else if(l=b&-b,o.callbackPriority!==l){if(g!=null&&zf(g),l===1)o.tag===0?Ff(ii.bind(null,o)):Xu(ii.bind(null,o)),j?$(function(){(It&6)===0&&Ja()}):ju(Gu,Ja),g=null;else{switch(Mf(b)){case 1:g=Gu;break;case 4:g=_A;break;case 16:g=Hu;break;case 536870912:g=EA;break;default:g=Hu}g=Ah(g,ml.bind(null,o))}o.callbackPriority=l,o.callbackNode=g}}function ml(o,l){if(jc=-1,Al=0,(It&6)!==0)throw Error(d(327));var g=o.callbackNode;if(Tn()&&o.callbackNode!==g)return null;var b=Vl(o,o===Jn?ir:0);if(b===0)return null;if((b&30)!==0||(b&o.expiredLanes)!==0||l)l=bo(o,b);else{l=b;var E=It;It|=2;var N=$i();(Jn!==o||ir!==l)&&(ai=null,vo(),Us(o,l));do try{BA();break}catch(fe){dh(o,fe)}while(!0);ac(),Ki.current=N,It=E,In!==null?l=0:(Jn=null,ir=0,l=On)}if(l!==0){if(l===2&&(E=Ou(o),E!==0&&(b=E,l=xo(o,E))),l===1)throw g=fl,Us(o,0),Gr(o,b),Wn(o,Yn()),g;if(l===6)Gr(o,b);else{if(E=o.current.alternate,(b&30)===0&&!ya(E)&&(l=bo(o,b),l===2&&(N=Ou(o),N!==0&&(b=N,l=xo(o,N))),l===1))throw g=fl,Us(o,0),Gr(o,b),Wn(o,Yn()),g;switch(o.finishedWork=E,o.finishedLanes=b,l){case 0:case 1:throw Error(d(345));case 2:js(o,Ur,ai);break;case 3:if(Gr(o,b),(b&130023424)===b&&(l=Ic+500-Yn(),10<l)){if(Vl(o,0)!==0)break;if(E=o.suspendedLanes,(E&b)!==b){gn(),o.pingedLanes|=o.suspendedLanes&E;break}o.timeoutHandle=ot(js.bind(null,o,Ur,ai),l);break}js(o,Ur,ai);break;case 4:if(Gr(o,b),(b&4194240)===b)break;for(l=o.eventTimes,E=-1;0<b;){var X=31-Mr(b);N=1<<X,X=l[X],X>E&&(E=X),b&=~N}if(b=E,b=Yn()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*uh(b/1960))-b,10<b){o.timeoutHandle=ot(js.bind(null,o,Ur,ai),b);break}js(o,Ur,ai);break;case 5:js(o,Ur,ai);break;default:throw Error(d(329))}}}return Wn(o,Yn()),o.callbackNode===g?ml.bind(null,o):null}function xo(o,l){var g=hl;return o.current.memoizedState.isDehydrated&&(Us(o,l).flags|=256),o=bo(o,l),o!==2&&(l=Ur,Ur=g,l!==null&&jr(l)),o}function jr(o){Ur===null?Ur=o:Ur.push.apply(Ur,o)}function ya(o){for(var l=o;;){if(l.flags&16384){var g=l.updateQueue;if(g!==null&&(g=g.stores,g!==null))for(var b=0;b<g.length;b++){var E=g[b],N=E.getSnapshot;E=E.value;try{if(!Da(N(),E))return!1}catch{return!1}}}if(g=l.child,l.subtreeFlags&16384&&g!==null)g.return=l,l=g;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Gr(o,l){for(l&=~md,l&=~Fc,o.suspendedLanes|=l,o.pingedLanes&=~l,o=o.expirationTimes;0<l;){var g=31-Mr(l),b=1<<g;o[g]=-1,l&=~b}}function ii(o){if((It&6)!==0)throw Error(d(327));Tn();var l=Vl(o,0);if((l&1)===0)return Wn(o,Yn()),null;var g=bo(o,l);if(o.tag!==0&&g===2){var b=Ou(o);b!==0&&(l=b,g=xo(o,b))}if(g===1)throw g=fl,Us(o,0),Gr(o,l),Wn(o,Yn()),g;if(g===6)throw Error(d(345));return o.finishedWork=o.current.alternate,o.finishedLanes=l,js(o,Ur,ai),Wn(o,Yn()),null}function si(o){br!==null&&br.tag===0&&(It&6)===0&&Tn();var l=It;It|=1;var g=Nn.transition,b=$t;try{if(Nn.transition=null,$t=1,o)return o()}finally{$t=b,Nn.transition=g,It=l,(It&6)===0&&Ja()}}function vd(){aa=Fs.current,An(Fs)}function Us(o,l){o.finishedWork=null,o.finishedLanes=0;var g=o.timeoutHandle;if(g!==pt&&(o.timeoutHandle=pt,lt(g)),In!==null)for(g=In.return;g!==null;){var b=g;switch(Yu(b),b.tag){case 1:b=b.type.childContextTypes,b!=null&&ro();break;case 3:Xi(),An(Pr),An(Ar),rl();break;case 5:Na(b);break;case 4:Xi();break;case 13:An(rn);break;case 19:An(rn);break;case 10:ic(b.type._context);break;case 22:case 23:vd()}g=g.return}if(Jn=o,In=o=_i(o.current,null),ir=aa=l,On=0,fl=null,md=Fc=Is=0,Ur=hl=null,Hi!==null){for(l=0;l<Hi.length;l++)if(g=Hi[l],b=g.interleaved,b!==null){g.interleaved=null;var E=b.next,N=g.pending;if(N!==null){var X=N.next;N.next=E,b.next=X}g.pending=b}Hi=null}return o}function dh(o,l){do{var g=In;try{if(ac(),mr.current=fo,xi){for(var b=mn.memoizedState;b!==null;){var E=b.queue;E!==null&&(E.pending=null),b=b.next}xi=!1}if(gr=0,Hn=Sn=mn=null,Qi=!1,zr=0,Ji.current=null,g===null||g.return===null){On=1,fl=l,In=null;break}e:{var N=o,X=g.return,fe=g,we=l;if(l=ir,fe.flags|=32768,we!==null&&typeof we=="object"&&typeof we.then=="function"){var je=we,Je=fe,St=Je.tag;if((Je.mode&1)===0&&(St===0||St===11||St===15)){var nt=Je.alternate;nt?(Je.updateQueue=nt.updateQueue,Je.memoizedState=nt.memoizedState,Je.lanes=nt.lanes):(Je.updateQueue=null,Je.memoizedState=null)}var vn=dn(X);if(vn!==null){vn.flags&=-257,sl(vn,X,fe,N,l),vn.mode&1&&Jf(N,je,l),l=vn,we=je;var Pt=l.updateQueue;if(Pt===null){var Vt=new Set;Vt.add(we),l.updateQueue=Vt}else Pt.add(we);break e}else{if((l&1)===0){Jf(N,je,l),Gc();break e}we=Error(d(426))}}else if(bn&&fe.mode&1){var Ri=dn(X);if(Ri!==null){(Ri.flags&65536)===0&&(Ri.flags|=256),sl(Ri,X,fe,N,l),Ku(ks(we,fe));break e}}N=we=ks(we,fe),On!==4&&(On=2),hl===null?hl=[N]:hl.push(N),N=X;do{switch(N.tag){case 3:N.flags|=65536,l&=-l,N.lanes|=l;var xe=Vi(N,we,l);Qf(N,xe);break e;case 1:fe=we;var ue=N.type,Te=N.stateNode;if((N.flags&128)===0&&(typeof ue.getDerivedStateFromError=="function"||Te!==null&&typeof Te.componentDidCatch=="function"&&(Zi===null||!Zi.has(Te)))){N.flags|=65536,l&=-l,N.lanes|=l;var Ze=Fr(N,fe,l);Qf(N,Ze);break e}}N=N.return}while(N!==null)}fh(g)}catch(At){l=At,In===g&&g!==null&&(In=g=g.return);continue}break}while(!0)}function $i(){var o=Ki.current;return Ki.current=fo,o===null?fo:o}function Gc(){(On===0||On===3||On===2)&&(On=4),Jn===null||(Is&268435455)===0&&(Fc&268435455)===0||Gr(Jn,ir)}function bo(o,l){var g=It;It|=2;var b=$i();(Jn!==o||ir!==l)&&(ai=null,Us(o,l));do try{Hc();break}catch(E){dh(o,E)}while(!0);if(ac(),It=g,Ki.current=b,In!==null)throw Error(d(261));return Jn=null,ir=0,On}function Hc(){for(;In!==null;)Wc(In)}function BA(){for(;In!==null&&!CA();)Wc(In)}function Wc(o){var l=ph(o.alternate,o,aa);o.memoizedProps=o.pendingProps,l===null?fh(o):In=l,Ji.current=null}function fh(o){var l=o;do{var g=l.alternate;if(o=l.return,(l.flags&32768)===0){if(g=ud(g,l,aa),g!==null){In=g;return}}else{if(g=kA(g,l),g!==null){g.flags&=32767,In=g;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{On=6,In=null;return}}if(l=l.sibling,l!==null){In=l;return}In=l=o}while(l!==null);On===0&&(On=5)}function js(o,l,g){var b=$t,E=Nn.transition;try{Nn.transition=null,$t=1,Gs(o,l,g,b)}finally{Nn.transition=E,$t=b}return null}function Gs(o,l,g,b){do Tn();while(br!==null);if((It&6)!==0)throw Error(d(327));g=o.finishedWork;var E=o.finishedLanes;if(g===null)return null;if(o.finishedWork=null,o.finishedLanes=0,g===o.current)throw Error(d(177));o.callbackNode=null,o.callbackPriority=0;var N=g.lanes|g.childLanes;if(SA(o,N),o===Jn&&(In=Jn=null,ir=0),(g.subtreeFlags&2064)===0&&(g.flags&2064)===0||xr||(xr=!0,Ah(Hu,function(){return Tn(),null})),N=(g.flags&15990)!==0,(g.subtreeFlags&15990)!==0||N){N=Nn.transition,Nn.transition=null;var X=$t;$t=1;var fe=It;It|=4,Ji.current=null,cl(o,g),Ms(g,o),re(o.containerInfo),o.current=g,NA(g),wA(),It=fe,$t=X,Nn.transition=N}else o.current=g;if(xr&&(xr=!1,br=o,yo=E),N=o.pendingLanes,N===0&&(Zi=null),RA(g.stateNode),Wn(o,Yn()),l!==null)for(b=o.onRecoverableError,g=0;g<l.length;g++)E=l[g],b(E.value,{componentStack:E.stack,digest:E.digest});if(Oc)throw Oc=!1,o=pl,pl=null,o;return(yo&1)!==0&&o.tag!==0&&Tn(),N=o.pendingLanes,(N&1)!==0?o===Uc?Os++:(Os=0,Uc=o):Os=0,Ja(),null}function Tn(){if(br!==null){var o=Mf(yo),l=Nn.transition,g=$t;try{if(Nn.transition=null,$t=16>o?16:o,br===null)var b=!1;else{if(o=br,br=null,yo=0,(It&6)!==0)throw Error(d(331));var E=It;for(It|=4,$e=o.current;$e!==null;){var N=$e,X=N.child;if(($e.flags&16)!==0){var fe=N.deletions;if(fe!==null){for(var we=0;we<fe.length;we++){var je=fe[we];for($e=je;$e!==null;){var Je=$e;switch(Je.tag){case 0:case 11:case 15:Er(8,Je,N)}var St=Je.child;if(St!==null)St.return=Je,$e=St;else for(;$e!==null;){Je=$e;var nt=Je.sibling,vn=Je.return;if(sh(Je),Je===je){$e=null;break}if(nt!==null){nt.return=vn,$e=nt;break}$e=vn}}}var Pt=N.alternate;if(Pt!==null){var Vt=Pt.child;if(Vt!==null){Pt.child=null;do{var Ri=Vt.sibling;Vt.sibling=null,Vt=Ri}while(Vt!==null)}}$e=N}}if((N.subtreeFlags&2064)!==0&&X!==null)X.return=N,$e=X;else e:for(;$e!==null;){if(N=$e,(N.flags&2048)!==0)switch(N.tag){case 0:case 11:case 15:Er(9,N,N.return)}var xe=N.sibling;if(xe!==null){xe.return=N.return,$e=xe;break e}$e=N.return}}var ue=o.current;for($e=ue;$e!==null;){X=$e;var Te=X.child;if((X.subtreeFlags&2064)!==0&&Te!==null)Te.return=X,$e=Te;else e:for(X=ue;$e!==null;){if(fe=$e,(fe.flags&2048)!==0)try{switch(fe.tag){case 0:case 11:case 15:kn(9,fe)}}catch(At){Yt(fe,fe.return,At)}if(fe===X){$e=null;break e}var Ze=fe.sibling;if(Ze!==null){Ze.return=fe.return,$e=Ze;break e}$e=fe.return}}if(It=E,Ja(),Ta&&typeof Ta.onPostCommitFiberRoot=="function")try{Ta.onPostCommitFiberRoot(ql,o)}catch{}b=!0}return b}finally{$t=g,Nn.transition=l}}return!1}function ia(o,l,g){l=ks(g,l),l=Vi(o,l,1),o=Wi(o,l,1),l=gn(),o!==null&&(Jo(o,1,l),Wn(o,l))}function Yt(o,l,g){if(o.tag===3)ia(o,o,g);else for(;l!==null;){if(l.tag===3){ia(l,o,g);break}else if(l.tag===1){var b=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(Zi===null||!Zi.has(b))){o=ks(g,o),o=Fr(l,o,1),l=Wi(l,o,1),o=gn(),l!==null&&(Jo(l,1,o),Wn(l,o));break}}l=l.return}}function es(o,l,g){var b=o.pingCache;b!==null&&b.delete(l),l=gn(),o.pingedLanes|=o.suspendedLanes&g,Jn===o&&(ir&g)===g&&(On===4||On===3&&(ir&130023424)===ir&&500>Yn()-Ic?Us(o,0):md|=g),Wn(o,l)}function wi(o,l){l===0&&((o.mode&1)===0?l=1:(l=Yl,Yl<<=1,(Yl&130023424)===0&&(Yl=4194304)));var g=gn();o=Aa(o,l),o!==null&&(Jo(o,l,g),Wn(o,g))}function PA(o){var l=o.memoizedState,g=0;l!==null&&(g=l.retryLane),wi(o,g)}function hh(o,l){var g=0;switch(o.tag){case 13:var b=o.stateNode,E=o.memoizedState;E!==null&&(g=E.retryLane);break;case 19:b=o.stateNode;break;default:throw Error(d(314))}b!==null&&b.delete(l),wi(o,g)}var ph;ph=function(o,l,g){if(o!==null)if(o.memoizedProps!==l.pendingProps||Pr.current)qn=!0;else{if((o.lanes&g)===0&&(l.flags&128)===0)return qn=!1,Bt(o,l,g);qn=(o.flags&131072)!==0}else qn=!1,bn&&(l.flags&1048576)!==0&&$o(l,Jl,l.index);switch(l.lanes=0,l.tag){case 2:var b=l.type;vr(o,l),o=l.pendingProps;var E=ys(l,Ar.current);ws(l,g),E=uc(null,l,b,o,E,g);var N=co();return l.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,wr(b)?(N=!0,Wl(l)):N=!1,l.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,ei(l),E.updater=bi,l.stateNode=E,E._reactInternals=l,al(l,b,o,g),l=Ec(null,l,b,!0,N,g)):(l.tag=0,bn&&N&&Qu(l),Kn(null,l,E,g),l=l.child),l;case 16:b=l.elementType;e:{switch(vr(o,l),o=l.pendingProps,E=b._init,b=E(b._payload),l.type=b,E=l.tag=yd(b),o=ta(b,o),E){case 0:l=sd(null,l,b,o,g);break e;case 1:l=_c(null,l,b,o,g);break e;case 11:l=Zf(null,l,b,o,g);break e;case 14:l=$f(null,l,b,ta(b.type,o),g);break e}throw Error(d(306,b,""))}return l;case 0:return b=l.type,E=l.pendingProps,E=l.elementType===b?E:ta(b,E),sd(o,l,b,E,g);case 1:return b=l.type,E=l.pendingProps,E=l.elementType===b?E:ta(b,E),_c(o,l,b,E,g);case 3:e:{if(nh(l),o===null)throw Error(d(387));b=l.pendingProps,N=l.memoizedState,E=N.element,oc(o,l),oo(l,b,null,g);var X=l.memoizedState;if(b=X.element,me&&N.isDehydrated)if(N={element:b,isDehydrated:!1,cache:X.cache,pendingSuspenseBoundaries:X.pendingSuspenseBoundaries,transitions:X.transitions},l.updateQueue.baseState=N,l.memoizedState=N,l.flags&256){E=ks(Error(d(423)),l),l=rh(o,l,b,g,E);break e}else if(b!==E){E=ks(Error(d(424)),l),l=rh(o,l,b,g,E);break e}else for(me&&(pa=Nu(l.stateNode.containerInfo),Kr=l,bn=!0,ka=null,el=!1),g=Wf(l,null,b,g),l.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(ao(),b===E){l=Ir(o,l,g);break e}Kn(o,l,b,g)}l=l.child}return l;case 5:return nl(l),o===null&&qu(l),b=l.type,E=l.pendingProps,N=o!==null?o.memoizedProps:null,X=E.children,Ne(b,E)?X=null:N!==null&&Ne(b,N)&&(l.flags|=32),wc(o,l),Kn(o,l,X,g),l.child;case 6:return o===null&&qu(l),null;case 13:return ld(o,l,g);case 4:return ea(l,l.stateNode.containerInfo),b=l.pendingProps,o===null?l.child=io(l,null,b,g):Kn(o,l,b,g),l.child;case 11:return b=l.type,E=l.pendingProps,E=l.elementType===b?E:ta(b,E),Zf(o,l,b,E,g);case 7:return Kn(o,l,l.pendingProps,g),l.child;case 8:return Kn(o,l,l.pendingProps.children,g),l.child;case 12:return Kn(o,l,l.pendingProps.children,g),l.child;case 10:e:{if(b=l.type._context,E=l.pendingProps,N=l.memoizedProps,X=E.value,Ju(l,b,X),N!==null)if(Da(N.value,X)){if(N.children===E.children&&!Pr.current){l=Ir(o,l,g);break e}}else for(N=l.child,N!==null&&(N.return=l);N!==null;){var fe=N.dependencies;if(fe!==null){X=N.child;for(var we=fe.firstContext;we!==null;){if(we.context===b){if(N.tag===1){we=ma(-1,g&-g),we.tag=2;var je=N.updateQueue;if(je!==null){je=je.shared;var Je=je.pending;Je===null?we.next=we:(we.next=Je.next,Je.next=we),je.pending=we}}N.lanes|=g,we=N.alternate,we!==null&&(we.lanes|=g),sc(N.return,g,l),fe.lanes|=g;break}we=we.next}}else if(N.tag===10)X=N.type===l.type?null:N.child;else if(N.tag===18){if(X=N.return,X===null)throw Error(d(341));X.lanes|=g,fe=X.alternate,fe!==null&&(fe.lanes|=g),sc(X,g,l),X=N.sibling}else X=N.child;if(X!==null)X.return=N;else for(X=N;X!==null;){if(X===l){X=null;break}if(N=X.sibling,N!==null){N.return=X.return,X=N;break}X=X.return}N=X}Kn(o,l,E.children,g),l=l.child}return l;case 9:return E=l.type,b=l.pendingProps.children,ws(l,g),E=Jr(E),b=b(E),l.flags|=1,Kn(o,l,b,g),l.child;case 14:return b=l.type,E=ta(b,l.pendingProps),E=ta(b.type,E),$f(o,l,b,E,g);case 15:return eh(o,l,l.type,l.pendingProps,g);case 17:return b=l.type,E=l.pendingProps,E=l.elementType===b?E:ta(b,E),vr(o,l),l.tag=1,wr(b)?(o=!0,Wl(l)):o=!1,ws(l,g),xc(l,b,E),al(l,b,E,g),Ec(null,l,b,!0,o,g);case 19:return Dc(o,l,g);case 22:return th(o,l,g)}throw Error(d(156,l.tag))};function Ah(o,l){return ju(o,l)}function MA(o,l,g,b){this.tag=o,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sa(o,l,g,b){return new MA(o,l,g,b)}function Xc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function yd(o){if(typeof o=="function")return Xc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===R)return 11;if(o===P)return 14}return 2}function _i(o,l){var g=o.alternate;return g===null?(g=sa(o.tag,l,o.key,o.mode),g.elementType=o.elementType,g.type=o.type,g.stateNode=o.stateNode,g.alternate=o,o.alternate=g):(g.pendingProps=l,g.type=o.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=o.flags&14680064,g.childLanes=o.childLanes,g.lanes=o.lanes,g.child=o.child,g.memoizedProps=o.memoizedProps,g.memoizedState=o.memoizedState,g.updateQueue=o.updateQueue,l=o.dependencies,g.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},g.sibling=o.sibling,g.index=o.index,g.ref=o.ref,g}function gl(o,l,g,b,E,N){var X=2;if(b=o,typeof o=="function")Xc(o)&&(X=1);else if(typeof o=="string")X=5;else e:switch(o){case A:return Ei(g.children,E,N,l);case y:X=8,E|=8;break;case x:return o=sa(12,g,l,E|2),o.elementType=x,o.lanes=N,o;case T:return o=sa(13,g,l,E),o.elementType=T,o.lanes=N,o;case D:return o=sa(19,g,l,E),o.elementType=D,o.lanes=N,o;case O:return So(g,E,N,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case S:X=10;break e;case C:X=9;break e;case R:X=11;break e;case P:X=14;break e;case M:X=16,b=null;break e}throw Error(d(130,o==null?o:typeof o,""))}return l=sa(X,g,l,E),l.elementType=o,l.type=b,l.lanes=N,l}function Ei(o,l,g,b){return o=sa(7,o,b,l),o.lanes=g,o}function So(o,l,g,b){return o=sa(22,o,b,l),o.elementType=O,o.lanes=g,o.stateNode={isHidden:!1},o}function vl(o,l,g){return o=sa(6,o,null,l),o.lanes=g,o}function xd(o,l,g){return l=sa(4,o.children!==null?o.children:[],o.key,l),l.lanes=g,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function zA(o,l,g,b,E){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=pt,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uu(0),this.expirationTimes=Uu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uu(0),this.identifierPrefix=b,this.onRecoverableError=E,me&&(this.mutableSourceEagerHydrationData=null)}function mh(o,l,g,b,E,N,X,fe,we){return o=new zA(o,l,g,fe,we),l===1?(l=1,N===!0&&(l|=8)):l=0,N=sa(3,null,null,l),o.current=N,N.stateNode=o,N.memoizedState={element:b,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},ei(N),o}function gh(o){if(!o)return Ui;o=o._reactInternals;e:{if(Q(o)!==o||o.tag!==1)throw Error(d(170));var l=o;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(wr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(d(171))}if(o.tag===1){var g=o.type;if(wr(g))return Iu(o,g,l)}return l}function bd(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(d(188)):(o=Object.keys(o).join(","),Error(d(268,o)));return o=W(l),o===null?null:o.stateNode}function yl(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var g=o.retryLane;o.retryLane=g!==0&&g<l?g:l}}function Qc(o,l){yl(o,l),(o=o.alternate)&&yl(o,l)}function vh(o){return o=W(o),o===null?null:o.stateNode}function Co(){return null}return n.attemptContinuousHydration=function(o){if(o.tag===13){var l=Aa(o,134217728);if(l!==null){var g=gn();sr(l,o,134217728,g)}Qc(o,134217728)}},n.attemptDiscreteHydration=function(o){if(o.tag===13){var l=Aa(o,1);if(l!==null){var g=gn();sr(l,o,1,g)}Qc(o,1)}},n.attemptHydrationAtCurrentPriority=function(o){if(o.tag===13){var l=Ci(o),g=Aa(o,l);if(g!==null){var b=gn();sr(g,o,l,b)}Qc(o,l)}},n.attemptSynchronousHydration=function(o){switch(o.tag){case 3:var l=o.stateNode;if(l.current.memoizedState.isDehydrated){var g=Ko(l.pendingLanes);g!==0&&(bs(l,g|1),Wn(l,Yn()),(It&6)===0&&(vo(),Ja()))}break;case 13:si(function(){var b=Aa(o,1);if(b!==null){var E=gn();sr(b,o,1,E)}}),Qc(o,1)}},n.batchedUpdates=function(o,l){var g=It;It|=1;try{return o(l)}finally{It=g,It===0&&(vo(),Kl&&Ja())}},n.createComponentSelector=function(o){return{$$typeof:ra,value:o}},n.createContainer=function(o,l,g,b,E,N,X){return mh(o,l,!1,null,g,b,E,N,X)},n.createHasPseudoClassSelector=function(o){return{$$typeof:Or,value:o}},n.createHydrationContainer=function(o,l,g,b,E,N,X,fe,we){return o=mh(g,b,!0,o,E,N,X,fe,we),o.context=gh(null),g=o.current,b=gn(),E=Ci(g),N=ma(b,E),N.callback=l??null,Wi(g,N,E),o.current.lanes=E,Jo(o,E,b),Wn(o,b),o},n.createPortal=function(o,l,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:o,containerInfo:l,implementation:g}},n.createRoleSelector=function(o){return{$$typeof:Pc,value:o}},n.createTestNameSelector=function(o){return{$$typeof:Mc,value:o}},n.createTextSelector=function(o){return{$$typeof:zc,value:o}},n.deferredUpdates=function(o){var l=$t,g=Nn.transition;try{return Nn.transition=null,$t=16,o()}finally{$t=l,Nn.transition=g}},n.discreteUpdates=function(o,l,g,b,E){var N=$t,X=Nn.transition;try{return Nn.transition=null,$t=1,o(l,g,b,E)}finally{$t=N,Nn.transition=X,It===0&&vo()}},n.findAllNodes=Ad,n.findBoundingRects=function(o,l){if(!ye)throw Error(d(363));l=Ad(o,l),o=[];for(var g=0;g<l.length;g++)o.push(Ae(l[g]));for(l=o.length-1;0<l;l--){g=o[l];for(var b=g.x,E=b+g.width,N=g.y,X=N+g.height,fe=l-1;0<=fe;fe--)if(l!==fe){var we=o[fe],je=we.x,Je=je+we.width,St=we.y,nt=St+we.height;if(b>=je&&N>=St&&E<=Je&&X<=nt){o.splice(l,1);break}else if(b!==je||g.width!==we.width||nt<N||St>X){if(!(N!==St||g.height!==we.height||Je<b||je>E)){je>b&&(we.width+=je-b,we.x=b),Je<E&&(we.width=E-je),o.splice(l,1);break}}else{St>N&&(we.height+=St-N,we.y=N),nt<X&&(we.height=X-St),o.splice(l,1);break}}}return o},n.findHostInstance=bd,n.findHostInstanceWithNoPortals=function(o){return o=ge(o),o=o!==null?L(o):null,o===null?null:o.stateNode},n.findHostInstanceWithWarning=function(o){return bd(o)},n.flushControlled=function(o){var l=It;It|=1;var g=Nn.transition,b=$t;try{Nn.transition=null,$t=1,o()}finally{$t=b,Nn.transition=g,It=l,It===0&&(vo(),Ja())}},n.flushPassiveEffects=Tn,n.flushSync=si,n.focusWithin=function(o,l){if(!ye)throw Error(d(363));for(o=hd(o),l=ch(o,l),l=Array.from(l),o=0;o<l.length;){var g=l[o++];if(!Xe(g)){if(g.tag===5&&dt(g.stateNode))return!0;for(g=g.child;g!==null;)l.push(g),g=g.sibling}}return!1},n.getCurrentUpdatePriority=function(){return $t},n.getFindAllNodesFailureDescription=function(o,l){if(!ye)throw Error(d(363));var g=0,b=[];o=[hd(o),0];for(var E=0;E<o.length;){var N=o[E++],X=o[E++],fe=l[X];if((N.tag!==5||!Xe(N))&&(Fn(N,fe)&&(b.push(pd(fe)),X++,X>g&&(g=X)),X<l.length))for(N=N.child;N!==null;)o.push(N,X),N=N.sibling}if(g<l.length){for(o=[];g<l.length;g++)o.push(pd(l[g]));return`findAllNodes was able to match part of the selector:
|
|
308
308
|
`+(b.join(" > ")+`
|
|
309
309
|
|
|
310
310
|
No matching component was found for:
|
|
311
|
-
`)+o.join(" > ")}return null},n.getPublicRootInstance=function(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return le(o.child.stateNode);default:return o.child.stateNode}},n.injectIntoDevTools=function(o){if(o={bundleType:o.bundleType,version:o.version,rendererPackageName:o.rendererPackageName,rendererConfig:o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:h.ReactCurrentDispatcher,findHostInstanceByFiber:vh,findFiberByHostInstance:o.findFiberByHostInstance||Co,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")o=!1;else{var l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(l.isDisabled||!l.supportsFiber)o=!0;else{try{ql=l.inject(o),Ta=l}catch{}o=!!l.checkDCE}}return o},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(o,l,g,b){if(!ye)throw Error(d(363));o=Ad(o,l);var E=Jt(o,g,b).disconnect;return{disconnect:function(){E()}}},n.registerMutableSourceForHydration=function(o,l){var g=l._getVersion;g=g(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,g]:o.mutableSourceEagerHydrationData.push(l,g)},n.runWithPriority=function(o,l){var g=$t;try{return $t=o,l()}finally{$t=g}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(o,l,g,b){var E=l.current,N=gn(),
|
|
311
|
+
`)+o.join(" > ")}return null},n.getPublicRootInstance=function(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return le(o.child.stateNode);default:return o.child.stateNode}},n.injectIntoDevTools=function(o){if(o={bundleType:o.bundleType,version:o.version,rendererPackageName:o.rendererPackageName,rendererConfig:o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:h.ReactCurrentDispatcher,findHostInstanceByFiber:vh,findFiberByHostInstance:o.findFiberByHostInstance||Co,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")o=!1;else{var l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(l.isDisabled||!l.supportsFiber)o=!0;else{try{ql=l.inject(o),Ta=l}catch{}o=!!l.checkDCE}}return o},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(o,l,g,b){if(!ye)throw Error(d(363));o=Ad(o,l);var E=Jt(o,g,b).disconnect;return{disconnect:function(){E()}}},n.registerMutableSourceForHydration=function(o,l){var g=l._getVersion;g=g(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,g]:o.mutableSourceEagerHydrationData.push(l,g)},n.runWithPriority=function(o,l){var g=$t;try{return $t=o,l()}finally{$t=g}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(o,l,g,b){var E=l.current,N=gn(),X=Ci(E);return g=gh(g),l.context===null?l.context=g:l.pendingContext=g,l=ma(N,X),l.payload={element:o},b=b===void 0?null:b,b!==null&&(l.callback=b),o=Wi(E,l,X),o!==null&&(sr(o,E,X,N),so(o,E,X)),X},n}),og}var lg={exports:{}};/**
|
|
312
312
|
* @license React
|
|
313
313
|
* react-reconciler.development.js
|
|
314
314
|
*
|
|
@@ -316,13 +316,13 @@ No matching component was found for:
|
|
|
316
316
|
*
|
|
317
317
|
* This source code is licensed under the MIT license found in the
|
|
318
318
|
* LICENSE file in the root directory of this source tree.
|
|
319
|
-
*/var P2;function T8(){return P2||(P2=1,process.env.NODE_ENV!=="production"&&(lg.exports=function(e){var n={},s=oe,i=Jg(),c=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,d=!1;function h(r){d=r}function p(r){if(!d){for(var a=arguments.length,f=new Array(a>1?a-1:0),m=1;m<a;m++)f[m-1]=arguments[m];A("warn",r,f)}}function u(r){if(!d){for(var a=arguments.length,f=new Array(a>1?a-1:0),m=1;m<a;m++)f[m-1]=arguments[m];A("error",r,f)}}function A(r,a,f){{var m=c.ReactDebugCurrentFrame,v=m.getStackAddendum();v!==""&&(a+="%s",f=f.concat([v]));var _=f.map(function(B){return String(B)});_.unshift("Warning: "+a),Function.prototype.apply.call(console[r],console,_)}}var y=Object.assign;function x(r){return r._reactInternals}function S(r,a){r._reactInternals=a}var C=!1,R=!1,T=!1,D=!0,P=!0,M=!0,O=!0,I=0,
|
|
319
|
+
*/var P2;function T8(){return P2||(P2=1,process.env.NODE_ENV!=="production"&&(lg.exports=function(e){var n={},s=oe,i=Jg(),c=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,d=!1;function h(r){d=r}function p(r){if(!d){for(var a=arguments.length,f=new Array(a>1?a-1:0),m=1;m<a;m++)f[m-1]=arguments[m];A("warn",r,f)}}function u(r){if(!d){for(var a=arguments.length,f=new Array(a>1?a-1:0),m=1;m<a;m++)f[m-1]=arguments[m];A("error",r,f)}}function A(r,a,f){{var m=c.ReactDebugCurrentFrame,v=m.getStackAddendum();v!==""&&(a+="%s",f=f.concat([v]));var _=f.map(function(B){return String(B)});_.unshift("Warning: "+a),Function.prototype.apply.call(console[r],console,_)}}var y=Object.assign;function x(r){return r._reactInternals}function S(r,a){r._reactInternals=a}var C=!1,R=!1,T=!1,D=!0,P=!0,M=!0,O=!0,I=0,Y=1,K=2,q=3,Q=4,V=5,ge=6,W=7,se=8,L=9,ne=10,le=11,pe=12,J=13,ae=14,re=15,U=16,ee=17,Ee=18,Re=19,Ne=21,Ue=22,ot=23,lt=24,pt=25,Lt=Symbol.for("react.element"),qe=Symbol.for("react.portal"),Dt=Symbol.for("react.fragment"),me=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),de=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),ye=Symbol.for("react.memo"),Ce=Symbol.for("react.lazy"),Ae=Symbol.for("react.scope"),ze=Symbol.for("react.debug_trace_mode"),Xe=Symbol.for("react.offscreen"),Ie=Symbol.for("react.legacy_hidden"),dt=Symbol.for("react.cache"),Jt=Symbol.for("react.tracing_marker"),zt=Symbol.iterator,pr="@@iterator";function Ye(r){if(r===null||typeof r!="object")return null;var a=zt&&r[zt]||r[pr];return typeof a=="function"?a:null}function ht(r,a,f){var m=r.displayName;if(m)return m;var v=a.displayName||a.name||"";return v!==""?f+"("+v+")":f}function Nt(r){return r.displayName||"Context"}function et(r){if(r==null)return null;if(typeof r.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Dt:return"Fragment";case qe:return"Portal";case k:return"Profiler";case me:return"StrictMode";case j:return"Suspense";case $:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case de:var a=r;return Nt(a)+".Consumer";case ce:var f=r;return Nt(f._context)+".Provider";case G:return ht(r,r.render,"ForwardRef");case ye:var m=r.displayName||null;return m!==null?m:et(r.type)||"Memo";case Ce:{var v=r,_=v._payload,B=v._init;try{return et(B(_))}catch{return null}}}return null}function pn(r,a,f){var m=a.displayName||a.name||"";return r.displayName||(m!==""?f+"("+m+")":f)}function Xn(r){return r.displayName||"Context"}function it(r){var a=r.tag,f=r.type;switch(a){case lt:return"Cache";case L:var m=f;return Xn(m)+".Consumer";case ne:var v=f;return Xn(v._context)+".Provider";case Ee:return"DehydratedFragment";case le:return pn(f,f.render,"ForwardRef");case W:return"Fragment";case V:return f;case Q:return"Portal";case q:return"Root";case ge:return"Text";case U:return et(f);case se:return f===me?"StrictMode":"Mode";case Ue:return"Offscreen";case pe:return"Profiler";case Ne:return"Scope";case J:return"Suspense";case Re:return"SuspenseList";case pt:return"TracingMarker";case Y:case I:case ee:case K:case ae:case re:if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;break}return null}var st=0,En=1,un=2,Ut=4,Ea=16,Ra=32,ps=64,Qt=128,Va=256,As=512,Ii=1024,Ai=2048,qa=4096,ms=8192,Lu=16384,AA=32767,Yo=32768,tr=65536,ku=131072,Nf=1048576,to=2097152,gs=4194304,Nu=8388608,Oi=16777216,Bu=33554432,Pu=Ut|Ii|0,Vo=un|Ut|Ea|Ra|As|qa|ms,qo=Ut|ps|As|ms,no=Ai|Ea,mi=gs|Nu|to,mA=c.ReactCurrentOwner;function jl(r){var a=r,f=r;if(r.alternate)for(;a.return;)a=a.return;else{var m=a;do a=m,(a.flags&(un|qa))!==st&&(f=a.return),m=a.return;while(m)}return a.tag===q?f:null}function gA(r){return jl(r)===r}function vA(r){{var a=mA.current;if(a!==null&&a.tag===Y){var f=a,m=f.stateNode;m._warnedAboutRefsInRender||u("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",it(f)||"A component"),m._warnedAboutRefsInRender=!0}}var v=x(r);return v?jl(v)===v:!1}function Bf(r){if(jl(r)!==r)throw new Error("Unable to find node on an unmounted component.")}function Gl(r){var a=r.alternate;if(!a){var f=jl(r);if(f===null)throw new Error("Unable to find node on an unmounted component.");return f!==r?null:r}for(var m=r,v=a;;){var _=m.return;if(_===null)break;var B=_.alternate;if(B===null){var F=_.return;if(F!==null){m=v=F;continue}break}if(_.child===B.child){for(var H=_.child;H;){if(H===m)return Bf(_),r;if(H===v)return Bf(_),a;H=H.sibling}throw new Error("Unable to find node on an unmounted component.")}if(m.return!==v.return)m=_,v=B;else{for(var Z=!1,ie=_.child;ie;){if(ie===m){Z=!0,m=_,v=B;break}if(ie===v){Z=!0,v=_,m=B;break}ie=ie.sibling}if(!Z){for(ie=B.child;ie;){if(ie===m){Z=!0,m=B,v=_;break}if(ie===v){Z=!0,v=B,m=_;break}ie=ie.sibling}if(!Z)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(m.alternate!==v)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(m.tag!==q)throw new Error("Unable to find node on an unmounted component.");return m.stateNode.current===m?r:a}function vs(r){var a=Gl(r);return a!==null?Hl(a):null}function Hl(r){if(r.tag===V||r.tag===ge)return r;for(var a=r.child;a!==null;){var f=Hl(a);if(f!==null)return f;a=a.sibling}return null}function Mu(r){var a=Gl(r);return a!==null?Pf(a):null}function Pf(r){if(r.tag===V||r.tag===ge)return r;for(var a=r.child;a!==null;){if(a.tag!==Q){var f=Pf(a);if(f!==null)return f}a=a.sibling}return null}var zu=Array.isArray;function Qn(r){return zu(r)}var Ka=e.getPublicInstance,An=e.getRootHostContext,hn=e.getChildHostContext,Ui=e.prepareForCommit,Ar=e.resetAfterCommit,Pr=e.createInstance,gi=e.appendInitialChild,ys=e.finalizeInitialChildren,wr=e.prepareUpdate,ro=e.shouldSetTextContent,Fu=e.createTextInstance,Iu=e.scheduleTimeout,Wl=e.cancelTimeout,Xl=e.noTimeout,Mr=e.isPrimaryRenderer,yA=e.warnsIfNotActing,qr=e.supportsMutation,Ql=e.supportsPersistence,_r=e.supportsHydration,Yl=e.getInstanceFromNode;e.beforeActiveInstanceBlur,e.afterActiveInstanceBlur;var Ko=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var Vl=e.getCurrentEventPriority,xA=e.detachDeletedInstance,bA=e.supportsMicrotasks,Ou=e.scheduleMicrotask,xs=e.supportsTestSelectors,Uu=e.findFiberRoot,Jo=e.getBoundingRect,SA=e.getTextContent,bs=e.isHiddenSubtree,$t=e.matchAccessibilityRole,Mf=e.setFocusIfFocusable,ju=e.setupIntersectionObserver,zf=e.appendChild,CA=e.appendChildToContainer,wA=e.commitTextUpdate,Yn=e.commitMount,Gu=e.commitUpdate,_A=e.insertBefore,Hu=e.insertInContainerBefore,EA=e.removeChild,ql=e.removeChildFromContainer,Ta=e.resetTextContent,RA=e.hideInstance,TA=e.hideTextInstance,Da=e.unhideInstance,vi=e.unhideTextInstance,Kl=e.clearContainer,Wu=e.cloneInstance,Xu=e.createContainerChildSet,Ff=e.appendChildToContainerChildSet,Ja=e.finalizeContainerChildren,ji=e.replaceContainerChildren,Ss=e.cloneHiddenInstance,Zo=e.cloneHiddenTextInstance,Jl=e.canHydrateInstance,fa=e.canHydrateTextInstance,ha=e.canHydrateSuspenseInstance,Gi=e.isSuspenseInstancePending,La=e.isSuspenseInstanceFallback,yi=e.getSuspenseInstanceFallbackErrorDetails,Cs=e.registerSuspenseInstanceRetry,$o=e.getNextHydratableSibling,Qu=e.getFirstHydratableChild,Yu=e.getFirstHydratableChildWithinContainer,Kr=e.getFirstHydratableChildWithinSuspenseInstance,pa=e.hydrateInstance,bn=e.hydrateTextInstance,el=e.hydrateSuspenseInstance,ka=e.getNextHydratableInstanceAfterSuspenseInstance,If=e.commitHydratedContainer,Of=e.commitHydratedSuspenseInstance,Vu=e.clearSuspenseBoundary,qu=e.clearSuspenseBoundaryFromContainer,Uf=e.shouldDeleteUnhydratedTailInstances,Zl=e.didNotMatchHydratedContainerTextInstance,jf=e.didNotMatchHydratedTextInstance,ao=e.didNotHydrateInstanceWithinContainer,Ku=e.didNotHydrateInstanceWithinSuspenseInstance,DA=e.didNotHydrateInstance,$l=e.didNotFindHydratableInstanceWithinContainer,LA=e.didNotFindHydratableTextInstanceWithinContainer,tl=e.didNotFindHydratableSuspenseInstanceWithinContainer,ec=e.didNotFindHydratableInstanceWithinSuspenseInstance,Gf=e.didNotFindHydratableTextInstanceWithinSuspenseInstance,Hf=e.didNotFindHydratableSuspenseInstanceWithinSuspenseInstance,io=e.didNotFindHydratableInstance,Wf=e.didNotFindHydratableTextInstance,tc=e.didNotFindHydratableSuspenseInstance,nc=e.errorHydratingContainer,Za=0,rc,ac,Ju,ic,sc,ws,Jr;function Hi(){}Hi.__reactDisabledLog=!0;function Zu(){{if(Za===0){rc=console.log,ac=console.info,Ju=console.warn,ic=console.error,sc=console.group,ws=console.groupCollapsed,Jr=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Hi,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}Za++}}function Xf(){{if(Za--,Za===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:y({},r,{value:rc}),info:y({},r,{value:ac}),warn:y({},r,{value:Ju}),error:y({},r,{value:ic}),group:y({},r,{value:sc}),groupCollapsed:y({},r,{value:ws}),groupEnd:y({},r,{value:Jr})})}Za<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Aa=c.ReactCurrentDispatcher,$a;function ei(r,a,f){{if($a===void 0)try{throw Error()}catch(v){var m=v.stack.trim().match(/\n( *(at )?)/);$a=m&&m[1]||""}return`
|
|
320
320
|
`+$a+r}}var oc=!1,ma;{var Wi=typeof WeakMap=="function"?WeakMap:Map;ma=new Wi}function so(r,a){if(!r||oc)return"";{var f=ma.get(r);if(f!==void 0)return f}var m;oc=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=Aa.current,Aa.current=null,Zu();try{if(a){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(Me){m=Me}Reflect.construct(r,[],B)}else{try{B.call()}catch(Me){m=Me}r.call(B.prototype)}}else{try{throw Error()}catch(Me){m=Me}r()}}catch(Me){if(Me&&m&&typeof Me.stack=="string"){for(var F=Me.stack.split(`
|
|
321
|
-
`),
|
|
322
|
-
`),
|
|
323
|
-
`+F[J].replace(" at new "," at ");return r.displayName&&ve.includes("<anonymous>")&&(ve=ve.replace("<anonymous>",r.displayName)),typeof r=="function"&&ma.set(r,ve),ve}while(J>=1&&se>=0);break}}}finally{oc=!1,Aa.current=_,Xf(),Error.prepareStackTrace=v}var _e=r?r.displayName||r.name:"",ke=_e?ei(_e):"";return typeof r=="function"&&ma.set(r,ke),ke}function Qf(r,a,f){return so(r,!0)}function oo(r,a,f){return so(r,!1)}function Yf(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function _s(r,a,f){if(r==null)return"";if(typeof r=="function")return so(r,Yf(r));if(typeof r=="string")return ei(r);switch(r){case U:return ei("Suspense");case Z:return ei("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case j:return oo(r.render);case ye:return _s(r.type,a,f);case Ce:{var m=r,v=m._payload,_=m._init;try{return _s(_(v),a,f)}catch{}}}return""}var Zr=Object.prototype.hasOwnProperty,lo={},Es=c.ReactDebugCurrentFrame;function $r(r){if(r){var a=r._owner,f=_s(r.type,r._source,a?a.type:null);Es.setExtraStackFrame(f)}else Es.setExtraStackFrame(null)}function ea(r,a,f,m,v){{var _=Function.call.bind(Zr);for(var B in r)if(_(r,B)){var F=void 0;try{if(typeof r[B]!="function"){var W=Error((m||"React class")+": "+f+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw W.name="Invariant Violation",W}F=r[B](a,B,m,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(J){F=J}F&&!(F instanceof Error)&&($r(v),u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",f,B,typeof F),$r(null)),F instanceof Error&&!(F.message in lo)&&(lo[F.message]=!0,$r(v),u("Failed %s type: %s",f,F.message),$r(null))}}}var Xi=[],nl;nl=[];var Na=-1;function rn(r){return{current:r}}function jn(r,a){if(Na<0){u("Unexpected pop.");return}a!==nl[Na]&&u("Unexpected Fiber popped."),r.current=Xi[Na],Xi[Na]=null,nl[Na]=null,Na--}function Gn(r,a,f){Na++,Xi[Na]=r.current,nl[Na]=f,r.current=a}var rl;rl={};var mr={};Object.freeze(mr);var Ba=rn(mr),gr=rn(!1),mn=mr;function Sn(r,a,f){return f&&zr(a)?mn:Ba.current}function Hn(r,a,f){{var m=r.stateNode;m.__reactInternalMemoizedUnmaskedChildContext=a,m.__reactInternalMemoizedMaskedChildContext=f}}function xi(r,a){{var f=r.type,m=f.contextTypes;if(!m)return mr;var v=r.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===a)return v.__reactInternalMemoizedMaskedChildContext;var _={};for(var B in m)_[B]=a[B];{var F=it(r)||"Unknown";ea(m,_,"context",F)}return v&&Hn(r,a,_),_}}function Qi(){return gr.current}function zr(r){{var a=r.childContextTypes;return a!=null}}function lc(r){jn(gr,r),jn(Ba,r)}function Vn(r){jn(gr,r),jn(Ba,r)}function cc(r,a,f){{if(Ba.current!==mr)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Gn(Ba,a,r),Gn(gr,f,r)}}function uc(r,a,f){{var m=r.stateNode,v=a.childContextTypes;if(typeof m.getChildContext!="function"){{var _=it(r)||"Unknown";rl[_]||(rl[_]=!0,u("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",_,_))}return f}var B=m.getChildContext();for(var F in B)if(!(F in v))throw new Error((it(r)||"Unknown")+'.getChildContext(): key "'+F+'" is not defined in childContextTypes.');{var W=it(r)||"Unknown";ea(v,B,"child context",W)}return y({},f,B)}}function co(r){{var a=r.stateNode,f=a&&a.__reactInternalMemoizedMergedChildContext||mr;return mn=Ba.current,Gn(Ba,f,r),Gn(gr,gr.current,r),!0}}function Pa(r,a,f){{var m=r.stateNode;if(!m)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(f){var v=uc(r,a,mn);m.__reactInternalMemoizedMergedChildContext=v,jn(gr,r),jn(Ba,r),Gn(Ba,v,r),Gn(gr,f,r)}else jn(gr,r),Gn(gr,f,r)}}function ga(r){{if(!gA(r)||r.tag!==V)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var a=r;do{switch(a.tag){case q:return a.stateNode.context;case V:{var f=a.type;if(zr(f))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var ti=0,dc=1,At=0,jt=1,tn=2,Rn=8,Ma=16,$u=Math.clz32?Math.clz32:Kf,Vf=Math.log,qf=Math.LN2;function Kf(r){var a=r>>>0;return a===0?32:31-(Vf(a)/qf|0)|0}var Rs=31,Pe=0,Ln=0,vt=1,Ts=2,za=4,Yi=8,Fa=16,uo=32,Ds=4194240,Ls=64,fc=128,hc=256,pc=512,ed=1024,Ac=2048,td=4096,nd=8192,mc=16384,gc=32768,vc=65536,fo=131072,rd=262144,ad=524288,id=1048576,ta=2097152,ho=130023424,bi=4194304,yc=8388608,xc=16777216,bc=33554432,al=67108864,ks=bi,Ns=134217728,Sc=268435455,il=268435456,Vi=536870912,Fr=1073741824;function Jf(r){{if(r&vt)return"Sync";if(r&Ts)return"InputContinuousHydration";if(r&za)return"InputContinuous";if(r&Yi)return"DefaultHydration";if(r&Fa)return"Default";if(r&uo)return"TransitionHydration";if(r&Ds)return"Transition";if(r&ho)return"Retry";if(r&Ns)return"SelectiveHydration";if(r&il)return"IdleHydration";if(r&Vi)return"Idle";if(r&Fr)return"Offscreen"}}var dn=-1,sl=Ls,Cc=bi;function qn(r){switch(Bs(r)){case vt:return vt;case Ts:return Ts;case za:return za;case Yi:return Yi;case Fa:return Fa;case uo:return uo;case Ls:case fc:case hc:case pc:case ed:case Ac:case td:case nd:case mc:case gc:case vc:case fo:case rd:case ad:case id:case ta:return r&Ds;case bi:case yc:case xc:case bc:case al:return r&ho;case Ns:return Ns;case il:return il;case Vi:return Vi;case Fr:return Fr;default:return u("Should have found matching lanes. This is a bug in React."),r}}function Kn(r,a){var f=r.pendingLanes;if(f===Pe)return Pe;var m=Pe,v=r.suspendedLanes,_=r.pingedLanes,B=f⪼if(B!==Pe){var F=B&~v;if(F!==Pe)m=qn(F);else{var W=B&_;W!==Pe&&(m=qn(W))}}else{var J=f&~v;J!==Pe?m=qn(J):_!==Pe&&(m=qn(_))}if(m===Pe)return Pe;if(a!==Pe&&a!==m&&(a&v)===Pe){var se=Bs(m),ve=Bs(a);if(se>=ve||se===Fa&&(ve&Ds)!==Pe)return a}(m&za)!==Pe&&(m|=f&Fa);var _e=r.entangledLanes;if(_e!==Pe)for(var ke=r.entanglements,Me=m&_e;Me>0;){var Be=Si(Me),lt=1<<Be;m|=ke[Be],Me&=~lt}return m}function Zf(r,a){for(var f=r.eventTimes,m=dn;a>0;){var v=Si(a),_=1<<v,B=f[v];B>m&&(m=B),a&=~_}return m}function $f(r,a){switch(r){case vt:case Ts:case za:return a+250;case Yi:case Fa:case uo:case Ls:case fc:case hc:case pc:case ed:case Ac:case td:case nd:case mc:case gc:case vc:case fo:case rd:case ad:case id:case ta:return a+5e3;case bi:case yc:case xc:case bc:case al:return dn;case Ns:case il:case Vi:case Fr:return dn;default:return u("Should have found matching lanes. This is a bug in React."),dn}}function eh(r,a){for(var f=r.pendingLanes,m=r.suspendedLanes,v=r.pingedLanes,_=r.expirationTimes,B=f;B>0;){var F=Si(B),W=1<<F,J=_[F];J===dn?((W&m)===Pe||(W&v)!==Pe)&&(_[F]=$f(W,a)):J<=a&&(r.expiredLanes|=W),B&=~W}}function th(r){return qn(r.pendingLanes)}function wc(r){var a=r.pendingLanes&~Fr;return a!==Pe?a:a&Fr?Fr:Pe}function sd(r){return(r&vt)!==Pe}function _c(r){return(r&Sc)!==Pe}function Ec(r){return(r&ho)===r}function nh(r){var a=vt|za|Fa;return(r&a)===Pe}function rh(r){return(r&Ds)===r}function po(r,a){var f=Ts|za|Yi|Fa;return(a&f)!==Pe}function od(r,a){return(a&r.expiredLanes)!==Pe}function ld(r){return(r&Ds)!==Pe}function Rc(){var r=sl;return sl<<=1,(sl&Ds)===Pe&&(sl=Ls),r}function Tc(){var r=Cc;return Cc<<=1,(Cc&ho)===Pe&&(Cc=bi),r}function Bs(r){return r&-r}function Ao(r){return Bs(r)}function Si(r){return 31-$u(r)}function Dc(r){return Si(r)}function vr(r,a){return(r&a)!==Pe}function Ir(r,a){return(r&a)===a}function Bt(r,a){return r|a}function na(r,a){return r&~a}function cd(r,a){return r&a}function Lc(r){return r}function ol(r,a){return r!==Ln&&r<a?r:a}function mo(r){for(var a=[],f=0;f<Rs;f++)a.push(r);return a}function qi(r,a,f){r.pendingLanes|=a,a!==Vi&&(r.suspendedLanes=Pe,r.pingedLanes=Pe);var m=r.eventTimes,v=Dc(a);m[v]=f}function ah(r,a){r.suspendedLanes|=a,r.pingedLanes&=~a;for(var f=r.expirationTimes,m=a;m>0;){var v=Si(m),_=1<<v;f[v]=dn,m&=~_}}function go(r,a,f){r.pingedLanes|=r.suspendedLanes&a}function yr(r,a){var f=r.pendingLanes&~a;r.pendingLanes=a,r.suspendedLanes=Pe,r.pingedLanes=Pe,r.expiredLanes&=a,r.mutableReadLanes&=a,r.entangledLanes&=a;for(var m=r.entanglements,v=r.eventTimes,_=r.expirationTimes,B=f;B>0;){var F=Si(B),W=1<<F;m[F]=Pe,v[F]=dn,_[F]=dn,B&=~W}}function ud(r,a){for(var f=r.entangledLanes|=a,m=r.entanglements,v=f;v;){var _=Si(v),B=1<<_;B&a|m[_]&a&&(m[_]|=a),v&=~B}}function kA(r,a){var f=Bs(a),m;switch(f){case za:m=Ts;break;case Fa:m=Yi;break;case Ls:case fc:case hc:case pc:case ed:case Ac:case td:case nd:case mc:case gc:case vc:case fo:case rd:case ad:case id:case ta:case bi:case yc:case xc:case bc:case al:m=uo;break;case Vi:m=il;break;default:m=Ln;break}return(m&(r.suspendedLanes|a))!==Ln?Ln:m}function ll(r,a,f){if(Or)for(var m=r.pendingUpdatersLaneMap;f>0;){var v=Dc(f),_=1<<v,B=m[v];B.add(a),f&=~_}}function nr(r,a){if(Or)for(var f=r.pendingUpdatersLaneMap,m=r.memoizedUpdaters;a>0;){var v=Dc(a),_=1<<v,B=f[v];B.size>0&&(B.forEach(function(F){var W=F.alternate;(W===null||!m.has(W))&&m.add(F)}),B.clear()),a&=~_}}function ih(r,a){return null}var $e=vt,ni=za,Ps=Fa,kc=Vi,cl=Ln;function Er(){return cl}function kn(r){cl=r}function dd(r,a){var f=cl;try{return cl=r,a()}finally{cl=f}}function sh(r,a){return r!==0&&r<a?r:a}function oh(r,a){return r>a?r:a}function fd(r,a){return r!==0&&r<a}function Nc(r){var a=Bs(r);return fd($e,a)?fd(ni,a)?_c(a)?Ps:kc:ni:$e}var Bc=i.unstable_scheduleCallback,rr=i.unstable_cancelCallback,Ia=i.unstable_shouldYield,ri=i.unstable_requestPaint,zn=i.unstable_now,ul=i.unstable_ImmediatePriority,va=i.unstable_UserBlockingPriority,Ms=i.unstable_NormalPriority,Oa=i.unstable_IdlePriority,NA=i.unstable_yieldValue,lh=i.unstable_setDisableYieldValue,zs=null,ar=null,tt=null,ra=!1,Or=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Pc(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return u("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{P&&(r=y({},r,{getLaneLabelMap:ch,injectProfilingHooks:pd})),zs=a.inject(r),ar=a}catch(f){u("React instrumentation encountered an error: %s.",f)}return!!a.checkDCE}function Mc(r,a){if(ar&&typeof ar.onScheduleFiberRoot=="function")try{ar.onScheduleFiberRoot(zs,r,a)}catch(f){ra||(ra=!0,u("React instrumentation encountered an error: %s",f))}}function zc(r,a){if(ar&&typeof ar.onCommitFiberRoot=="function")try{var f=(r.current.flags&Qt)===Qt;if(M){var m;switch(a){case $e:m=ul;break;case ni:m=va;break;case Ps:m=Ms;break;case kc:m=Oa;break;default:m=Ms;break}ar.onCommitFiberRoot(zs,r,m,f)}}catch(v){ra||(ra=!0,u("React instrumentation encountered an error: %s",v))}}function dl(r){if(ar&&typeof ar.onPostCommitFiberRoot=="function")try{ar.onPostCommitFiberRoot(zs,r)}catch(a){ra||(ra=!0,u("React instrumentation encountered an error: %s",a))}}function hd(r){if(ar&&typeof ar.onCommitFiberUnmount=="function")try{ar.onCommitFiberUnmount(zs,r)}catch(a){ra||(ra=!0,u("React instrumentation encountered an error: %s",a))}}function Fn(r){if(typeof NA=="function"&&(lh(r),h(r)),ar&&typeof ar.setStrictMode=="function")try{ar.setStrictMode(zs,r)}catch(a){ra||(ra=!0,u("React instrumentation encountered an error: %s",a))}}function pd(r){tt=r}function ch(){{for(var r=new Map,a=1,f=0;f<Rs;f++){var m=Jf(a);r.set(a,m),a*=2}return r}}function Ad(r){tt!==null&&typeof tt.markCommitStarted=="function"&&tt.markCommitStarted(r)}function uh(){tt!==null&&typeof tt.markCommitStopped=="function"&&tt.markCommitStopped()}function Ki(r){tt!==null&&typeof tt.markComponentRenderStarted=="function"&&tt.markComponentRenderStarted(r)}function Ji(){tt!==null&&typeof tt.markComponentRenderStopped=="function"&&tt.markComponentRenderStopped()}function Nn(r){tt!==null&&typeof tt.markComponentPassiveEffectMountStarted=="function"&&tt.markComponentPassiveEffectMountStarted(r)}function It(){tt!==null&&typeof tt.markComponentPassiveEffectMountStopped=="function"&&tt.markComponentPassiveEffectMountStopped()}function Jn(r){tt!==null&&typeof tt.markComponentPassiveEffectUnmountStarted=="function"&&tt.markComponentPassiveEffectUnmountStarted(r)}function In(){tt!==null&&typeof tt.markComponentPassiveEffectUnmountStopped=="function"&&tt.markComponentPassiveEffectUnmountStopped()}function ir(r){tt!==null&&typeof tt.markComponentLayoutEffectMountStarted=="function"&&tt.markComponentLayoutEffectMountStarted(r)}function aa(){tt!==null&&typeof tt.markComponentLayoutEffectMountStopped=="function"&&tt.markComponentLayoutEffectMountStopped()}function Fs(r){tt!==null&&typeof tt.markComponentLayoutEffectUnmountStarted=="function"&&tt.markComponentLayoutEffectUnmountStarted(r)}function On(){tt!==null&&typeof tt.markComponentLayoutEffectUnmountStopped=="function"&&tt.markComponentLayoutEffectUnmountStopped()}function fl(r,a,f){tt!==null&&typeof tt.markComponentErrored=="function"&&tt.markComponentErrored(r,a,f)}function Is(r,a,f){tt!==null&&typeof tt.markComponentSuspended=="function"&&tt.markComponentSuspended(r,a,f)}function Fc(r){tt!==null&&typeof tt.markLayoutEffectsStarted=="function"&&tt.markLayoutEffectsStarted(r)}function md(){tt!==null&&typeof tt.markLayoutEffectsStopped=="function"&&tt.markLayoutEffectsStopped()}function hl(r){tt!==null&&typeof tt.markPassiveEffectsStarted=="function"&&tt.markPassiveEffectsStarted(r)}function Ur(){tt!==null&&typeof tt.markPassiveEffectsStopped=="function"&&tt.markPassiveEffectsStopped()}function Ic(r){tt!==null&&typeof tt.markRenderStarted=="function"&&tt.markRenderStarted(r)}function gd(){tt!==null&&typeof tt.markRenderYielded=="function"&&tt.markRenderYielded()}function ai(){tt!==null&&typeof tt.markRenderStopped=="function"&&tt.markRenderStopped()}function vo(r){tt!==null&&typeof tt.markRenderScheduled=="function"&&tt.markRenderScheduled(r)}function Oc(r,a){tt!==null&&typeof tt.markForceUpdateScheduled=="function"&&tt.markForceUpdateScheduled(r,a)}function pl(r,a){tt!==null&&typeof tt.markStateUpdateScheduled=="function"&&tt.markStateUpdateScheduled(r,a)}function Zi(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var xr=typeof Object.is=="function"?Object.is:Zi,br=null,yo=!1,Os=!1;function Uc(r){br===null?br=[r]:br.push(r)}function jc(r){yo=!0,Uc(r)}function Al(){yo&&gn()}function gn(){if(!Os&&br!==null){Os=!0;var r=0,a=Er();try{var f=!0,m=br;for(kn($e);r<m.length;r++){var v=m[r];do v=v(f);while(v!==null)}br=null,yo=!1}catch(_){throw br!==null&&(br=br.slice(r+1)),Bc(ul,gn),_}finally{kn(a),Os=!1}}return null}function Ci(r){var a=r.current.memoizedState;return a.isDehydrated}var sr=[],Wn=0,ml=null,xo=0,jr=[],ya=0,Gr=null,ii=1,si="";function vd(r){return Gs(),(r.flags&Nf)!==st}function Us(r){return Gs(),xo}function dh(){var r=si,a=ii,f=a&~BA(a);return f.toString(32)+r}function $i(r,a){Gs(),sr[Wn++]=xo,sr[Wn++]=ml,ml=r,xo=a}function Gc(r,a,f){Gs(),jr[ya++]=ii,jr[ya++]=si,jr[ya++]=Gr,Gr=r;var m=ii,v=si,_=Hc(m)-1,B=m&~(1<<_),F=f+1,W=Hc(a)+_;if(W>30){var J=_-_%5,se=(1<<J)-1,ve=(B&se).toString(32),_e=B>>J,ke=_-J,Me=Hc(a)+ke,Be=F<<ke,lt=Be|_e,bt=ve+v;ii=1<<Me|lt,si=bt}else{var mt=F<<_,cn=mt|B,qt=v;ii=1<<W|cn,si=qt}}function bo(r){Gs();var a=r.return;if(a!==null){var f=1,m=0;$i(r,f),Gc(r,f,m)}}function Hc(r){return 32-$u(r)}function BA(r){return 1<<Hc(r)-1}function Wc(r){for(;r===ml;)ml=sr[--Wn],sr[Wn]=null,xo=sr[--Wn],sr[Wn]=null;for(;r===Gr;)Gr=jr[--ya],jr[ya]=null,si=jr[--ya],jr[ya]=null,ii=jr[--ya],jr[ya]=null}function fh(){return Gs(),Gr!==null?{id:ii,overflow:si}:null}function js(r,a){Gs(),jr[ya++]=ii,jr[ya++]=si,jr[ya++]=Gr,ii=a.id,si=a.overflow,Gr=r}function Gs(){l()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Tn=null,ia=null,Yt=!1,es=!1,wi=null;function PA(){Yt&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function hh(){es=!0}function ph(){return es}function Ah(r){if(!_r)return!1;var a=r.stateNode.containerInfo;return ia=Yu(a),Tn=r,Yt=!0,wi=null,es=!1,!0}function MA(r,a,f){return _r?(ia=Kr(a),Tn=r,Yt=!0,wi=null,es=!1,f!==null&&js(r,f),!0):!1}function sa(r,a){switch(r.tag){case q:{ao(r.stateNode.containerInfo,a);break}case X:{var f=(r.mode&jt)!==At;DA(r.type,r.memoizedProps,r.stateNode,a,f);break}case re:{var m=r.memoizedState;m.dehydrated!==null&&Ku(m.dehydrated,a);break}}}function Xc(r,a){sa(r,a);var f=L4();f.stateNode=a,f.return=r;var m=r.deletions;m===null?(r.deletions=[f],r.flags|=Ea):m.push(f)}function yd(r,a){{if(es)return;switch(r.tag){case q:{var f=r.stateNode.containerInfo;switch(a.tag){case X:var m=a.type,v=a.pendingProps;$l(f,m,v);break;case he:var _=a.pendingProps;LA(f,_);break;case re:tl(f);break}break}case X:{var B=r.type,F=r.memoizedProps,W=r.stateNode;switch(a.tag){case X:{var J=a.type,se=a.pendingProps,ve=(r.mode&jt)!==At;io(B,F,W,J,se,ve);break}case he:{var _e=a.pendingProps,ke=(r.mode&jt)!==At;Wf(B,F,W,_e,ke);break}case re:{tc(B,F,W);break}}break}case re:{var Me=r.memoizedState,Be=Me.dehydrated;if(Be!==null)switch(a.tag){case X:var lt=a.type,bt=a.pendingProps;ec(Be,lt,bt);break;case he:var mt=a.pendingProps;Gf(Be,mt);break;case re:Hf(Be);break}break}default:return}}}function _i(r,a){a.flags=a.flags&~qa|un,yd(r,a)}function gl(r,a){switch(r.tag){case X:{var f=r.type,m=r.pendingProps,v=Jl(a,f,m);return v!==null?(r.stateNode=v,Tn=r,ia=Qu(v),!0):!1}case he:{var _=r.pendingProps,B=fa(a,_);return B!==null?(r.stateNode=B,Tn=r,ia=null,!0):!1}case re:{var F=ha(a);if(F!==null){var W={dehydrated:F,treeContext:fh(),retryLane:Fr};r.memoizedState=W;var J=k4(F);return J.return=r,r.child=J,Tn=r,ia=null,!0}return!1}default:return!1}}function Ei(r){return(r.mode&jt)!==At&&(r.flags&Qt)===st}function So(r){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function vl(r){if(Yt){var a=ia;if(!a){Ei(r)&&(yd(Tn,r),So()),_i(Tn,r),Yt=!1,Tn=r;return}var f=a;if(!gl(r,a)){Ei(r)&&(yd(Tn,r),So()),a=$o(f);var m=Tn;if(!a||!gl(r,a)){_i(Tn,r),Yt=!1,Tn=r;return}Xc(m,f)}}}function xd(r,a,f){if(!_r)throw new Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var m=r.stateNode,v=!es,_=pa(m,r.type,r.memoizedProps,a,f,r,v);return r.updateQueue=_,_!==null}function zA(r){if(!_r)throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var a=r.stateNode,f=r.memoizedProps,m=!es,v=bn(a,f,r,m);if(v){var _=Tn;if(_!==null)switch(_.tag){case q:{var B=_.stateNode.containerInfo,F=(_.mode&jt)!==At;Zl(B,a,f,F);break}case X:{var W=_.type,J=_.memoizedProps,se=_.stateNode,ve=(_.mode&jt)!==At;jf(W,J,se,a,f,ve);break}}}return v}function mh(r){if(!_r)throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var a=r.memoizedState,f=a!==null?a.dehydrated:null;if(!f)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");el(f,r)}function gh(r){if(!_r)throw new Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var a=r.memoizedState,f=a!==null?a.dehydrated:null;if(!f)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return ka(f)}function bd(r){for(var a=r.return;a!==null&&a.tag!==X&&a.tag!==q&&a.tag!==re;)a=a.return;Tn=a}function yl(r){if(!_r||r!==Tn)return!1;if(!Yt)return bd(r),Yt=!0,!1;if(r.tag!==q&&(r.tag!==X||Uf(r.type)&&!ro(r.type,r.memoizedProps))){var a=ia;if(a)if(Ei(r))vh(r),So();else for(;a;)Xc(r,a),a=$o(a)}return bd(r),r.tag===re?ia=gh(r):ia=Tn?$o(r.stateNode):null,!0}function Qc(){return Yt&&ia!==null}function vh(r){for(var a=ia;a;)sa(r,a),a=$o(a)}function Co(){_r&&(Tn=null,ia=null,Yt=!1,es=!1)}function o(){wi!==null&&(Z1(wi),wi=null)}function l(){return Yt}function g(r){wi===null?wi=[r]:wi.push(r)}var b=c.ReactCurrentBatchConfig,E=null;function N(){return b.transition}function Q(r,a){if(xr(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var f=Object.keys(r),m=Object.keys(a);if(f.length!==m.length)return!1;for(var v=0;v<f.length;v++){var _=f[v];if(!Zr.call(a,_)||!xr(r[_],a[_]))return!1}return!0}function fe(r){switch(r._debugOwner&&r._debugOwner.type,r._debugSource,r.tag){case X:return ei(r.type);case H:return ei("Lazy");case re:return ei("Suspense");case Re:return ei("SuspenseList");case I:case K:case ae:return oo(r.type);case le:return oo(r.type.render);case V:return Qf(r.type);default:return""}}function we(r){try{var a="",f=r;do a+=fe(f),f=f.return;while(f);return a}catch(m){return`
|
|
321
|
+
`),H=m.stack.split(`
|
|
322
|
+
`),Z=F.length-1,ie=H.length-1;Z>=1&&ie>=0&&F[Z]!==H[ie];)ie--;for(;Z>=1&&ie>=0;Z--,ie--)if(F[Z]!==H[ie]){if(Z!==1||ie!==1)do if(Z--,ie--,ie<0||F[Z]!==H[ie]){var ve=`
|
|
323
|
+
`+F[Z].replace(" at new "," at ");return r.displayName&&ve.includes("<anonymous>")&&(ve=ve.replace("<anonymous>",r.displayName)),typeof r=="function"&&ma.set(r,ve),ve}while(Z>=1&&ie>=0);break}}}finally{oc=!1,Aa.current=_,Xf(),Error.prepareStackTrace=v}var _e=r?r.displayName||r.name:"",ke=_e?ei(_e):"";return typeof r=="function"&&ma.set(r,ke),ke}function Qf(r,a,f){return so(r,!0)}function oo(r,a,f){return so(r,!1)}function Yf(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function _s(r,a,f){if(r==null)return"";if(typeof r=="function")return so(r,Yf(r));if(typeof r=="string")return ei(r);switch(r){case j:return ei("Suspense");case $:return ei("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case G:return oo(r.render);case ye:return _s(r.type,a,f);case Ce:{var m=r,v=m._payload,_=m._init;try{return _s(_(v),a,f)}catch{}}}return""}var Zr=Object.prototype.hasOwnProperty,lo={},Es=c.ReactDebugCurrentFrame;function $r(r){if(r){var a=r._owner,f=_s(r.type,r._source,a?a.type:null);Es.setExtraStackFrame(f)}else Es.setExtraStackFrame(null)}function ea(r,a,f,m,v){{var _=Function.call.bind(Zr);for(var B in r)if(_(r,B)){var F=void 0;try{if(typeof r[B]!="function"){var H=Error((m||"React class")+": "+f+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}F=r[B](a,B,m,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Z){F=Z}F&&!(F instanceof Error)&&($r(v),u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",f,B,typeof F),$r(null)),F instanceof Error&&!(F.message in lo)&&(lo[F.message]=!0,$r(v),u("Failed %s type: %s",f,F.message),$r(null))}}}var Xi=[],nl;nl=[];var Na=-1;function rn(r){return{current:r}}function jn(r,a){if(Na<0){u("Unexpected pop.");return}a!==nl[Na]&&u("Unexpected Fiber popped."),r.current=Xi[Na],Xi[Na]=null,nl[Na]=null,Na--}function Gn(r,a,f){Na++,Xi[Na]=r.current,nl[Na]=f,r.current=a}var rl;rl={};var mr={};Object.freeze(mr);var Ba=rn(mr),gr=rn(!1),mn=mr;function Sn(r,a,f){return f&&zr(a)?mn:Ba.current}function Hn(r,a,f){{var m=r.stateNode;m.__reactInternalMemoizedUnmaskedChildContext=a,m.__reactInternalMemoizedMaskedChildContext=f}}function xi(r,a){{var f=r.type,m=f.contextTypes;if(!m)return mr;var v=r.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===a)return v.__reactInternalMemoizedMaskedChildContext;var _={};for(var B in m)_[B]=a[B];{var F=it(r)||"Unknown";ea(m,_,"context",F)}return v&&Hn(r,a,_),_}}function Qi(){return gr.current}function zr(r){{var a=r.childContextTypes;return a!=null}}function lc(r){jn(gr,r),jn(Ba,r)}function Vn(r){jn(gr,r),jn(Ba,r)}function cc(r,a,f){{if(Ba.current!==mr)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Gn(Ba,a,r),Gn(gr,f,r)}}function uc(r,a,f){{var m=r.stateNode,v=a.childContextTypes;if(typeof m.getChildContext!="function"){{var _=it(r)||"Unknown";rl[_]||(rl[_]=!0,u("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",_,_))}return f}var B=m.getChildContext();for(var F in B)if(!(F in v))throw new Error((it(r)||"Unknown")+'.getChildContext(): key "'+F+'" is not defined in childContextTypes.');{var H=it(r)||"Unknown";ea(v,B,"child context",H)}return y({},f,B)}}function co(r){{var a=r.stateNode,f=a&&a.__reactInternalMemoizedMergedChildContext||mr;return mn=Ba.current,Gn(Ba,f,r),Gn(gr,gr.current,r),!0}}function Pa(r,a,f){{var m=r.stateNode;if(!m)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(f){var v=uc(r,a,mn);m.__reactInternalMemoizedMergedChildContext=v,jn(gr,r),jn(Ba,r),Gn(Ba,v,r),Gn(gr,f,r)}else jn(gr,r),Gn(gr,f,r)}}function ga(r){{if(!gA(r)||r.tag!==Y)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var a=r;do{switch(a.tag){case q:return a.stateNode.context;case Y:{var f=a.type;if(zr(f))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var ti=0,dc=1,mt=0,jt=1,tn=2,Rn=8,Ma=16,$u=Math.clz32?Math.clz32:Kf,Vf=Math.log,qf=Math.LN2;function Kf(r){var a=r>>>0;return a===0?32:31-(Vf(a)/qf|0)|0}var Rs=31,Pe=0,Ln=0,vt=1,Ts=2,za=4,Yi=8,Fa=16,uo=32,Ds=4194240,Ls=64,fc=128,hc=256,pc=512,ed=1024,Ac=2048,td=4096,nd=8192,mc=16384,gc=32768,vc=65536,fo=131072,rd=262144,ad=524288,id=1048576,ta=2097152,ho=130023424,bi=4194304,yc=8388608,xc=16777216,bc=33554432,al=67108864,ks=bi,Ns=134217728,Sc=268435455,il=268435456,Vi=536870912,Fr=1073741824;function Jf(r){{if(r&vt)return"Sync";if(r&Ts)return"InputContinuousHydration";if(r&za)return"InputContinuous";if(r&Yi)return"DefaultHydration";if(r&Fa)return"Default";if(r&uo)return"TransitionHydration";if(r&Ds)return"Transition";if(r&ho)return"Retry";if(r&Ns)return"SelectiveHydration";if(r&il)return"IdleHydration";if(r&Vi)return"Idle";if(r&Fr)return"Offscreen"}}var dn=-1,sl=Ls,Cc=bi;function qn(r){switch(Bs(r)){case vt:return vt;case Ts:return Ts;case za:return za;case Yi:return Yi;case Fa:return Fa;case uo:return uo;case Ls:case fc:case hc:case pc:case ed:case Ac:case td:case nd:case mc:case gc:case vc:case fo:case rd:case ad:case id:case ta:return r&Ds;case bi:case yc:case xc:case bc:case al:return r&ho;case Ns:return Ns;case il:return il;case Vi:return Vi;case Fr:return Fr;default:return u("Should have found matching lanes. This is a bug in React."),r}}function Kn(r,a){var f=r.pendingLanes;if(f===Pe)return Pe;var m=Pe,v=r.suspendedLanes,_=r.pingedLanes,B=f⪼if(B!==Pe){var F=B&~v;if(F!==Pe)m=qn(F);else{var H=B&_;H!==Pe&&(m=qn(H))}}else{var Z=f&~v;Z!==Pe?m=qn(Z):_!==Pe&&(m=qn(_))}if(m===Pe)return Pe;if(a!==Pe&&a!==m&&(a&v)===Pe){var ie=Bs(m),ve=Bs(a);if(ie>=ve||ie===Fa&&(ve&Ds)!==Pe)return a}(m&za)!==Pe&&(m|=f&Fa);var _e=r.entangledLanes;if(_e!==Pe)for(var ke=r.entanglements,Me=m&_e;Me>0;){var Be=Si(Me),ut=1<<Be;m|=ke[Be],Me&=~ut}return m}function Zf(r,a){for(var f=r.eventTimes,m=dn;a>0;){var v=Si(a),_=1<<v,B=f[v];B>m&&(m=B),a&=~_}return m}function $f(r,a){switch(r){case vt:case Ts:case za:return a+250;case Yi:case Fa:case uo:case Ls:case fc:case hc:case pc:case ed:case Ac:case td:case nd:case mc:case gc:case vc:case fo:case rd:case ad:case id:case ta:return a+5e3;case bi:case yc:case xc:case bc:case al:return dn;case Ns:case il:case Vi:case Fr:return dn;default:return u("Should have found matching lanes. This is a bug in React."),dn}}function eh(r,a){for(var f=r.pendingLanes,m=r.suspendedLanes,v=r.pingedLanes,_=r.expirationTimes,B=f;B>0;){var F=Si(B),H=1<<F,Z=_[F];Z===dn?((H&m)===Pe||(H&v)!==Pe)&&(_[F]=$f(H,a)):Z<=a&&(r.expiredLanes|=H),B&=~H}}function th(r){return qn(r.pendingLanes)}function wc(r){var a=r.pendingLanes&~Fr;return a!==Pe?a:a&Fr?Fr:Pe}function sd(r){return(r&vt)!==Pe}function _c(r){return(r&Sc)!==Pe}function Ec(r){return(r&ho)===r}function nh(r){var a=vt|za|Fa;return(r&a)===Pe}function rh(r){return(r&Ds)===r}function po(r,a){var f=Ts|za|Yi|Fa;return(a&f)!==Pe}function od(r,a){return(a&r.expiredLanes)!==Pe}function ld(r){return(r&Ds)!==Pe}function Rc(){var r=sl;return sl<<=1,(sl&Ds)===Pe&&(sl=Ls),r}function Tc(){var r=Cc;return Cc<<=1,(Cc&ho)===Pe&&(Cc=bi),r}function Bs(r){return r&-r}function Ao(r){return Bs(r)}function Si(r){return 31-$u(r)}function Dc(r){return Si(r)}function vr(r,a){return(r&a)!==Pe}function Ir(r,a){return(r&a)===a}function Bt(r,a){return r|a}function na(r,a){return r&~a}function cd(r,a){return r&a}function Lc(r){return r}function ol(r,a){return r!==Ln&&r<a?r:a}function mo(r){for(var a=[],f=0;f<Rs;f++)a.push(r);return a}function qi(r,a,f){r.pendingLanes|=a,a!==Vi&&(r.suspendedLanes=Pe,r.pingedLanes=Pe);var m=r.eventTimes,v=Dc(a);m[v]=f}function ah(r,a){r.suspendedLanes|=a,r.pingedLanes&=~a;for(var f=r.expirationTimes,m=a;m>0;){var v=Si(m),_=1<<v;f[v]=dn,m&=~_}}function go(r,a,f){r.pingedLanes|=r.suspendedLanes&a}function yr(r,a){var f=r.pendingLanes&~a;r.pendingLanes=a,r.suspendedLanes=Pe,r.pingedLanes=Pe,r.expiredLanes&=a,r.mutableReadLanes&=a,r.entangledLanes&=a;for(var m=r.entanglements,v=r.eventTimes,_=r.expirationTimes,B=f;B>0;){var F=Si(B),H=1<<F;m[F]=Pe,v[F]=dn,_[F]=dn,B&=~H}}function ud(r,a){for(var f=r.entangledLanes|=a,m=r.entanglements,v=f;v;){var _=Si(v),B=1<<_;B&a|m[_]&a&&(m[_]|=a),v&=~B}}function kA(r,a){var f=Bs(a),m;switch(f){case za:m=Ts;break;case Fa:m=Yi;break;case Ls:case fc:case hc:case pc:case ed:case Ac:case td:case nd:case mc:case gc:case vc:case fo:case rd:case ad:case id:case ta:case bi:case yc:case xc:case bc:case al:m=uo;break;case Vi:m=il;break;default:m=Ln;break}return(m&(r.suspendedLanes|a))!==Ln?Ln:m}function ll(r,a,f){if(Or)for(var m=r.pendingUpdatersLaneMap;f>0;){var v=Dc(f),_=1<<v,B=m[v];B.add(a),f&=~_}}function nr(r,a){if(Or)for(var f=r.pendingUpdatersLaneMap,m=r.memoizedUpdaters;a>0;){var v=Dc(a),_=1<<v,B=f[v];B.size>0&&(B.forEach(function(F){var H=F.alternate;(H===null||!m.has(H))&&m.add(F)}),B.clear()),a&=~_}}function ih(r,a){return null}var $e=vt,ni=za,Ps=Fa,kc=Vi,cl=Ln;function Er(){return cl}function kn(r){cl=r}function dd(r,a){var f=cl;try{return cl=r,a()}finally{cl=f}}function sh(r,a){return r!==0&&r<a?r:a}function oh(r,a){return r>a?r:a}function fd(r,a){return r!==0&&r<a}function Nc(r){var a=Bs(r);return fd($e,a)?fd(ni,a)?_c(a)?Ps:kc:ni:$e}var Bc=i.unstable_scheduleCallback,rr=i.unstable_cancelCallback,Ia=i.unstable_shouldYield,ri=i.unstable_requestPaint,zn=i.unstable_now,ul=i.unstable_ImmediatePriority,va=i.unstable_UserBlockingPriority,Ms=i.unstable_NormalPriority,Oa=i.unstable_IdlePriority,NA=i.unstable_yieldValue,lh=i.unstable_setDisableYieldValue,zs=null,ar=null,tt=null,ra=!1,Or=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Pc(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return u("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{P&&(r=y({},r,{getLaneLabelMap:ch,injectProfilingHooks:pd})),zs=a.inject(r),ar=a}catch(f){u("React instrumentation encountered an error: %s.",f)}return!!a.checkDCE}function Mc(r,a){if(ar&&typeof ar.onScheduleFiberRoot=="function")try{ar.onScheduleFiberRoot(zs,r,a)}catch(f){ra||(ra=!0,u("React instrumentation encountered an error: %s",f))}}function zc(r,a){if(ar&&typeof ar.onCommitFiberRoot=="function")try{var f=(r.current.flags&Qt)===Qt;if(M){var m;switch(a){case $e:m=ul;break;case ni:m=va;break;case Ps:m=Ms;break;case kc:m=Oa;break;default:m=Ms;break}ar.onCommitFiberRoot(zs,r,m,f)}}catch(v){ra||(ra=!0,u("React instrumentation encountered an error: %s",v))}}function dl(r){if(ar&&typeof ar.onPostCommitFiberRoot=="function")try{ar.onPostCommitFiberRoot(zs,r)}catch(a){ra||(ra=!0,u("React instrumentation encountered an error: %s",a))}}function hd(r){if(ar&&typeof ar.onCommitFiberUnmount=="function")try{ar.onCommitFiberUnmount(zs,r)}catch(a){ra||(ra=!0,u("React instrumentation encountered an error: %s",a))}}function Fn(r){if(typeof NA=="function"&&(lh(r),h(r)),ar&&typeof ar.setStrictMode=="function")try{ar.setStrictMode(zs,r)}catch(a){ra||(ra=!0,u("React instrumentation encountered an error: %s",a))}}function pd(r){tt=r}function ch(){{for(var r=new Map,a=1,f=0;f<Rs;f++){var m=Jf(a);r.set(a,m),a*=2}return r}}function Ad(r){tt!==null&&typeof tt.markCommitStarted=="function"&&tt.markCommitStarted(r)}function uh(){tt!==null&&typeof tt.markCommitStopped=="function"&&tt.markCommitStopped()}function Ki(r){tt!==null&&typeof tt.markComponentRenderStarted=="function"&&tt.markComponentRenderStarted(r)}function Ji(){tt!==null&&typeof tt.markComponentRenderStopped=="function"&&tt.markComponentRenderStopped()}function Nn(r){tt!==null&&typeof tt.markComponentPassiveEffectMountStarted=="function"&&tt.markComponentPassiveEffectMountStarted(r)}function It(){tt!==null&&typeof tt.markComponentPassiveEffectMountStopped=="function"&&tt.markComponentPassiveEffectMountStopped()}function Jn(r){tt!==null&&typeof tt.markComponentPassiveEffectUnmountStarted=="function"&&tt.markComponentPassiveEffectUnmountStarted(r)}function In(){tt!==null&&typeof tt.markComponentPassiveEffectUnmountStopped=="function"&&tt.markComponentPassiveEffectUnmountStopped()}function ir(r){tt!==null&&typeof tt.markComponentLayoutEffectMountStarted=="function"&&tt.markComponentLayoutEffectMountStarted(r)}function aa(){tt!==null&&typeof tt.markComponentLayoutEffectMountStopped=="function"&&tt.markComponentLayoutEffectMountStopped()}function Fs(r){tt!==null&&typeof tt.markComponentLayoutEffectUnmountStarted=="function"&&tt.markComponentLayoutEffectUnmountStarted(r)}function On(){tt!==null&&typeof tt.markComponentLayoutEffectUnmountStopped=="function"&&tt.markComponentLayoutEffectUnmountStopped()}function fl(r,a,f){tt!==null&&typeof tt.markComponentErrored=="function"&&tt.markComponentErrored(r,a,f)}function Is(r,a,f){tt!==null&&typeof tt.markComponentSuspended=="function"&&tt.markComponentSuspended(r,a,f)}function Fc(r){tt!==null&&typeof tt.markLayoutEffectsStarted=="function"&&tt.markLayoutEffectsStarted(r)}function md(){tt!==null&&typeof tt.markLayoutEffectsStopped=="function"&&tt.markLayoutEffectsStopped()}function hl(r){tt!==null&&typeof tt.markPassiveEffectsStarted=="function"&&tt.markPassiveEffectsStarted(r)}function Ur(){tt!==null&&typeof tt.markPassiveEffectsStopped=="function"&&tt.markPassiveEffectsStopped()}function Ic(r){tt!==null&&typeof tt.markRenderStarted=="function"&&tt.markRenderStarted(r)}function gd(){tt!==null&&typeof tt.markRenderYielded=="function"&&tt.markRenderYielded()}function ai(){tt!==null&&typeof tt.markRenderStopped=="function"&&tt.markRenderStopped()}function vo(r){tt!==null&&typeof tt.markRenderScheduled=="function"&&tt.markRenderScheduled(r)}function Oc(r,a){tt!==null&&typeof tt.markForceUpdateScheduled=="function"&&tt.markForceUpdateScheduled(r,a)}function pl(r,a){tt!==null&&typeof tt.markStateUpdateScheduled=="function"&&tt.markStateUpdateScheduled(r,a)}function Zi(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var xr=typeof Object.is=="function"?Object.is:Zi,br=null,yo=!1,Os=!1;function Uc(r){br===null?br=[r]:br.push(r)}function jc(r){yo=!0,Uc(r)}function Al(){yo&&gn()}function gn(){if(!Os&&br!==null){Os=!0;var r=0,a=Er();try{var f=!0,m=br;for(kn($e);r<m.length;r++){var v=m[r];do v=v(f);while(v!==null)}br=null,yo=!1}catch(_){throw br!==null&&(br=br.slice(r+1)),Bc(ul,gn),_}finally{kn(a),Os=!1}}return null}function Ci(r){var a=r.current.memoizedState;return a.isDehydrated}var sr=[],Wn=0,ml=null,xo=0,jr=[],ya=0,Gr=null,ii=1,si="";function vd(r){return Gs(),(r.flags&Nf)!==st}function Us(r){return Gs(),xo}function dh(){var r=si,a=ii,f=a&~BA(a);return f.toString(32)+r}function $i(r,a){Gs(),sr[Wn++]=xo,sr[Wn++]=ml,ml=r,xo=a}function Gc(r,a,f){Gs(),jr[ya++]=ii,jr[ya++]=si,jr[ya++]=Gr,Gr=r;var m=ii,v=si,_=Hc(m)-1,B=m&~(1<<_),F=f+1,H=Hc(a)+_;if(H>30){var Z=_-_%5,ie=(1<<Z)-1,ve=(B&ie).toString(32),_e=B>>Z,ke=_-Z,Me=Hc(a)+ke,Be=F<<ke,ut=Be|_e,bt=ve+v;ii=1<<Me|ut,si=bt}else{var gt=F<<_,cn=gt|B,qt=v;ii=1<<H|cn,si=qt}}function bo(r){Gs();var a=r.return;if(a!==null){var f=1,m=0;$i(r,f),Gc(r,f,m)}}function Hc(r){return 32-$u(r)}function BA(r){return 1<<Hc(r)-1}function Wc(r){for(;r===ml;)ml=sr[--Wn],sr[Wn]=null,xo=sr[--Wn],sr[Wn]=null;for(;r===Gr;)Gr=jr[--ya],jr[ya]=null,si=jr[--ya],jr[ya]=null,ii=jr[--ya],jr[ya]=null}function fh(){return Gs(),Gr!==null?{id:ii,overflow:si}:null}function js(r,a){Gs(),jr[ya++]=ii,jr[ya++]=si,jr[ya++]=Gr,ii=a.id,si=a.overflow,Gr=r}function Gs(){l()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Tn=null,ia=null,Yt=!1,es=!1,wi=null;function PA(){Yt&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function hh(){es=!0}function ph(){return es}function Ah(r){if(!_r)return!1;var a=r.stateNode.containerInfo;return ia=Yu(a),Tn=r,Yt=!0,wi=null,es=!1,!0}function MA(r,a,f){return _r?(ia=Kr(a),Tn=r,Yt=!0,wi=null,es=!1,f!==null&&js(r,f),!0):!1}function sa(r,a){switch(r.tag){case q:{ao(r.stateNode.containerInfo,a);break}case V:{var f=(r.mode&jt)!==mt;DA(r.type,r.memoizedProps,r.stateNode,a,f);break}case J:{var m=r.memoizedState;m.dehydrated!==null&&Ku(m.dehydrated,a);break}}}function Xc(r,a){sa(r,a);var f=L4();f.stateNode=a,f.return=r;var m=r.deletions;m===null?(r.deletions=[f],r.flags|=Ea):m.push(f)}function yd(r,a){{if(es)return;switch(r.tag){case q:{var f=r.stateNode.containerInfo;switch(a.tag){case V:var m=a.type,v=a.pendingProps;$l(f,m,v);break;case ge:var _=a.pendingProps;LA(f,_);break;case J:tl(f);break}break}case V:{var B=r.type,F=r.memoizedProps,H=r.stateNode;switch(a.tag){case V:{var Z=a.type,ie=a.pendingProps,ve=(r.mode&jt)!==mt;io(B,F,H,Z,ie,ve);break}case ge:{var _e=a.pendingProps,ke=(r.mode&jt)!==mt;Wf(B,F,H,_e,ke);break}case J:{tc(B,F,H);break}}break}case J:{var Me=r.memoizedState,Be=Me.dehydrated;if(Be!==null)switch(a.tag){case V:var ut=a.type,bt=a.pendingProps;ec(Be,ut,bt);break;case ge:var gt=a.pendingProps;Gf(Be,gt);break;case J:Hf(Be);break}break}default:return}}}function _i(r,a){a.flags=a.flags&~qa|un,yd(r,a)}function gl(r,a){switch(r.tag){case V:{var f=r.type,m=r.pendingProps,v=Jl(a,f,m);return v!==null?(r.stateNode=v,Tn=r,ia=Qu(v),!0):!1}case ge:{var _=r.pendingProps,B=fa(a,_);return B!==null?(r.stateNode=B,Tn=r,ia=null,!0):!1}case J:{var F=ha(a);if(F!==null){var H={dehydrated:F,treeContext:fh(),retryLane:Fr};r.memoizedState=H;var Z=k4(F);return Z.return=r,r.child=Z,Tn=r,ia=null,!0}return!1}default:return!1}}function Ei(r){return(r.mode&jt)!==mt&&(r.flags&Qt)===st}function So(r){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function vl(r){if(Yt){var a=ia;if(!a){Ei(r)&&(yd(Tn,r),So()),_i(Tn,r),Yt=!1,Tn=r;return}var f=a;if(!gl(r,a)){Ei(r)&&(yd(Tn,r),So()),a=$o(f);var m=Tn;if(!a||!gl(r,a)){_i(Tn,r),Yt=!1,Tn=r;return}Xc(m,f)}}}function xd(r,a,f){if(!_r)throw new Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var m=r.stateNode,v=!es,_=pa(m,r.type,r.memoizedProps,a,f,r,v);return r.updateQueue=_,_!==null}function zA(r){if(!_r)throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var a=r.stateNode,f=r.memoizedProps,m=!es,v=bn(a,f,r,m);if(v){var _=Tn;if(_!==null)switch(_.tag){case q:{var B=_.stateNode.containerInfo,F=(_.mode&jt)!==mt;Zl(B,a,f,F);break}case V:{var H=_.type,Z=_.memoizedProps,ie=_.stateNode,ve=(_.mode&jt)!==mt;jf(H,Z,ie,a,f,ve);break}}}return v}function mh(r){if(!_r)throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var a=r.memoizedState,f=a!==null?a.dehydrated:null;if(!f)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");el(f,r)}function gh(r){if(!_r)throw new Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var a=r.memoizedState,f=a!==null?a.dehydrated:null;if(!f)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return ka(f)}function bd(r){for(var a=r.return;a!==null&&a.tag!==V&&a.tag!==q&&a.tag!==J;)a=a.return;Tn=a}function yl(r){if(!_r||r!==Tn)return!1;if(!Yt)return bd(r),Yt=!0,!1;if(r.tag!==q&&(r.tag!==V||Uf(r.type)&&!ro(r.type,r.memoizedProps))){var a=ia;if(a)if(Ei(r))vh(r),So();else for(;a;)Xc(r,a),a=$o(a)}return bd(r),r.tag===J?ia=gh(r):ia=Tn?$o(r.stateNode):null,!0}function Qc(){return Yt&&ia!==null}function vh(r){for(var a=ia;a;)sa(r,a),a=$o(a)}function Co(){_r&&(Tn=null,ia=null,Yt=!1,es=!1)}function o(){wi!==null&&(Z1(wi),wi=null)}function l(){return Yt}function g(r){wi===null?wi=[r]:wi.push(r)}var b=c.ReactCurrentBatchConfig,E=null;function N(){return b.transition}function X(r,a){if(xr(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var f=Object.keys(r),m=Object.keys(a);if(f.length!==m.length)return!1;for(var v=0;v<f.length;v++){var _=f[v];if(!Zr.call(a,_)||!xr(r[_],a[_]))return!1}return!0}function fe(r){switch(r._debugOwner&&r._debugOwner.type,r._debugSource,r.tag){case V:return ei(r.type);case U:return ei("Lazy");case J:return ei("Suspense");case Re:return ei("SuspenseList");case I:case K:case re:return oo(r.type);case le:return oo(r.type.render);case Y:return Qf(r.type);default:return""}}function we(r){try{var a="",f=r;do a+=fe(f),f=f.return;while(f);return a}catch(m){return`
|
|
324
324
|
Error generating stack: `+m.message+`
|
|
325
|
-
`+m.stack}}var
|
|
325
|
+
`+m.stack}}var je=c.ReactDebugCurrentFrame,Je=null,St=!1;function nt(){{if(Je===null)return null;var r=Je._debugOwner;if(r!==null&&typeof r<"u")return it(r)}return null}function vn(){return Je===null?"":we(Je)}function Pt(){je.getCurrentStack=null,Je=null,St=!1}function Vt(r){je.getCurrentStack=r===null?null:vn,Je=r,St=!1}function Ri(){return Je}function xe(r){St=r}var ue={recordUnsafeLifecycleWarnings:function(r,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(r,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var Te=function(r){for(var a=null,f=r;f!==null;)f.mode&Rn&&(a=f),f=f.return;return a},Ze=function(r){var a=[];return r.forEach(function(f){a.push(f)}),a.sort().join(", ")},At=[],kt=[],Ct=[],Gt=[],Dn=[],Ht=[],Hr=new Set;ue.recordUnsafeLifecycleWarnings=function(r,a){Hr.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&At.push(r),r.mode&Rn&&typeof a.UNSAFE_componentWillMount=="function"&&kt.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Ct.push(r),r.mode&Rn&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&Gt.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&Dn.push(r),r.mode&Rn&&typeof a.UNSAFE_componentWillUpdate=="function"&&Ht.push(r))},ue.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;At.length>0&&(At.forEach(function(_e){r.add(it(_e)||"Component"),Hr.add(_e.type)}),At=[]);var a=new Set;kt.length>0&&(kt.forEach(function(_e){a.add(it(_e)||"Component"),Hr.add(_e.type)}),kt=[]);var f=new Set;Ct.length>0&&(Ct.forEach(function(_e){f.add(it(_e)||"Component"),Hr.add(_e.type)}),Ct=[]);var m=new Set;Gt.length>0&&(Gt.forEach(function(_e){m.add(it(_e)||"Component"),Hr.add(_e.type)}),Gt=[]);var v=new Set;Dn.length>0&&(Dn.forEach(function(_e){v.add(it(_e)||"Component"),Hr.add(_e.type)}),Dn=[]);var _=new Set;if(Ht.length>0&&(Ht.forEach(function(_e){_.add(it(_e)||"Component"),Hr.add(_e.type)}),Ht=[]),a.size>0){var B=Ze(a);u(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
326
326
|
|
|
327
327
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
328
328
|
|
|
@@ -331,22 +331,22 @@ Please update the following components: %s`,B)}if(m.size>0){var F=Ze(m);u(`Using
|
|
|
331
331
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
332
332
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
333
333
|
|
|
334
|
-
Please update the following components: %s`,F)}if(_.size>0){var
|
|
334
|
+
Please update the following components: %s`,F)}if(_.size>0){var H=Ze(_);u(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
335
335
|
|
|
336
336
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
337
337
|
|
|
338
|
-
Please update the following components: %s`,
|
|
338
|
+
Please update the following components: %s`,H)}if(r.size>0){var Z=Ze(r);p(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
339
339
|
|
|
340
340
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
341
341
|
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
342
342
|
|
|
343
|
-
Please update the following components: %s`,
|
|
343
|
+
Please update the following components: %s`,Z)}if(f.size>0){var ie=Ze(f);p(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
344
344
|
|
|
345
345
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
346
346
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
347
347
|
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
348
348
|
|
|
349
|
-
Please update the following components: %s`,
|
|
349
|
+
Please update the following components: %s`,ie)}if(v.size>0){var ve=Ze(v);p(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
350
350
|
|
|
351
351
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
352
352
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
@@ -357,11 +357,11 @@ The old API will be supported in all 16.x releases, but applications using it sh
|
|
|
357
357
|
|
|
358
358
|
Please update the following components: %s
|
|
359
359
|
|
|
360
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)}finally{Pt()}}})},ue.discardPendingWarnings=function(){
|
|
360
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)}finally{Pt()}}})},ue.discardPendingWarnings=function(){At=[],kt=[],Ct=[],Gt=[],Dn=[],Ht=[],Yc=new Map}}function av(r){{var a=typeof Symbol=="function"&&Symbol.toStringTag,f=a&&r[Symbol.toStringTag]||r.constructor.name||"Object";return f}}function iv(r){try{return FA(r),!1}catch{return!0}}function FA(r){return""+r}function g5(r){if(iv(r))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",av(r)),FA(r)}function v5(r,a){if(iv(r))return u("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,av(r)),FA(r)}var IA,OA,UA,jA,GA,sv=function(r,a){};IA=!1,OA=!1,UA={},jA={},GA={},sv=function(r,a){if(!(r===null||typeof r!="object")&&!(!r._store||r._store.validated||r.key!=null)){if(typeof r._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");r._store.validated=!0;var f=it(a)||"Component";jA[f]||(jA[f]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function y5(r){return r.prototype&&r.prototype.isReactComponent}function Sd(r,a,f){var m=f.ref;if(m!==null&&typeof m!="function"&&typeof m!="object"){if((r.mode&Rn||D)&&!(f._owner&&f._self&&f._owner.stateNode!==f._self)&&!(f._owner&&f._owner.tag!==Y)&&!(typeof f.type=="function"&&!y5(f.type))&&f._owner){var v=it(r)||"Component";UA[v]||(u('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',v,m),UA[v]=!0)}if(f._owner){var _=f._owner,B;if(_){var F=_;if(F.tag!==Y)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");B=F.stateNode}if(!B)throw new Error("Missing owner for string ref "+m+". This error is likely caused by a bug in React. Please file an issue.");var H=B;v5(m,"ref");var Z=""+m;if(a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===Z)return a.ref;var ie=function(ve){var _e=H.refs;ve===null?delete _e[Z]:_e[Z]=ve};return ie._stringRef=Z,ie}else{if(typeof m!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!f._owner)throw new Error("Element ref was specified as a string ("+m+`) but no owner was set. This could happen for one of the following reasons:
|
|
361
361
|
1. You may be adding a ref to a function component
|
|
362
362
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
363
363
|
3. You have multiple copies of React loaded
|
|
364
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return m}function yh(r,a){var f=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}function xh(r){{var a=it(r)||"Component";if(GA[a])return;GA[a]=!0,u("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function ov(r){var a=r._payload,f=r._init;return f(a)}function lv(r){function a(Se,De){if(r){var be=Se.deletions;be===null?(Se.deletions=[De],Se.flags|=Ea):be.push(De)}}function f(Se,De){if(!r)return null;for(var be=De;be!==null;)a(Se,be),be=be.sibling;return null}function m(Se,De){for(var be=new Map,He=De;He!==null;)He.key!==null?be.set(He.key,He):be.set(He.index,He),He=He.sibling;return be}function v(Se,De){var be=Tl(Se,De);return be.index=0,be.sibling=null,be}function _(Se,De,be){if(Se.index=be,!r)return Se.flags|=Nf,De;var He=Se.alternate;if(He!==null){var ut=He.index;return ut<De?(Se.flags|=un,De):ut}else return Se.flags|=un,De}function B(Se){return r&&Se.alternate===null&&(Se.flags|=un),Se}function F(Se,De,be,He){if(De===null||De.tag!==he){var ut=Im(be,Se.mode,He);return ut.return=Se,ut}else{var at=v(De,be);return at.return=Se,at}}function W(Se,De,be,He){var ut=be.type;if(ut===Dt)return se(Se,De,be.props.children,He,be.key);if(De!==null&&(De.elementType===ut||hy(De,be)||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ce&&ov(ut)===De.type)){var at=v(De,be.props);return at.ref=Sd(Se,De,be),at.return=Se,at._debugSource=be._source,at._debugOwner=be._owner,at}var Wt=Fm(be,Se.mode,He);return Wt.ref=Sd(Se,De,be),Wt.return=Se,Wt}function J(Se,De,be,He){if(De===null||De.tag!==Y||De.stateNode.containerInfo!==be.containerInfo||De.stateNode.implementation!==be.implementation){var ut=Om(be,Se.mode,He);return ut.return=Se,ut}else{var at=v(De,be.children||[]);return at.return=Se,at}}function se(Se,De,be,He,ut){if(De===null||De.tag!==G){var at=Bo(be,Se.mode,He,ut);return at.return=Se,at}else{var Wt=v(De,be);return Wt.return=Se,Wt}}function ve(Se,De,be){if(typeof De=="string"&&De!==""||typeof De=="number"){var He=Im(""+De,Se.mode,be);return He.return=Se,He}if(typeof De=="object"&&De!==null){switch(De.$$typeof){case Lt:{var ut=Fm(De,Se.mode,be);return ut.ref=Sd(Se,null,De),ut.return=Se,ut}case qe:{var at=Om(De,Se.mode,be);return at.return=Se,at}case Ce:{var Wt=De._payload,wt=De._init;return ve(Se,wt(Wt),be)}}if(Qn(De)||Ye(De)){var en=Bo(De,Se.mode,be,null);return en.return=Se,en}yh(Se,De)}return typeof De=="function"&&xh(Se),null}function _e(Se,De,be,He){var ut=De!==null?De.key:null;if(typeof be=="string"&&be!==""||typeof be=="number")return ut!==null?null:F(Se,De,""+be,He);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case Lt:return be.key===ut?W(Se,De,be,He):null;case qe:return be.key===ut?J(Se,De,be,He):null;case Ce:{var at=be._payload,Wt=be._init;return _e(Se,De,Wt(at),He)}}if(Qn(be)||Ye(be))return ut!==null?null:se(Se,De,be,He,null);yh(Se,be)}return typeof be=="function"&&xh(Se),null}function ke(Se,De,be,He,ut){if(typeof He=="string"&&He!==""||typeof He=="number"){var at=Se.get(be)||null;return F(De,at,""+He,ut)}if(typeof He=="object"&&He!==null){switch(He.$$typeof){case Lt:{var Wt=Se.get(He.key===null?be:He.key)||null;return W(De,Wt,He,ut)}case qe:{var wt=Se.get(He.key===null?be:He.key)||null;return J(De,wt,He,ut)}case Ce:var en=He._payload,Ot=He._init;return ke(Se,De,be,Ot(en),ut)}if(Qn(He)||Ye(He)){var yn=Se.get(be)||null;return se(De,yn,He,ut,null)}yh(De,He)}return typeof He=="function"&&xh(De),null}function Me(Se,De,be){{if(typeof Se!="object"||Se===null)return De;switch(Se.$$typeof){case Lt:case qe:sv(Se,be);var He=Se.key;if(typeof He!="string")break;if(De===null){De=new Set,De.add(He);break}if(!De.has(He)){De.add(He);break}u("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",He);break;case Ce:var ut=Se._payload,at=Se._init;Me(at(ut),De,be);break}}return De}function Be(Se,De,be,He){for(var ut=null,at=0;at<be.length;at++){var Wt=be[at];ut=Me(Wt,ut,Se)}for(var wt=null,en=null,Ot=De,yn=0,yt=0,Un=null;Ot!==null&&yt<be.length;yt++){Ot.index>yt?(Un=Ot,Ot=null):Un=Ot.sibling;var Qr=_e(Se,Ot,be[yt],He);if(Qr===null){Ot===null&&(Ot=Un);break}r&&Ot&&Qr.alternate===null&&a(Se,Ot),yn=_(Qr,yn,yt),en===null?wt=Qr:en.sibling=Qr,en=Qr,Ot=Un}if(yt===be.length){if(f(Se,Ot),l()){var Nr=yt;$i(Se,Nr)}return wt}if(Ot===null){for(;yt<be.length;yt++){var ja=ve(Se,be[yt],He);ja!==null&&(yn=_(ja,yn,yt),en===null?wt=ja:en.sibling=ja,en=ja)}if(l()){var ua=yt;$i(Se,ua)}return wt}for(var da=m(Se,Ot);yt<be.length;yt++){var Yr=ke(da,Se,yt,be[yt],He);Yr!==null&&(r&&Yr.alternate!==null&&da.delete(Yr.key===null?yt:Yr.key),yn=_(Yr,yn,yt),en===null?wt=Yr:en.sibling=Yr,en=Yr)}if(r&&da.forEach(function(fu){return a(Se,fu)}),l()){var Ys=yt;$i(Se,Ys)}return wt}function lt(Se,De,be,He){var ut=Ye(be);if(typeof ut!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&be[Symbol.toStringTag]==="Generator"&&(OA||u("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),OA=!0),be.entries===ut&&(IA||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),IA=!0);var at=ut.call(be);if(at)for(var Wt=null,wt=at.next();!wt.done;wt=at.next()){var en=wt.value;Wt=Me(en,Wt,Se)}}var Ot=ut.call(be);if(Ot==null)throw new Error("An iterable object provided no iterator.");for(var yn=null,yt=null,Un=De,Qr=0,Nr=0,ja=null,ua=Ot.next();Un!==null&&!ua.done;Nr++,ua=Ot.next()){Un.index>Nr?(ja=Un,Un=null):ja=Un.sibling;var da=_e(Se,Un,ua.value,He);if(da===null){Un===null&&(Un=ja);break}r&&Un&&da.alternate===null&&a(Se,Un),Qr=_(da,Qr,Nr),yt===null?yn=da:yt.sibling=da,yt=da,Un=ja}if(ua.done){if(f(Se,Un),l()){var Yr=Nr;$i(Se,Yr)}return yn}if(Un===null){for(;!ua.done;Nr++,ua=Ot.next()){var Ys=ve(Se,ua.value,He);Ys!==null&&(Qr=_(Ys,Qr,Nr),yt===null?yn=Ys:yt.sibling=Ys,yt=Ys)}if(l()){var fu=Nr;$i(Se,fu)}return yn}for(var nf=m(Se,Un);!ua.done;Nr++,ua=Ot.next()){var ds=ke(nf,Se,Nr,ua.value,He);ds!==null&&(r&&ds.alternate!==null&&nf.delete(ds.key===null?Nr:ds.key),Qr=_(ds,Qr,Nr),yt===null?yn=ds:yt.sibling=ds,yt=ds)}if(r&&nf.forEach(function(K4){return a(Se,K4)}),l()){var q4=Nr;$i(Se,q4)}return yn}function bt(Se,De,be,He){if(De!==null&&De.tag===he){f(Se,De.sibling);var ut=v(De,be);return ut.return=Se,ut}f(Se,De);var at=Im(be,Se.mode,He);return at.return=Se,at}function mt(Se,De,be,He){for(var ut=be.key,at=De;at!==null;){if(at.key===ut){var Wt=be.type;if(Wt===Dt){if(at.tag===G){f(Se,at.sibling);var wt=v(at,be.props.children);return wt.return=Se,wt._debugSource=be._source,wt._debugOwner=be._owner,wt}}else if(at.elementType===Wt||hy(at,be)||typeof Wt=="object"&&Wt!==null&&Wt.$$typeof===Ce&&ov(Wt)===at.type){f(Se,at.sibling);var en=v(at,be.props);return en.ref=Sd(Se,at,be),en.return=Se,en._debugSource=be._source,en._debugOwner=be._owner,en}f(Se,at);break}else a(Se,at);at=at.sibling}if(be.type===Dt){var Ot=Bo(be.props.children,Se.mode,He,be.key);return Ot.return=Se,Ot}else{var yn=Fm(be,Se.mode,He);return yn.ref=Sd(Se,De,be),yn.return=Se,yn}}function cn(Se,De,be,He){for(var ut=be.key,at=De;at!==null;){if(at.key===ut)if(at.tag===Y&&at.stateNode.containerInfo===be.containerInfo&&at.stateNode.implementation===be.implementation){f(Se,at.sibling);var Wt=v(at,be.children||[]);return Wt.return=Se,Wt}else{f(Se,at);break}else a(Se,at);at=at.sibling}var wt=Om(be,Se.mode,He);return wt.return=Se,wt}function qt(Se,De,be,He){var ut=typeof be=="object"&&be!==null&&be.type===Dt&&be.key===null;if(ut&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case Lt:return B(mt(Se,De,be,He));case qe:return B(cn(Se,De,be,He));case Ce:var at=be._payload,Wt=be._init;return qt(Se,De,Wt(at),He)}if(Qn(be))return Be(Se,De,be,He);if(Ye(be))return lt(Se,De,be,He);yh(Se,be)}return typeof be=="string"&&be!==""||typeof be=="number"?B(bt(Se,De,""+be,He)):(typeof be=="function"&&xh(Se),f(Se,De))}return qt}var Vc=lv(!0),cv=lv(!1);function x5(r,a){if(r!==null&&a.child!==r.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var f=a.child,m=Tl(f,f.pendingProps);for(a.child=m,m.return=a;f.sibling!==null;)f=f.sibling,m=m.sibling=Tl(f,f.pendingProps),m.return=a;m.sibling=null}}function b5(r,a){for(var f=r.child;f!==null;)_4(f,a),f=f.sibling}var bh=rn(null),Cd;Cd={};var Sh=null,qc=null,HA=null,Ch=!1;function wh(){Sh=null,qc=null,HA=null,Ch=!1}function uv(){Ch=!0}function dv(){Ch=!1}function fv(r,a,f){Mr?(Gn(bh,a._currentValue,r),a._currentValue=f,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==Cd&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=Cd):(Gn(bh,a._currentValue2,r),a._currentValue2=f,a._currentRenderer2!==void 0&&a._currentRenderer2!==null&&a._currentRenderer2!==Cd&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer2=Cd)}function WA(r,a){var f=bh.current;jn(bh,a),Mr?r._currentValue=f:r._currentValue2=f}function XA(r,a,f){for(var m=r;m!==null;){var v=m.alternate;if(Ir(m.childLanes,a)?v!==null&&!Ir(v.childLanes,a)&&(v.childLanes=Bt(v.childLanes,a)):(m.childLanes=Bt(m.childLanes,a),v!==null&&(v.childLanes=Bt(v.childLanes,a))),m===f)break;m=m.return}m!==f&&u("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function S5(r,a,f){C5(r,a,f)}function C5(r,a,f){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var v=void 0,_=m.dependencies;if(_!==null){v=m.child;for(var B=_.firstContext;B!==null;){if(B.context===a){if(m.tag===V){var F=Ao(f),W=Hs(dn,F);W.tag=Eh;var J=m.updateQueue;if(J!==null){var se=J.shared,ve=se.pending;ve===null?W.next=W:(W.next=ve.next,ve.next=W),se.pending=W}}m.lanes=Bt(m.lanes,f);var _e=m.alternate;_e!==null&&(_e.lanes=Bt(_e.lanes,f)),XA(m.return,f,r),_.lanes=Bt(_.lanes,f);break}B=B.next}}else if(m.tag===ne)v=m.type===r.type?null:m.child;else if(m.tag===Ee){var ke=m.return;if(ke===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ke.lanes=Bt(ke.lanes,f);var Me=ke.alternate;Me!==null&&(Me.lanes=Bt(Me.lanes,f)),XA(ke,f,r),v=m.sibling}else v=m.child;if(v!==null)v.return=m;else for(v=m;v!==null;){if(v===r){v=null;break}var Be=v.sibling;if(Be!==null){Be.return=v.return,v=Be;break}v=v.return}m=v}}function Kc(r,a){Sh=r,qc=null,HA=null;var f=r.dependencies;if(f!==null){var m=f.firstContext;m!==null&&(vr(f.lanes,a)&&Od(),f.firstContext=null)}}function Zn(r){Ch&&u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var a=Mr?r._currentValue:r._currentValue2;if(HA!==r){var f={context:r,memoizedValue:a,next:null};if(qc===null){if(Sh===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");qc=f,Sh.dependencies={lanes:Pe,firstContext:f}}else qc=qc.next=f}return a}var xl=null;function QA(r){xl===null?xl=[r]:xl.push(r)}function w5(){if(xl!==null){for(var r=0;r<xl.length;r++){var a=xl[r],f=a.interleaved;if(f!==null){a.interleaved=null;var m=f.next,v=a.pending;if(v!==null){var _=v.next;v.next=m,f.next=_}a.pending=f}}xl=null}}function hv(r,a,f,m){var v=a.interleaved;return v===null?(f.next=f,QA(a)):(f.next=v.next,v.next=f),a.interleaved=f,_h(r,m)}function _5(r,a,f,m){var v=a.interleaved;v===null?(f.next=f,QA(a)):(f.next=v.next,v.next=f),a.interleaved=f}function E5(r,a,f,m){var v=a.interleaved;return v===null?(f.next=f,QA(a)):(f.next=v.next,v.next=f),a.interleaved=f,_h(r,m)}function oa(r,a){return _h(r,a)}var R5=_h;function _h(r,a){r.lanes=Bt(r.lanes,a);var f=r.alternate;f!==null&&(f.lanes=Bt(f.lanes,a)),f===null&&(r.flags&(un|qa))!==st&&cy(r);for(var m=r,v=r.return;v!==null;)v.childLanes=Bt(v.childLanes,a),f=v.alternate,f!==null?f.childLanes=Bt(f.childLanes,a):(v.flags&(un|qa))!==st&&cy(r),m=v,v=v.return;if(m.tag===q){var _=m.stateNode;return _}else return null}var pv=0,Av=1,Eh=2,YA=3,Rh=!1,VA,Th;VA=!1,Th=null;function qA(r){var a={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Pe},effects:null};r.updateQueue=a}function mv(r,a){var f=a.updateQueue,m=r.updateQueue;if(f===m){var v={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,effects:m.effects};a.updateQueue=v}}function Hs(r,a){var f={eventTime:r,lane:a,tag:pv,payload:null,callback:null,next:null};return f}function wo(r,a,f){var m=r.updateQueue;if(m===null)return null;var v=m.shared;if(Th===v&&!VA&&(u("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),VA=!0),I3()){var _=v.pending;return _===null?a.next=a:(a.next=_.next,_.next=a),v.pending=a,R5(r,f)}else return E5(r,v,a,f)}function Dh(r,a,f){var m=a.updateQueue;if(m!==null){var v=m.shared;if(ld(f)){var _=v.lanes;_=cd(_,r.pendingLanes);var B=Bt(_,f);v.lanes=B,ud(r,B)}}}function KA(r,a){var f=r.updateQueue,m=r.alternate;if(m!==null){var v=m.updateQueue;if(f===v){var _=null,B=null,F=f.firstBaseUpdate;if(F!==null){var W=F;do{var J={eventTime:W.eventTime,lane:W.lane,tag:W.tag,payload:W.payload,callback:W.callback,next:null};B===null?_=B=J:(B.next=J,B=J),W=W.next}while(W!==null);B===null?_=B=a:(B.next=a,B=a)}else _=B=a;f={baseState:v.baseState,firstBaseUpdate:_,lastBaseUpdate:B,shared:v.shared,effects:v.effects},r.updateQueue=f;return}}var se=f.lastBaseUpdate;se===null?f.firstBaseUpdate=a:se.next=a,f.lastBaseUpdate=a}function T5(r,a,f,m,v,_){switch(f.tag){case Av:{var B=f.payload;if(typeof B=="function"){uv();var F=B.call(_,m,v);{if(r.mode&Rn){Fn(!0);try{B.call(_,m,v)}finally{Fn(!1)}}dv()}return F}return B}case YA:r.flags=r.flags&~tr|Qt;case pv:{var W=f.payload,J;if(typeof W=="function"){uv(),J=W.call(_,m,v);{if(r.mode&Rn){Fn(!0);try{W.call(_,m,v)}finally{Fn(!1)}}dv()}}else J=W;return J==null?m:y({},m,J)}case Eh:return Rh=!0,m}return m}function Lh(r,a,f,m){var v=r.updateQueue;Rh=!1,Th=v.shared;var _=v.firstBaseUpdate,B=v.lastBaseUpdate,F=v.shared.pending;if(F!==null){v.shared.pending=null;var W=F,J=W.next;W.next=null,B===null?_=J:B.next=J,B=W;var se=r.alternate;if(se!==null){var ve=se.updateQueue,_e=ve.lastBaseUpdate;_e!==B&&(_e===null?ve.firstBaseUpdate=J:_e.next=J,ve.lastBaseUpdate=W)}}if(_!==null){var ke=v.baseState,Me=Pe,Be=null,lt=null,bt=null,mt=_;do{var cn=mt.lane,qt=mt.eventTime;if(Ir(m,cn)){if(bt!==null){var De={eventTime:qt,lane:Ln,tag:mt.tag,payload:mt.payload,callback:mt.callback,next:null};bt=bt.next=De}ke=T5(r,v,mt,ke,a,f);var be=mt.callback;if(be!==null&&mt.lane!==Ln){r.flags|=ps;var He=v.effects;He===null?v.effects=[mt]:He.push(mt)}}else{var Se={eventTime:qt,lane:cn,tag:mt.tag,payload:mt.payload,callback:mt.callback,next:null};bt===null?(lt=bt=Se,Be=ke):bt=bt.next=Se,Me=Bt(Me,cn)}if(mt=mt.next,mt===null){if(F=v.shared.pending,F===null)break;var ut=F,at=ut.next;ut.next=null,mt=at,v.lastBaseUpdate=ut,v.shared.pending=null}}while(!0);bt===null&&(Be=ke),v.baseState=Be,v.firstBaseUpdate=lt,v.lastBaseUpdate=bt;var Wt=v.shared.interleaved;if(Wt!==null){var wt=Wt;do Me=Bt(Me,wt.lane),wt=wt.next;while(wt!==Wt)}else _===null&&(v.shared.lanes=Pe);$d(Me),r.lanes=Me,r.memoizedState=ke}Th=null}function D5(r,a){if(typeof r!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+r));r.call(a)}function gv(){Rh=!1}function kh(){return Rh}function vv(r,a,f){var m=a.effects;if(a.effects=null,m!==null)for(var v=0;v<m.length;v++){var _=m[v],B=_.callback;B!==null&&(_.callback=null,D5(B,f))}}var wd={},_o=rn(wd),_d=rn(wd),Nh=rn(wd);function Bh(r){if(r===wd)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return r}function JA(){var r=Bh(Nh.current);return r}function ZA(r,a){Gn(Nh,a,r),Gn(_d,r,r),Gn(_o,wd,r);var f=An(a);jn(_o,r),Gn(_o,f,r)}function Jc(r){jn(_o,r),jn(_d,r),jn(Nh,r)}function Ed(){var r=Bh(_o.current);return r}function yv(r){var a=Bh(Nh.current),f=Bh(_o.current),m=hn(f,r.type,a);f!==m&&(Gn(_d,r,r),Gn(_o,m,r))}function $A(r){_d.current===r&&(jn(_o,r),jn(_d,r))}var L5=0,xv=1,bv=1,Rd=2,Ti=rn(L5);function e0(r,a){return(r&a)!==0}function Zc(r){return r&xv}function t0(r,a){return r&xv|a}function k5(r,a){return r|a}function Eo(r,a){Gn(Ti,a,r)}function $c(r){jn(Ti,r)}function N5(r,a){var f=r.memoizedState;return f!==null?f.dehydrated!==null:(r.memoizedProps,!0)}function Ph(r){for(var a=r;a!==null;){if(a.tag===re){var f=a.memoizedState;if(f!==null){var m=f.dehydrated;if(m===null||Gi(m)||La(m))return a}}else if(a.tag===Re&&a.memoizedProps.revealOrder!==void 0){var v=(a.flags&Qt)!==st;if(v)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)return null;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var xa=0,or=1,ts=2,lr=4,Rr=8,n0=[];function r0(){for(var r=0;r<n0.length;r++){var a=n0[r];Mr?a._workInProgressVersionPrimary=null:a._workInProgressVersionSecondary=null}n0.length=0}function B5(r,a){var f=a._getVersion,m=f(a._source);r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[a,m]:r.mutableSourceEagerHydrationData.push(a,m)}var rt=c.ReactCurrentDispatcher,Td=c.ReactCurrentBatchConfig,a0,eu;a0=new Set;var bl=Pe,ln=null,cr=null,ur=null,Mh=!1,Dd=!1,Ld=0,P5=0,M5=25,Le=null,oi=null,Ro=-1,i0=!1;function an(){{var r=Le;oi===null?oi=[r]:oi.push(r)}}function Ke(){{var r=Le;oi!==null&&(Ro++,oi[Ro]!==r&&z5(r))}}function tu(r){r!=null&&!Qn(r)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Le,typeof r)}function z5(r){{var a=it(ln);if(!a0.has(a)&&(a0.add(a),oi!==null)){for(var f="",m=30,v=0;v<=Ro;v++){for(var _=oi[v],B=v===Ro?r:_,F=v+1+". "+_;F.length<m;)F+=" ";F+=B+`
|
|
364
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return m}function yh(r,a){var f=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}function xh(r){{var a=it(r)||"Component";if(GA[a])return;GA[a]=!0,u("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function ov(r){var a=r._payload,f=r._init;return f(a)}function lv(r){function a(Se,De){if(r){var be=Se.deletions;be===null?(Se.deletions=[De],Se.flags|=Ea):be.push(De)}}function f(Se,De){if(!r)return null;for(var be=De;be!==null;)a(Se,be),be=be.sibling;return null}function m(Se,De){for(var be=new Map,He=De;He!==null;)He.key!==null?be.set(He.key,He):be.set(He.index,He),He=He.sibling;return be}function v(Se,De){var be=Tl(Se,De);return be.index=0,be.sibling=null,be}function _(Se,De,be){if(Se.index=be,!r)return Se.flags|=Nf,De;var He=Se.alternate;if(He!==null){var ft=He.index;return ft<De?(Se.flags|=un,De):ft}else return Se.flags|=un,De}function B(Se){return r&&Se.alternate===null&&(Se.flags|=un),Se}function F(Se,De,be,He){if(De===null||De.tag!==ge){var ft=Im(be,Se.mode,He);return ft.return=Se,ft}else{var at=v(De,be);return at.return=Se,at}}function H(Se,De,be,He){var ft=be.type;if(ft===Dt)return ie(Se,De,be.props.children,He,be.key);if(De!==null&&(De.elementType===ft||hy(De,be)||typeof ft=="object"&&ft!==null&&ft.$$typeof===Ce&&ov(ft)===De.type)){var at=v(De,be.props);return at.ref=Sd(Se,De,be),at.return=Se,at._debugSource=be._source,at._debugOwner=be._owner,at}var Wt=Fm(be,Se.mode,He);return Wt.ref=Sd(Se,De,be),Wt.return=Se,Wt}function Z(Se,De,be,He){if(De===null||De.tag!==Q||De.stateNode.containerInfo!==be.containerInfo||De.stateNode.implementation!==be.implementation){var ft=Om(be,Se.mode,He);return ft.return=Se,ft}else{var at=v(De,be.children||[]);return at.return=Se,at}}function ie(Se,De,be,He,ft){if(De===null||De.tag!==W){var at=Bo(be,Se.mode,He,ft);return at.return=Se,at}else{var Wt=v(De,be);return Wt.return=Se,Wt}}function ve(Se,De,be){if(typeof De=="string"&&De!==""||typeof De=="number"){var He=Im(""+De,Se.mode,be);return He.return=Se,He}if(typeof De=="object"&&De!==null){switch(De.$$typeof){case Lt:{var ft=Fm(De,Se.mode,be);return ft.ref=Sd(Se,null,De),ft.return=Se,ft}case qe:{var at=Om(De,Se.mode,be);return at.return=Se,at}case Ce:{var Wt=De._payload,wt=De._init;return ve(Se,wt(Wt),be)}}if(Qn(De)||Ye(De)){var en=Bo(De,Se.mode,be,null);return en.return=Se,en}yh(Se,De)}return typeof De=="function"&&xh(Se),null}function _e(Se,De,be,He){var ft=De!==null?De.key:null;if(typeof be=="string"&&be!==""||typeof be=="number")return ft!==null?null:F(Se,De,""+be,He);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case Lt:return be.key===ft?H(Se,De,be,He):null;case qe:return be.key===ft?Z(Se,De,be,He):null;case Ce:{var at=be._payload,Wt=be._init;return _e(Se,De,Wt(at),He)}}if(Qn(be)||Ye(be))return ft!==null?null:ie(Se,De,be,He,null);yh(Se,be)}return typeof be=="function"&&xh(Se),null}function ke(Se,De,be,He,ft){if(typeof He=="string"&&He!==""||typeof He=="number"){var at=Se.get(be)||null;return F(De,at,""+He,ft)}if(typeof He=="object"&&He!==null){switch(He.$$typeof){case Lt:{var Wt=Se.get(He.key===null?be:He.key)||null;return H(De,Wt,He,ft)}case qe:{var wt=Se.get(He.key===null?be:He.key)||null;return Z(De,wt,He,ft)}case Ce:var en=He._payload,Ot=He._init;return ke(Se,De,be,Ot(en),ft)}if(Qn(He)||Ye(He)){var yn=Se.get(be)||null;return ie(De,yn,He,ft,null)}yh(De,He)}return typeof He=="function"&&xh(De),null}function Me(Se,De,be){{if(typeof Se!="object"||Se===null)return De;switch(Se.$$typeof){case Lt:case qe:sv(Se,be);var He=Se.key;if(typeof He!="string")break;if(De===null){De=new Set,De.add(He);break}if(!De.has(He)){De.add(He);break}u("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",He);break;case Ce:var ft=Se._payload,at=Se._init;Me(at(ft),De,be);break}}return De}function Be(Se,De,be,He){for(var ft=null,at=0;at<be.length;at++){var Wt=be[at];ft=Me(Wt,ft,Se)}for(var wt=null,en=null,Ot=De,yn=0,yt=0,Un=null;Ot!==null&&yt<be.length;yt++){Ot.index>yt?(Un=Ot,Ot=null):Un=Ot.sibling;var Qr=_e(Se,Ot,be[yt],He);if(Qr===null){Ot===null&&(Ot=Un);break}r&&Ot&&Qr.alternate===null&&a(Se,Ot),yn=_(Qr,yn,yt),en===null?wt=Qr:en.sibling=Qr,en=Qr,Ot=Un}if(yt===be.length){if(f(Se,Ot),l()){var Nr=yt;$i(Se,Nr)}return wt}if(Ot===null){for(;yt<be.length;yt++){var ja=ve(Se,be[yt],He);ja!==null&&(yn=_(ja,yn,yt),en===null?wt=ja:en.sibling=ja,en=ja)}if(l()){var ua=yt;$i(Se,ua)}return wt}for(var da=m(Se,Ot);yt<be.length;yt++){var Yr=ke(da,Se,yt,be[yt],He);Yr!==null&&(r&&Yr.alternate!==null&&da.delete(Yr.key===null?yt:Yr.key),yn=_(Yr,yn,yt),en===null?wt=Yr:en.sibling=Yr,en=Yr)}if(r&&da.forEach(function(fu){return a(Se,fu)}),l()){var Ys=yt;$i(Se,Ys)}return wt}function ut(Se,De,be,He){var ft=Ye(be);if(typeof ft!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&be[Symbol.toStringTag]==="Generator"&&(OA||u("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),OA=!0),be.entries===ft&&(IA||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),IA=!0);var at=ft.call(be);if(at)for(var Wt=null,wt=at.next();!wt.done;wt=at.next()){var en=wt.value;Wt=Me(en,Wt,Se)}}var Ot=ft.call(be);if(Ot==null)throw new Error("An iterable object provided no iterator.");for(var yn=null,yt=null,Un=De,Qr=0,Nr=0,ja=null,ua=Ot.next();Un!==null&&!ua.done;Nr++,ua=Ot.next()){Un.index>Nr?(ja=Un,Un=null):ja=Un.sibling;var da=_e(Se,Un,ua.value,He);if(da===null){Un===null&&(Un=ja);break}r&&Un&&da.alternate===null&&a(Se,Un),Qr=_(da,Qr,Nr),yt===null?yn=da:yt.sibling=da,yt=da,Un=ja}if(ua.done){if(f(Se,Un),l()){var Yr=Nr;$i(Se,Yr)}return yn}if(Un===null){for(;!ua.done;Nr++,ua=Ot.next()){var Ys=ve(Se,ua.value,He);Ys!==null&&(Qr=_(Ys,Qr,Nr),yt===null?yn=Ys:yt.sibling=Ys,yt=Ys)}if(l()){var fu=Nr;$i(Se,fu)}return yn}for(var nf=m(Se,Un);!ua.done;Nr++,ua=Ot.next()){var ds=ke(nf,Se,Nr,ua.value,He);ds!==null&&(r&&ds.alternate!==null&&nf.delete(ds.key===null?Nr:ds.key),Qr=_(ds,Qr,Nr),yt===null?yn=ds:yt.sibling=ds,yt=ds)}if(r&&nf.forEach(function(K4){return a(Se,K4)}),l()){var q4=Nr;$i(Se,q4)}return yn}function bt(Se,De,be,He){if(De!==null&&De.tag===ge){f(Se,De.sibling);var ft=v(De,be);return ft.return=Se,ft}f(Se,De);var at=Im(be,Se.mode,He);return at.return=Se,at}function gt(Se,De,be,He){for(var ft=be.key,at=De;at!==null;){if(at.key===ft){var Wt=be.type;if(Wt===Dt){if(at.tag===W){f(Se,at.sibling);var wt=v(at,be.props.children);return wt.return=Se,wt._debugSource=be._source,wt._debugOwner=be._owner,wt}}else if(at.elementType===Wt||hy(at,be)||typeof Wt=="object"&&Wt!==null&&Wt.$$typeof===Ce&&ov(Wt)===at.type){f(Se,at.sibling);var en=v(at,be.props);return en.ref=Sd(Se,at,be),en.return=Se,en._debugSource=be._source,en._debugOwner=be._owner,en}f(Se,at);break}else a(Se,at);at=at.sibling}if(be.type===Dt){var Ot=Bo(be.props.children,Se.mode,He,be.key);return Ot.return=Se,Ot}else{var yn=Fm(be,Se.mode,He);return yn.ref=Sd(Se,De,be),yn.return=Se,yn}}function cn(Se,De,be,He){for(var ft=be.key,at=De;at!==null;){if(at.key===ft)if(at.tag===Q&&at.stateNode.containerInfo===be.containerInfo&&at.stateNode.implementation===be.implementation){f(Se,at.sibling);var Wt=v(at,be.children||[]);return Wt.return=Se,Wt}else{f(Se,at);break}else a(Se,at);at=at.sibling}var wt=Om(be,Se.mode,He);return wt.return=Se,wt}function qt(Se,De,be,He){var ft=typeof be=="object"&&be!==null&&be.type===Dt&&be.key===null;if(ft&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case Lt:return B(gt(Se,De,be,He));case qe:return B(cn(Se,De,be,He));case Ce:var at=be._payload,Wt=be._init;return qt(Se,De,Wt(at),He)}if(Qn(be))return Be(Se,De,be,He);if(Ye(be))return ut(Se,De,be,He);yh(Se,be)}return typeof be=="string"&&be!==""||typeof be=="number"?B(bt(Se,De,""+be,He)):(typeof be=="function"&&xh(Se),f(Se,De))}return qt}var Vc=lv(!0),cv=lv(!1);function x5(r,a){if(r!==null&&a.child!==r.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var f=a.child,m=Tl(f,f.pendingProps);for(a.child=m,m.return=a;f.sibling!==null;)f=f.sibling,m=m.sibling=Tl(f,f.pendingProps),m.return=a;m.sibling=null}}function b5(r,a){for(var f=r.child;f!==null;)_4(f,a),f=f.sibling}var bh=rn(null),Cd;Cd={};var Sh=null,qc=null,HA=null,Ch=!1;function wh(){Sh=null,qc=null,HA=null,Ch=!1}function uv(){Ch=!0}function dv(){Ch=!1}function fv(r,a,f){Mr?(Gn(bh,a._currentValue,r),a._currentValue=f,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==Cd&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=Cd):(Gn(bh,a._currentValue2,r),a._currentValue2=f,a._currentRenderer2!==void 0&&a._currentRenderer2!==null&&a._currentRenderer2!==Cd&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer2=Cd)}function WA(r,a){var f=bh.current;jn(bh,a),Mr?r._currentValue=f:r._currentValue2=f}function XA(r,a,f){for(var m=r;m!==null;){var v=m.alternate;if(Ir(m.childLanes,a)?v!==null&&!Ir(v.childLanes,a)&&(v.childLanes=Bt(v.childLanes,a)):(m.childLanes=Bt(m.childLanes,a),v!==null&&(v.childLanes=Bt(v.childLanes,a))),m===f)break;m=m.return}m!==f&&u("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function S5(r,a,f){C5(r,a,f)}function C5(r,a,f){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var v=void 0,_=m.dependencies;if(_!==null){v=m.child;for(var B=_.firstContext;B!==null;){if(B.context===a){if(m.tag===Y){var F=Ao(f),H=Hs(dn,F);H.tag=Eh;var Z=m.updateQueue;if(Z!==null){var ie=Z.shared,ve=ie.pending;ve===null?H.next=H:(H.next=ve.next,ve.next=H),ie.pending=H}}m.lanes=Bt(m.lanes,f);var _e=m.alternate;_e!==null&&(_e.lanes=Bt(_e.lanes,f)),XA(m.return,f,r),_.lanes=Bt(_.lanes,f);break}B=B.next}}else if(m.tag===ne)v=m.type===r.type?null:m.child;else if(m.tag===Ee){var ke=m.return;if(ke===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ke.lanes=Bt(ke.lanes,f);var Me=ke.alternate;Me!==null&&(Me.lanes=Bt(Me.lanes,f)),XA(ke,f,r),v=m.sibling}else v=m.child;if(v!==null)v.return=m;else for(v=m;v!==null;){if(v===r){v=null;break}var Be=v.sibling;if(Be!==null){Be.return=v.return,v=Be;break}v=v.return}m=v}}function Kc(r,a){Sh=r,qc=null,HA=null;var f=r.dependencies;if(f!==null){var m=f.firstContext;m!==null&&(vr(f.lanes,a)&&Od(),f.firstContext=null)}}function Zn(r){Ch&&u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var a=Mr?r._currentValue:r._currentValue2;if(HA!==r){var f={context:r,memoizedValue:a,next:null};if(qc===null){if(Sh===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");qc=f,Sh.dependencies={lanes:Pe,firstContext:f}}else qc=qc.next=f}return a}var xl=null;function QA(r){xl===null?xl=[r]:xl.push(r)}function w5(){if(xl!==null){for(var r=0;r<xl.length;r++){var a=xl[r],f=a.interleaved;if(f!==null){a.interleaved=null;var m=f.next,v=a.pending;if(v!==null){var _=v.next;v.next=m,f.next=_}a.pending=f}}xl=null}}function hv(r,a,f,m){var v=a.interleaved;return v===null?(f.next=f,QA(a)):(f.next=v.next,v.next=f),a.interleaved=f,_h(r,m)}function _5(r,a,f,m){var v=a.interleaved;v===null?(f.next=f,QA(a)):(f.next=v.next,v.next=f),a.interleaved=f}function E5(r,a,f,m){var v=a.interleaved;return v===null?(f.next=f,QA(a)):(f.next=v.next,v.next=f),a.interleaved=f,_h(r,m)}function oa(r,a){return _h(r,a)}var R5=_h;function _h(r,a){r.lanes=Bt(r.lanes,a);var f=r.alternate;f!==null&&(f.lanes=Bt(f.lanes,a)),f===null&&(r.flags&(un|qa))!==st&&cy(r);for(var m=r,v=r.return;v!==null;)v.childLanes=Bt(v.childLanes,a),f=v.alternate,f!==null?f.childLanes=Bt(f.childLanes,a):(v.flags&(un|qa))!==st&&cy(r),m=v,v=v.return;if(m.tag===q){var _=m.stateNode;return _}else return null}var pv=0,Av=1,Eh=2,YA=3,Rh=!1,VA,Th;VA=!1,Th=null;function qA(r){var a={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Pe},effects:null};r.updateQueue=a}function mv(r,a){var f=a.updateQueue,m=r.updateQueue;if(f===m){var v={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,effects:m.effects};a.updateQueue=v}}function Hs(r,a){var f={eventTime:r,lane:a,tag:pv,payload:null,callback:null,next:null};return f}function wo(r,a,f){var m=r.updateQueue;if(m===null)return null;var v=m.shared;if(Th===v&&!VA&&(u("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),VA=!0),I3()){var _=v.pending;return _===null?a.next=a:(a.next=_.next,_.next=a),v.pending=a,R5(r,f)}else return E5(r,v,a,f)}function Dh(r,a,f){var m=a.updateQueue;if(m!==null){var v=m.shared;if(ld(f)){var _=v.lanes;_=cd(_,r.pendingLanes);var B=Bt(_,f);v.lanes=B,ud(r,B)}}}function KA(r,a){var f=r.updateQueue,m=r.alternate;if(m!==null){var v=m.updateQueue;if(f===v){var _=null,B=null,F=f.firstBaseUpdate;if(F!==null){var H=F;do{var Z={eventTime:H.eventTime,lane:H.lane,tag:H.tag,payload:H.payload,callback:H.callback,next:null};B===null?_=B=Z:(B.next=Z,B=Z),H=H.next}while(H!==null);B===null?_=B=a:(B.next=a,B=a)}else _=B=a;f={baseState:v.baseState,firstBaseUpdate:_,lastBaseUpdate:B,shared:v.shared,effects:v.effects},r.updateQueue=f;return}}var ie=f.lastBaseUpdate;ie===null?f.firstBaseUpdate=a:ie.next=a,f.lastBaseUpdate=a}function T5(r,a,f,m,v,_){switch(f.tag){case Av:{var B=f.payload;if(typeof B=="function"){uv();var F=B.call(_,m,v);{if(r.mode&Rn){Fn(!0);try{B.call(_,m,v)}finally{Fn(!1)}}dv()}return F}return B}case YA:r.flags=r.flags&~tr|Qt;case pv:{var H=f.payload,Z;if(typeof H=="function"){uv(),Z=H.call(_,m,v);{if(r.mode&Rn){Fn(!0);try{H.call(_,m,v)}finally{Fn(!1)}}dv()}}else Z=H;return Z==null?m:y({},m,Z)}case Eh:return Rh=!0,m}return m}function Lh(r,a,f,m){var v=r.updateQueue;Rh=!1,Th=v.shared;var _=v.firstBaseUpdate,B=v.lastBaseUpdate,F=v.shared.pending;if(F!==null){v.shared.pending=null;var H=F,Z=H.next;H.next=null,B===null?_=Z:B.next=Z,B=H;var ie=r.alternate;if(ie!==null){var ve=ie.updateQueue,_e=ve.lastBaseUpdate;_e!==B&&(_e===null?ve.firstBaseUpdate=Z:_e.next=Z,ve.lastBaseUpdate=H)}}if(_!==null){var ke=v.baseState,Me=Pe,Be=null,ut=null,bt=null,gt=_;do{var cn=gt.lane,qt=gt.eventTime;if(Ir(m,cn)){if(bt!==null){var De={eventTime:qt,lane:Ln,tag:gt.tag,payload:gt.payload,callback:gt.callback,next:null};bt=bt.next=De}ke=T5(r,v,gt,ke,a,f);var be=gt.callback;if(be!==null&>.lane!==Ln){r.flags|=ps;var He=v.effects;He===null?v.effects=[gt]:He.push(gt)}}else{var Se={eventTime:qt,lane:cn,tag:gt.tag,payload:gt.payload,callback:gt.callback,next:null};bt===null?(ut=bt=Se,Be=ke):bt=bt.next=Se,Me=Bt(Me,cn)}if(gt=gt.next,gt===null){if(F=v.shared.pending,F===null)break;var ft=F,at=ft.next;ft.next=null,gt=at,v.lastBaseUpdate=ft,v.shared.pending=null}}while(!0);bt===null&&(Be=ke),v.baseState=Be,v.firstBaseUpdate=ut,v.lastBaseUpdate=bt;var Wt=v.shared.interleaved;if(Wt!==null){var wt=Wt;do Me=Bt(Me,wt.lane),wt=wt.next;while(wt!==Wt)}else _===null&&(v.shared.lanes=Pe);$d(Me),r.lanes=Me,r.memoizedState=ke}Th=null}function D5(r,a){if(typeof r!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+r));r.call(a)}function gv(){Rh=!1}function kh(){return Rh}function vv(r,a,f){var m=a.effects;if(a.effects=null,m!==null)for(var v=0;v<m.length;v++){var _=m[v],B=_.callback;B!==null&&(_.callback=null,D5(B,f))}}var wd={},_o=rn(wd),_d=rn(wd),Nh=rn(wd);function Bh(r){if(r===wd)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return r}function JA(){var r=Bh(Nh.current);return r}function ZA(r,a){Gn(Nh,a,r),Gn(_d,r,r),Gn(_o,wd,r);var f=An(a);jn(_o,r),Gn(_o,f,r)}function Jc(r){jn(_o,r),jn(_d,r),jn(Nh,r)}function Ed(){var r=Bh(_o.current);return r}function yv(r){var a=Bh(Nh.current),f=Bh(_o.current),m=hn(f,r.type,a);f!==m&&(Gn(_d,r,r),Gn(_o,m,r))}function $A(r){_d.current===r&&(jn(_o,r),jn(_d,r))}var L5=0,xv=1,bv=1,Rd=2,Ti=rn(L5);function e0(r,a){return(r&a)!==0}function Zc(r){return r&xv}function t0(r,a){return r&xv|a}function k5(r,a){return r|a}function Eo(r,a){Gn(Ti,a,r)}function $c(r){jn(Ti,r)}function N5(r,a){var f=r.memoizedState;return f!==null?f.dehydrated!==null:(r.memoizedProps,!0)}function Ph(r){for(var a=r;a!==null;){if(a.tag===J){var f=a.memoizedState;if(f!==null){var m=f.dehydrated;if(m===null||Gi(m)||La(m))return a}}else if(a.tag===Re&&a.memoizedProps.revealOrder!==void 0){var v=(a.flags&Qt)!==st;if(v)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)return null;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var xa=0,or=1,ts=2,lr=4,Rr=8,n0=[];function r0(){for(var r=0;r<n0.length;r++){var a=n0[r];Mr?a._workInProgressVersionPrimary=null:a._workInProgressVersionSecondary=null}n0.length=0}function B5(r,a){var f=a._getVersion,m=f(a._source);r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[a,m]:r.mutableSourceEagerHydrationData.push(a,m)}var rt=c.ReactCurrentDispatcher,Td=c.ReactCurrentBatchConfig,a0,eu;a0=new Set;var bl=Pe,ln=null,cr=null,ur=null,Mh=!1,Dd=!1,Ld=0,P5=0,M5=25,Le=null,oi=null,Ro=-1,i0=!1;function an(){{var r=Le;oi===null?oi=[r]:oi.push(r)}}function Ke(){{var r=Le;oi!==null&&(Ro++,oi[Ro]!==r&&z5(r))}}function tu(r){r!=null&&!Qn(r)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Le,typeof r)}function z5(r){{var a=it(ln);if(!a0.has(a)&&(a0.add(a),oi!==null)){for(var f="",m=30,v=0;v<=Ro;v++){for(var _=oi[v],B=v===Ro?r:_,F=v+1+". "+_;F.length<m;)F+=" ";F+=B+`
|
|
365
365
|
`,f+=F}u(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
366
366
|
|
|
367
367
|
Previous render Next render
|
|
@@ -374,29 +374,29 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}retur
|
|
|
374
374
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function s0(r,a){if(i0)return!1;if(a===null)return u("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Le),!1;r.length!==a.length&&u(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
375
375
|
|
|
376
376
|
Previous: %s
|
|
377
|
-
Incoming: %s`,Le,"["+a.join(", ")+"]","["+r.join(", ")+"]");for(var f=0;f<a.length&&f<r.length;f++)if(!xr(r[f],a[f]))return!1;return!0}function nu(r,a,f,m,v,_){bl=_,ln=a,oi=r!==null?r._debugHookTypes:null,Ro=-1,i0=r!==null&&r.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Pe,r!==null&&r.memoizedState!==null?rt.current=Hv:oi!==null?rt.current=Gv:rt.current=jv;var B=f(m,v);if(Dd){var F=0;do{if(Dd=!1,Ld=0,F>=M5)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");F+=1,i0=!1,cr=null,ur=null,a.updateQueue=null,Ro=-1,rt.current=Wv,B=f(m,v)}while(Dd)}rt.current=Vh,a._debugHookTypes=oi;var W=cr!==null&&cr.next!==null;if(bl=Pe,ln=null,cr=null,ur=null,Le=null,oi=null,Ro=-1,r!==null&&(r.flags&mi)!==(a.flags&mi)&&(r.mode&jt)!==At&&u("Internal React error: Expected static flag was missing. Please notify the React team."),Mh=!1,W)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return B}function ru(){var r=Ld!==0;return Ld=0,r}function Sv(r,a,f){a.updateQueue=r.updateQueue,(a.mode&Ma)!==At?a.flags&=-50333701:a.flags&=-2053,r.lanes=na(r.lanes,f)}function Cv(){if(rt.current=Vh,Mh){for(var r=ln.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Mh=!1}bl=Pe,ln=null,cr=null,ur=null,oi=null,Ro=-1,Le=null,zv=!1,Dd=!1,Ld=0}function ns(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ur===null?ln.memoizedState=ur=r:ur=ur.next=r,ur}function li(){var r;if(cr===null){var a=ln.alternate;a!==null?r=a.memoizedState:r=null}else r=cr.next;var f;if(ur===null?f=ln.memoizedState:f=ur.next,f!==null)ur=f,f=ur.next,cr=r;else{if(r===null)throw new Error("Rendered more hooks than during the previous render.");cr=r;var m={memoizedState:cr.memoizedState,baseState:cr.baseState,baseQueue:cr.baseQueue,queue:cr.queue,next:null};ur===null?ln.memoizedState=ur=m:ur=ur.next=m}return ur}function wv(){return{lastEffect:null,stores:null}}function o0(r,a){return typeof a=="function"?a(r):a}function l0(r,a,f){var m=ns(),v;f!==void 0?v=f(a):v=a,m.memoizedState=m.baseState=v;var _={pending:null,interleaved:null,lanes:Pe,dispatch:null,lastRenderedReducer:r,lastRenderedState:v};m.queue=_;var B=_.dispatch=U5.bind(null,ln,_);return[m.memoizedState,B]}function c0(r,a,f){var m=li(),v=m.queue;if(v===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");v.lastRenderedReducer=r;var _=cr,B=_.baseQueue,F=v.pending;if(F!==null){if(B!==null){var W=B.next,J=F.next;B.next=J,F.next=W}_.baseQueue!==B&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),_.baseQueue=B=F,v.pending=null}if(B!==null){var se=B.next,ve=_.baseState,_e=null,ke=null,Me=null,Be=se;do{var lt=Be.lane;if(Ir(bl,lt)){if(Me!==null){var mt={lane:Ln,action:Be.action,hasEagerState:Be.hasEagerState,eagerState:Be.eagerState,next:null};Me=Me.next=mt}if(Be.hasEagerState)ve=Be.eagerState;else{var cn=Be.action;ve=r(ve,cn)}}else{var bt={lane:lt,action:Be.action,hasEagerState:Be.hasEagerState,eagerState:Be.eagerState,next:null};Me===null?(ke=Me=bt,_e=ve):Me=Me.next=bt,ln.lanes=Bt(ln.lanes,lt),$d(lt)}Be=Be.next}while(Be!==null&&Be!==se);Me===null?_e=ve:Me.next=ke,xr(ve,m.memoizedState)||Od(),m.memoizedState=ve,m.baseState=_e,m.baseQueue=Me,v.lastRenderedState=ve}var qt=v.interleaved;if(qt!==null){var Se=qt;do{var De=Se.lane;ln.lanes=Bt(ln.lanes,De),$d(De),Se=Se.next}while(Se!==qt)}else B===null&&(v.lanes=Pe);var be=v.dispatch;return[m.memoizedState,be]}function u0(r,a,f){var m=li(),v=m.queue;if(v===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");v.lastRenderedReducer=r;var _=v.dispatch,B=v.pending,F=m.memoizedState;if(B!==null){v.pending=null;var W=B.next,J=W;do{var se=J.action;F=r(F,se),J=J.next}while(J!==W);xr(F,m.memoizedState)||Od(),m.memoizedState=F,m.baseQueue===null&&(m.baseState=F),v.lastRenderedState=F}return[F,_]}function t7(r,a,f){}function n7(r,a,f){}function d0(r,a,f){var m=ln,v=ns(),_,B=l();if(B){if(f===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");_=f(),eu||_!==f()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),eu=!0)}else{if(_=a(),!eu){var F=a();xr(_,F)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),eu=!0)}var W=Cp();if(W===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");po(W,bl)||_v(m,a,_)}v.memoizedState=_;var J={value:_,getSnapshot:a};return v.queue=J,Uh(Rv.bind(null,m,J,r),[r]),m.flags|=Ai,kd(or|Rr,Ev.bind(null,m,J,_,a),void 0,null),_}function zh(r,a,f){var m=ln,v=li(),_=a();if(!eu){var B=a();xr(_,B)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),eu=!0)}var F=v.memoizedState,W=!xr(F,_);W&&(v.memoizedState=_,Od());var J=v.queue;if(Bd(Rv.bind(null,m,J,r),[r]),J.getSnapshot!==a||W||ur!==null&&ur.memoizedState.tag&or){m.flags|=Ai,kd(or|Rr,Ev.bind(null,m,J,_,a),void 0,null);var se=Cp();if(se===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");po(se,bl)||_v(m,a,_)}return _}function _v(r,a,f){r.flags|=Lu;var m={getSnapshot:a,value:f},v=ln.updateQueue;if(v===null)v=wv(),ln.updateQueue=v,v.stores=[m];else{var _=v.stores;_===null?v.stores=[m]:_.push(m)}}function Ev(r,a,f,m){a.value=f,a.getSnapshot=m,Tv(a)&&Dv(r)}function Rv(r,a,f){var m=function(){Tv(a)&&Dv(r)};return f(m)}function Tv(r){var a=r.getSnapshot,f=r.value;try{var m=a();return!xr(f,m)}catch{return!0}}function Dv(r){var a=oa(r,vt);a!==null&&er(a,r,vt,dn)}function Fh(r){var a=ns();typeof r=="function"&&(r=r()),a.memoizedState=a.baseState=r;var f={pending:null,interleaved:null,lanes:Pe,dispatch:null,lastRenderedReducer:o0,lastRenderedState:r};a.queue=f;var m=f.dispatch=j5.bind(null,ln,f);return[a.memoizedState,m]}function f0(r){return c0(o0)}function h0(r){return u0(o0)}function kd(r,a,f,m){var v={tag:r,create:a,destroy:f,deps:m,next:null},_=ln.updateQueue;if(_===null)_=wv(),ln.updateQueue=_,_.lastEffect=v.next=v;else{var B=_.lastEffect;if(B===null)_.lastEffect=v.next=v;else{var F=B.next;B.next=v,v.next=F,_.lastEffect=v}}return v}function p0(r){var a=ns();{var f={current:r};return a.memoizedState=f,f}}function Ih(r){var a=li();return a.memoizedState}function Nd(r,a,f,m){var v=ns(),_=m===void 0?null:m;ln.flags|=r,v.memoizedState=kd(or|a,f,void 0,_)}function Oh(r,a,f,m){var v=li(),_=m===void 0?null:m,B=void 0;if(cr!==null){var F=cr.memoizedState;if(B=F.destroy,_!==null){var W=F.deps;if(s0(_,W)){v.memoizedState=kd(a,f,B,_);return}}}ln.flags|=r,v.memoizedState=kd(or|a,f,B,_)}function Uh(r,a){return(ln.mode&Ma)!==At?Nd(Bu|Ai|Nu,Rr,r,a):Nd(Ai|Nu,Rr,r,a)}function Bd(r,a){return Oh(Ai,Rr,r,a)}function A0(r,a){return Nd(Ut,ts,r,a)}function jh(r,a){return Oh(Ut,ts,r,a)}function m0(r,a){var f=Ut;return f|=gs,(ln.mode&Ma)!==At&&(f|=Oi),Nd(f,lr,r,a)}function Gh(r,a){return Oh(Ut,lr,r,a)}function Lv(r,a){if(typeof a=="function"){var f=a,m=r();return f(m),function(){f(null)}}else if(a!=null){var v=a;v.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(v).join(", ")+"}");var _=r();return v.current=_,function(){v.current=null}}}function g0(r,a,f){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var m=f!=null?f.concat([r]):null,v=Ut;return v|=gs,(ln.mode&Ma)!==At&&(v|=Oi),Nd(v,lr,Lv.bind(null,a,r),m)}function Hh(r,a,f){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var m=f!=null?f.concat([r]):null;return Oh(Ut,lr,Lv.bind(null,a,r),m)}function F5(r,a){}var Wh=F5;function v0(r,a){var f=ns(),m=a===void 0?null:a;return f.memoizedState=[r,m],r}function Xh(r,a){var f=li(),m=a===void 0?null:a,v=f.memoizedState;if(v!==null&&m!==null){var _=v[1];if(s0(m,_))return v[0]}return f.memoizedState=[r,m],r}function y0(r,a){var f=ns(),m=a===void 0?null:a,v=r();return f.memoizedState=[v,m],v}function Qh(r,a){var f=li(),m=a===void 0?null:a,v=f.memoizedState;if(v!==null&&m!==null){var _=v[1];if(s0(m,_))return v[0]}var B=r();return f.memoizedState=[B,m],B}function x0(r){var a=ns();return a.memoizedState=r,r}function kv(r){var a=li(),f=cr,m=f.memoizedState;return Bv(a,m,r)}function Nv(r){var a=li();if(cr===null)return a.memoizedState=r,r;var f=cr.memoizedState;return Bv(a,f,r)}function Bv(r,a,f){var m=!nh(bl);if(m){if(!xr(f,a)){var v=Rc();ln.lanes=Bt(ln.lanes,v),$d(v),r.baseState=!0}return a}else return r.baseState&&(r.baseState=!1,Od()),r.memoizedState=f,f}function I5(r,a,f){var m=Er();kn(sh(m,ni)),r(!0);var v=Td.transition;Td.transition={};var _=Td.transition;Td.transition._updatedFibers=new Set;try{r(!1),a()}finally{if(kn(m),Td.transition=v,v===null&&_._updatedFibers){var B=_._updatedFibers.size;B>10&&p("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),_._updatedFibers.clear()}}}function b0(){var r=Fh(!1),a=r[0],f=r[1],m=I5.bind(null,f),v=ns();return v.memoizedState=m,[a,m]}function Pv(){var r=f0(),a=r[0],f=li(),m=f.memoizedState;return[a,m]}function Mv(){var r=h0(),a=r[0],f=li(),m=f.memoizedState;return[a,m]}var zv=!1;function O5(){return zv}function S0(){var r=ns(),a=Cp(),f=a.identifierPrefix,m;if(l()){var v=dh();m=":"+f+"R"+v;var _=Ld++;_>0&&(m+="H"+_.toString(32)),m+=":"}else{var B=P5++;m=":"+f+"r"+B.toString(32)+":"}return r.memoizedState=m,m}function Yh(){var r=li(),a=r.memoizedState;return a}function U5(r,a,f){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var m=ko(r),v={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null};if(Fv(r))Iv(a,v);else{var _=hv(r,a,v,m);if(_!==null){var B=Xr();er(_,r,m,B),Ov(_,a,m)}}Uv(r,m)}function j5(r,a,f){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var m=ko(r),v={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null};if(Fv(r))Iv(a,v);else{var _=r.alternate;if(r.lanes===Pe&&(_===null||_.lanes===Pe)){var B=a.lastRenderedReducer;if(B!==null){var F;F=rt.current,rt.current=Di;try{var W=a.lastRenderedState,J=B(W,f);if(v.hasEagerState=!0,v.eagerState=J,xr(J,W)){_5(r,a,v,m);return}}catch{}finally{rt.current=F}}}var se=hv(r,a,v,m);if(se!==null){var ve=Xr();er(se,r,m,ve),Ov(se,a,m)}}Uv(r,m)}function Fv(r){var a=r.alternate;return r===ln||a!==null&&a===ln}function Iv(r,a){Dd=Mh=!0;var f=r.pending;f===null?a.next=a:(a.next=f.next,f.next=a),r.pending=a}function Ov(r,a,f){if(ld(f)){var m=a.lanes;m=cd(m,r.pendingLanes);var v=Bt(m,f);a.lanes=v,ud(r,v)}}function Uv(r,a,f){pl(r,a)}var Vh={readContext:Zn,useCallback:Wr,useContext:Wr,useEffect:Wr,useImperativeHandle:Wr,useInsertionEffect:Wr,useLayoutEffect:Wr,useMemo:Wr,useReducer:Wr,useRef:Wr,useState:Wr,useDebugValue:Wr,useDeferredValue:Wr,useTransition:Wr,useMutableSource:Wr,useSyncExternalStore:Wr,useId:Wr,unstable_isNewReconciler:C},jv=null,Gv=null,Hv=null,Wv=null,rs=null,Di=null,qh=null;{var C0=function(){u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Rt=function(){u("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};jv={readContext:function(r){return Zn(r)},useCallback:function(r,a){return Le="useCallback",an(),tu(a),v0(r,a)},useContext:function(r){return Le="useContext",an(),Zn(r)},useEffect:function(r,a){return Le="useEffect",an(),tu(a),Uh(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",an(),tu(f),g0(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",an(),tu(a),A0(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",an(),tu(a),m0(r,a)},useMemo:function(r,a){Le="useMemo",an(),tu(a);var f=rt.current;rt.current=rs;try{return y0(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",an();var m=rt.current;rt.current=rs;try{return l0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",an(),p0(r)},useState:function(r){Le="useState",an();var a=rt.current;rt.current=rs;try{return Fh(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",an(),void 0},useDeferredValue:function(r){return Le="useDeferredValue",an(),x0(r)},useTransition:function(){return Le="useTransition",an(),b0()},useMutableSource:function(r,a,f){return Le="useMutableSource",an(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",an(),d0(r,a,f)},useId:function(){return Le="useId",an(),S0()},unstable_isNewReconciler:C},Gv={readContext:function(r){return Zn(r)},useCallback:function(r,a){return Le="useCallback",Ke(),v0(r,a)},useContext:function(r){return Le="useContext",Ke(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Ke(),Uh(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Ke(),g0(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Ke(),A0(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Ke(),m0(r,a)},useMemo:function(r,a){Le="useMemo",Ke();var f=rt.current;rt.current=rs;try{return y0(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Ke();var m=rt.current;rt.current=rs;try{return l0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Ke(),p0(r)},useState:function(r){Le="useState",Ke();var a=rt.current;rt.current=rs;try{return Fh(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Ke(),void 0},useDeferredValue:function(r){return Le="useDeferredValue",Ke(),x0(r)},useTransition:function(){return Le="useTransition",Ke(),b0()},useMutableSource:function(r,a,f){return Le="useMutableSource",Ke(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Ke(),d0(r,a,f)},useId:function(){return Le="useId",Ke(),S0()},unstable_isNewReconciler:C},Hv={readContext:function(r){return Zn(r)},useCallback:function(r,a){return Le="useCallback",Ke(),Xh(r,a)},useContext:function(r){return Le="useContext",Ke(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Ke(),Bd(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Ke(),Hh(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Ke(),jh(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Ke(),Gh(r,a)},useMemo:function(r,a){Le="useMemo",Ke();var f=rt.current;rt.current=Di;try{return Qh(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Ke();var m=rt.current;rt.current=Di;try{return c0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Ke(),Ih()},useState:function(r){Le="useState",Ke();var a=rt.current;rt.current=Di;try{return f0(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Ke(),Wh()},useDeferredValue:function(r){return Le="useDeferredValue",Ke(),kv(r)},useTransition:function(){return Le="useTransition",Ke(),Pv()},useMutableSource:function(r,a,f){return Le="useMutableSource",Ke(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Ke(),zh(r,a)},useId:function(){return Le="useId",Ke(),Yh()},unstable_isNewReconciler:C},Wv={readContext:function(r){return Zn(r)},useCallback:function(r,a){return Le="useCallback",Ke(),Xh(r,a)},useContext:function(r){return Le="useContext",Ke(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Ke(),Bd(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Ke(),Hh(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Ke(),jh(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Ke(),Gh(r,a)},useMemo:function(r,a){Le="useMemo",Ke();var f=rt.current;rt.current=qh;try{return Qh(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Ke();var m=rt.current;rt.current=qh;try{return u0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Ke(),Ih()},useState:function(r){Le="useState",Ke();var a=rt.current;rt.current=qh;try{return h0(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Ke(),Wh()},useDeferredValue:function(r){return Le="useDeferredValue",Ke(),Nv(r)},useTransition:function(){return Le="useTransition",Ke(),Mv()},useMutableSource:function(r,a,f){return Le="useMutableSource",Ke(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Ke(),zh(r,a)},useId:function(){return Le="useId",Ke(),Yh()},unstable_isNewReconciler:C},rs={readContext:function(r){return C0(),Zn(r)},useCallback:function(r,a){return Le="useCallback",Rt(),an(),v0(r,a)},useContext:function(r){return Le="useContext",Rt(),an(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Rt(),an(),Uh(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Rt(),an(),g0(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Rt(),an(),A0(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Rt(),an(),m0(r,a)},useMemo:function(r,a){Le="useMemo",Rt(),an();var f=rt.current;rt.current=rs;try{return y0(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Rt(),an();var m=rt.current;rt.current=rs;try{return l0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Rt(),an(),p0(r)},useState:function(r){Le="useState",Rt(),an();var a=rt.current;rt.current=rs;try{return Fh(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Rt(),an(),void 0},useDeferredValue:function(r){return Le="useDeferredValue",Rt(),an(),x0(r)},useTransition:function(){return Le="useTransition",Rt(),an(),b0()},useMutableSource:function(r,a,f){return Le="useMutableSource",Rt(),an(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Rt(),an(),d0(r,a,f)},useId:function(){return Le="useId",Rt(),an(),S0()},unstable_isNewReconciler:C},Di={readContext:function(r){return C0(),Zn(r)},useCallback:function(r,a){return Le="useCallback",Rt(),Ke(),Xh(r,a)},useContext:function(r){return Le="useContext",Rt(),Ke(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Rt(),Ke(),Bd(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Rt(),Ke(),Hh(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Rt(),Ke(),jh(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Rt(),Ke(),Gh(r,a)},useMemo:function(r,a){Le="useMemo",Rt(),Ke();var f=rt.current;rt.current=Di;try{return Qh(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Rt(),Ke();var m=rt.current;rt.current=Di;try{return c0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Rt(),Ke(),Ih()},useState:function(r){Le="useState",Rt(),Ke();var a=rt.current;rt.current=Di;try{return f0(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Rt(),Ke(),Wh()},useDeferredValue:function(r){return Le="useDeferredValue",Rt(),Ke(),kv(r)},useTransition:function(){return Le="useTransition",Rt(),Ke(),Pv()},useMutableSource:function(r,a,f){return Le="useMutableSource",Rt(),Ke(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Rt(),Ke(),zh(r,a)},useId:function(){return Le="useId",Rt(),Ke(),Yh()},unstable_isNewReconciler:C},qh={readContext:function(r){return C0(),Zn(r)},useCallback:function(r,a){return Le="useCallback",Rt(),Ke(),Xh(r,a)},useContext:function(r){return Le="useContext",Rt(),Ke(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Rt(),Ke(),Bd(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Rt(),Ke(),Hh(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Rt(),Ke(),jh(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Rt(),Ke(),Gh(r,a)},useMemo:function(r,a){Le="useMemo",Rt(),Ke();var f=rt.current;rt.current=Di;try{return Qh(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Rt(),Ke();var m=rt.current;rt.current=Di;try{return u0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Rt(),Ke(),Ih()},useState:function(r){Le="useState",Rt(),Ke();var a=rt.current;rt.current=Di;try{return h0(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Rt(),Ke(),Wh()},useDeferredValue:function(r){return Le="useDeferredValue",Rt(),Ke(),Nv(r)},useTransition:function(){return Le="useTransition",Rt(),Ke(),Mv()},useMutableSource:function(r,a,f){return Le="useMutableSource",Rt(),Ke(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Rt(),Ke(),zh(r,a)},useId:function(){return Le="useId",Rt(),Ke(),Yh()},unstable_isNewReconciler:C}}var To=i.unstable_now,Xv=0,Kh=-1,Pd=-1,Jh=-1,w0=!1,Zh=!1;function Qv(){return w0}function G5(){Zh=!0}function H5(){w0=!1,Zh=!1}function W5(){w0=Zh,Zh=!1}function Yv(){return Xv}function Vv(){Xv=To()}function _0(r){Pd=To(),r.actualStartTime<0&&(r.actualStartTime=To())}function qv(r){Pd=-1}function $h(r,a){if(Pd>=0){var f=To()-Pd;r.actualDuration+=f,a&&(r.selfBaseDuration=f),Pd=-1}}function as(r){if(Kh>=0){var a=To()-Kh;Kh=-1;for(var f=r.return;f!==null;){switch(f.tag){case q:var m=f.stateNode;m.effectDuration+=a;return;case Ae:var v=f.stateNode;v.effectDuration+=a;return}f=f.return}}}function E0(r){if(Jh>=0){var a=To()-Jh;Jh=-1;for(var f=r.return;f!==null;){switch(f.tag){case q:var m=f.stateNode;m!==null&&(m.passiveEffectDuration+=a);return;case Ae:var v=f.stateNode;v!==null&&(v.passiveEffectDuration+=a);return}f=f.return}}}function is(){Kh=To()}function R0(){Jh=To()}function T0(r){for(var a=r.child;a;)r.actualDuration+=a.actualDuration,a=a.sibling}function Li(r,a){if(r&&r.defaultProps){var f=y({},a),m=r.defaultProps;for(var v in m)f[v]===void 0&&(f[v]=m[v]);return f}return a}var D0={},L0,k0,N0,B0,P0,Kv,ep,M0,z0,F0,Md;{L0=new Set,k0=new Set,N0=new Set,B0=new Set,M0=new Set,P0=new Set,z0=new Set,F0=new Set,Md=new Set;var Jv=new Set;ep=function(r,a){if(!(r===null||typeof r=="function")){var f=a+"_"+r;Jv.has(f)||(Jv.add(f),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r))}},Kv=function(r,a){if(a===void 0){var f=et(r)||"Component";P0.has(f)||(P0.add(f),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",f))}},Object.defineProperty(D0,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(D0)}function I0(r,a,f,m){var v=r.memoizedState,_=f(m,v);{if(r.mode&Rn){Fn(!0);try{_=f(m,v)}finally{Fn(!1)}}Kv(a,_)}var B=_==null?v:y({},v,_);if(r.memoizedState=B,r.lanes===Pe){var F=r.updateQueue;F.baseState=B}}var O0={isMounted:vA,enqueueSetState:function(r,a,f){var m=x(r),v=Xr(),_=ko(m),B=Hs(v,_);B.payload=a,f!=null&&(ep(f,"setState"),B.callback=f);var F=wo(m,B,_);F!==null&&(er(F,m,_,v),Dh(F,m,_)),pl(m,_)},enqueueReplaceState:function(r,a,f){var m=x(r),v=Xr(),_=ko(m),B=Hs(v,_);B.tag=Av,B.payload=a,f!=null&&(ep(f,"replaceState"),B.callback=f);var F=wo(m,B,_);F!==null&&(er(F,m,_,v),Dh(F,m,_)),pl(m,_)},enqueueForceUpdate:function(r,a){var f=x(r),m=Xr(),v=ko(f),_=Hs(m,v);_.tag=Eh,a!=null&&(ep(a,"forceUpdate"),_.callback=a);var B=wo(f,_,v);B!==null&&(er(B,f,v,m),Dh(B,f,v)),Oc(f,v)}};function Zv(r,a,f,m,v,_,B){var F=r.stateNode;if(typeof F.shouldComponentUpdate=="function"){var W=F.shouldComponentUpdate(m,_,B);{if(r.mode&Rn){Fn(!0);try{W=F.shouldComponentUpdate(m,_,B)}finally{Fn(!1)}}W===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",et(a)||"Component")}return W}return a.prototype&&a.prototype.isPureReactComponent?!Q(f,m)||!Q(v,_):!0}function X5(r,a,f){var m=r.stateNode;{var v=et(a)||"Component",_=m.render;_||(a.prototype&&typeof a.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",v):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",v)),m.getInitialState&&!m.getInitialState.isReactClassApproved&&!m.state&&u("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",v),m.getDefaultProps&&!m.getDefaultProps.isReactClassApproved&&u("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",v),m.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",v),m.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),a.childContextTypes&&!Md.has(a)&&(r.mode&Rn)===At&&(Md.add(a),u(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
377
|
+
Incoming: %s`,Le,"["+a.join(", ")+"]","["+r.join(", ")+"]");for(var f=0;f<a.length&&f<r.length;f++)if(!xr(r[f],a[f]))return!1;return!0}function nu(r,a,f,m,v,_){bl=_,ln=a,oi=r!==null?r._debugHookTypes:null,Ro=-1,i0=r!==null&&r.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Pe,r!==null&&r.memoizedState!==null?rt.current=Hv:oi!==null?rt.current=Gv:rt.current=jv;var B=f(m,v);if(Dd){var F=0;do{if(Dd=!1,Ld=0,F>=M5)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");F+=1,i0=!1,cr=null,ur=null,a.updateQueue=null,Ro=-1,rt.current=Wv,B=f(m,v)}while(Dd)}rt.current=Vh,a._debugHookTypes=oi;var H=cr!==null&&cr.next!==null;if(bl=Pe,ln=null,cr=null,ur=null,Le=null,oi=null,Ro=-1,r!==null&&(r.flags&mi)!==(a.flags&mi)&&(r.mode&jt)!==mt&&u("Internal React error: Expected static flag was missing. Please notify the React team."),Mh=!1,H)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return B}function ru(){var r=Ld!==0;return Ld=0,r}function Sv(r,a,f){a.updateQueue=r.updateQueue,(a.mode&Ma)!==mt?a.flags&=-50333701:a.flags&=-2053,r.lanes=na(r.lanes,f)}function Cv(){if(rt.current=Vh,Mh){for(var r=ln.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Mh=!1}bl=Pe,ln=null,cr=null,ur=null,oi=null,Ro=-1,Le=null,zv=!1,Dd=!1,Ld=0}function ns(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ur===null?ln.memoizedState=ur=r:ur=ur.next=r,ur}function li(){var r;if(cr===null){var a=ln.alternate;a!==null?r=a.memoizedState:r=null}else r=cr.next;var f;if(ur===null?f=ln.memoizedState:f=ur.next,f!==null)ur=f,f=ur.next,cr=r;else{if(r===null)throw new Error("Rendered more hooks than during the previous render.");cr=r;var m={memoizedState:cr.memoizedState,baseState:cr.baseState,baseQueue:cr.baseQueue,queue:cr.queue,next:null};ur===null?ln.memoizedState=ur=m:ur=ur.next=m}return ur}function wv(){return{lastEffect:null,stores:null}}function o0(r,a){return typeof a=="function"?a(r):a}function l0(r,a,f){var m=ns(),v;f!==void 0?v=f(a):v=a,m.memoizedState=m.baseState=v;var _={pending:null,interleaved:null,lanes:Pe,dispatch:null,lastRenderedReducer:r,lastRenderedState:v};m.queue=_;var B=_.dispatch=U5.bind(null,ln,_);return[m.memoizedState,B]}function c0(r,a,f){var m=li(),v=m.queue;if(v===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");v.lastRenderedReducer=r;var _=cr,B=_.baseQueue,F=v.pending;if(F!==null){if(B!==null){var H=B.next,Z=F.next;B.next=Z,F.next=H}_.baseQueue!==B&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),_.baseQueue=B=F,v.pending=null}if(B!==null){var ie=B.next,ve=_.baseState,_e=null,ke=null,Me=null,Be=ie;do{var ut=Be.lane;if(Ir(bl,ut)){if(Me!==null){var gt={lane:Ln,action:Be.action,hasEagerState:Be.hasEagerState,eagerState:Be.eagerState,next:null};Me=Me.next=gt}if(Be.hasEagerState)ve=Be.eagerState;else{var cn=Be.action;ve=r(ve,cn)}}else{var bt={lane:ut,action:Be.action,hasEagerState:Be.hasEagerState,eagerState:Be.eagerState,next:null};Me===null?(ke=Me=bt,_e=ve):Me=Me.next=bt,ln.lanes=Bt(ln.lanes,ut),$d(ut)}Be=Be.next}while(Be!==null&&Be!==ie);Me===null?_e=ve:Me.next=ke,xr(ve,m.memoizedState)||Od(),m.memoizedState=ve,m.baseState=_e,m.baseQueue=Me,v.lastRenderedState=ve}var qt=v.interleaved;if(qt!==null){var Se=qt;do{var De=Se.lane;ln.lanes=Bt(ln.lanes,De),$d(De),Se=Se.next}while(Se!==qt)}else B===null&&(v.lanes=Pe);var be=v.dispatch;return[m.memoizedState,be]}function u0(r,a,f){var m=li(),v=m.queue;if(v===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");v.lastRenderedReducer=r;var _=v.dispatch,B=v.pending,F=m.memoizedState;if(B!==null){v.pending=null;var H=B.next,Z=H;do{var ie=Z.action;F=r(F,ie),Z=Z.next}while(Z!==H);xr(F,m.memoizedState)||Od(),m.memoizedState=F,m.baseQueue===null&&(m.baseState=F),v.lastRenderedState=F}return[F,_]}function t7(r,a,f){}function n7(r,a,f){}function d0(r,a,f){var m=ln,v=ns(),_,B=l();if(B){if(f===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");_=f(),eu||_!==f()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),eu=!0)}else{if(_=a(),!eu){var F=a();xr(_,F)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),eu=!0)}var H=Cp();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");po(H,bl)||_v(m,a,_)}v.memoizedState=_;var Z={value:_,getSnapshot:a};return v.queue=Z,Uh(Rv.bind(null,m,Z,r),[r]),m.flags|=Ai,kd(or|Rr,Ev.bind(null,m,Z,_,a),void 0,null),_}function zh(r,a,f){var m=ln,v=li(),_=a();if(!eu){var B=a();xr(_,B)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),eu=!0)}var F=v.memoizedState,H=!xr(F,_);H&&(v.memoizedState=_,Od());var Z=v.queue;if(Bd(Rv.bind(null,m,Z,r),[r]),Z.getSnapshot!==a||H||ur!==null&&ur.memoizedState.tag&or){m.flags|=Ai,kd(or|Rr,Ev.bind(null,m,Z,_,a),void 0,null);var ie=Cp();if(ie===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");po(ie,bl)||_v(m,a,_)}return _}function _v(r,a,f){r.flags|=Lu;var m={getSnapshot:a,value:f},v=ln.updateQueue;if(v===null)v=wv(),ln.updateQueue=v,v.stores=[m];else{var _=v.stores;_===null?v.stores=[m]:_.push(m)}}function Ev(r,a,f,m){a.value=f,a.getSnapshot=m,Tv(a)&&Dv(r)}function Rv(r,a,f){var m=function(){Tv(a)&&Dv(r)};return f(m)}function Tv(r){var a=r.getSnapshot,f=r.value;try{var m=a();return!xr(f,m)}catch{return!0}}function Dv(r){var a=oa(r,vt);a!==null&&er(a,r,vt,dn)}function Fh(r){var a=ns();typeof r=="function"&&(r=r()),a.memoizedState=a.baseState=r;var f={pending:null,interleaved:null,lanes:Pe,dispatch:null,lastRenderedReducer:o0,lastRenderedState:r};a.queue=f;var m=f.dispatch=j5.bind(null,ln,f);return[a.memoizedState,m]}function f0(r){return c0(o0)}function h0(r){return u0(o0)}function kd(r,a,f,m){var v={tag:r,create:a,destroy:f,deps:m,next:null},_=ln.updateQueue;if(_===null)_=wv(),ln.updateQueue=_,_.lastEffect=v.next=v;else{var B=_.lastEffect;if(B===null)_.lastEffect=v.next=v;else{var F=B.next;B.next=v,v.next=F,_.lastEffect=v}}return v}function p0(r){var a=ns();{var f={current:r};return a.memoizedState=f,f}}function Ih(r){var a=li();return a.memoizedState}function Nd(r,a,f,m){var v=ns(),_=m===void 0?null:m;ln.flags|=r,v.memoizedState=kd(or|a,f,void 0,_)}function Oh(r,a,f,m){var v=li(),_=m===void 0?null:m,B=void 0;if(cr!==null){var F=cr.memoizedState;if(B=F.destroy,_!==null){var H=F.deps;if(s0(_,H)){v.memoizedState=kd(a,f,B,_);return}}}ln.flags|=r,v.memoizedState=kd(or|a,f,B,_)}function Uh(r,a){return(ln.mode&Ma)!==mt?Nd(Bu|Ai|Nu,Rr,r,a):Nd(Ai|Nu,Rr,r,a)}function Bd(r,a){return Oh(Ai,Rr,r,a)}function A0(r,a){return Nd(Ut,ts,r,a)}function jh(r,a){return Oh(Ut,ts,r,a)}function m0(r,a){var f=Ut;return f|=gs,(ln.mode&Ma)!==mt&&(f|=Oi),Nd(f,lr,r,a)}function Gh(r,a){return Oh(Ut,lr,r,a)}function Lv(r,a){if(typeof a=="function"){var f=a,m=r();return f(m),function(){f(null)}}else if(a!=null){var v=a;v.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(v).join(", ")+"}");var _=r();return v.current=_,function(){v.current=null}}}function g0(r,a,f){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var m=f!=null?f.concat([r]):null,v=Ut;return v|=gs,(ln.mode&Ma)!==mt&&(v|=Oi),Nd(v,lr,Lv.bind(null,a,r),m)}function Hh(r,a,f){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var m=f!=null?f.concat([r]):null;return Oh(Ut,lr,Lv.bind(null,a,r),m)}function F5(r,a){}var Wh=F5;function v0(r,a){var f=ns(),m=a===void 0?null:a;return f.memoizedState=[r,m],r}function Xh(r,a){var f=li(),m=a===void 0?null:a,v=f.memoizedState;if(v!==null&&m!==null){var _=v[1];if(s0(m,_))return v[0]}return f.memoizedState=[r,m],r}function y0(r,a){var f=ns(),m=a===void 0?null:a,v=r();return f.memoizedState=[v,m],v}function Qh(r,a){var f=li(),m=a===void 0?null:a,v=f.memoizedState;if(v!==null&&m!==null){var _=v[1];if(s0(m,_))return v[0]}var B=r();return f.memoizedState=[B,m],B}function x0(r){var a=ns();return a.memoizedState=r,r}function kv(r){var a=li(),f=cr,m=f.memoizedState;return Bv(a,m,r)}function Nv(r){var a=li();if(cr===null)return a.memoizedState=r,r;var f=cr.memoizedState;return Bv(a,f,r)}function Bv(r,a,f){var m=!nh(bl);if(m){if(!xr(f,a)){var v=Rc();ln.lanes=Bt(ln.lanes,v),$d(v),r.baseState=!0}return a}else return r.baseState&&(r.baseState=!1,Od()),r.memoizedState=f,f}function I5(r,a,f){var m=Er();kn(sh(m,ni)),r(!0);var v=Td.transition;Td.transition={};var _=Td.transition;Td.transition._updatedFibers=new Set;try{r(!1),a()}finally{if(kn(m),Td.transition=v,v===null&&_._updatedFibers){var B=_._updatedFibers.size;B>10&&p("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),_._updatedFibers.clear()}}}function b0(){var r=Fh(!1),a=r[0],f=r[1],m=I5.bind(null,f),v=ns();return v.memoizedState=m,[a,m]}function Pv(){var r=f0(),a=r[0],f=li(),m=f.memoizedState;return[a,m]}function Mv(){var r=h0(),a=r[0],f=li(),m=f.memoizedState;return[a,m]}var zv=!1;function O5(){return zv}function S0(){var r=ns(),a=Cp(),f=a.identifierPrefix,m;if(l()){var v=dh();m=":"+f+"R"+v;var _=Ld++;_>0&&(m+="H"+_.toString(32)),m+=":"}else{var B=P5++;m=":"+f+"r"+B.toString(32)+":"}return r.memoizedState=m,m}function Yh(){var r=li(),a=r.memoizedState;return a}function U5(r,a,f){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var m=ko(r),v={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null};if(Fv(r))Iv(a,v);else{var _=hv(r,a,v,m);if(_!==null){var B=Xr();er(_,r,m,B),Ov(_,a,m)}}Uv(r,m)}function j5(r,a,f){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var m=ko(r),v={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null};if(Fv(r))Iv(a,v);else{var _=r.alternate;if(r.lanes===Pe&&(_===null||_.lanes===Pe)){var B=a.lastRenderedReducer;if(B!==null){var F;F=rt.current,rt.current=Di;try{var H=a.lastRenderedState,Z=B(H,f);if(v.hasEagerState=!0,v.eagerState=Z,xr(Z,H)){_5(r,a,v,m);return}}catch{}finally{rt.current=F}}}var ie=hv(r,a,v,m);if(ie!==null){var ve=Xr();er(ie,r,m,ve),Ov(ie,a,m)}}Uv(r,m)}function Fv(r){var a=r.alternate;return r===ln||a!==null&&a===ln}function Iv(r,a){Dd=Mh=!0;var f=r.pending;f===null?a.next=a:(a.next=f.next,f.next=a),r.pending=a}function Ov(r,a,f){if(ld(f)){var m=a.lanes;m=cd(m,r.pendingLanes);var v=Bt(m,f);a.lanes=v,ud(r,v)}}function Uv(r,a,f){pl(r,a)}var Vh={readContext:Zn,useCallback:Wr,useContext:Wr,useEffect:Wr,useImperativeHandle:Wr,useInsertionEffect:Wr,useLayoutEffect:Wr,useMemo:Wr,useReducer:Wr,useRef:Wr,useState:Wr,useDebugValue:Wr,useDeferredValue:Wr,useTransition:Wr,useMutableSource:Wr,useSyncExternalStore:Wr,useId:Wr,unstable_isNewReconciler:C},jv=null,Gv=null,Hv=null,Wv=null,rs=null,Di=null,qh=null;{var C0=function(){u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Rt=function(){u("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};jv={readContext:function(r){return Zn(r)},useCallback:function(r,a){return Le="useCallback",an(),tu(a),v0(r,a)},useContext:function(r){return Le="useContext",an(),Zn(r)},useEffect:function(r,a){return Le="useEffect",an(),tu(a),Uh(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",an(),tu(f),g0(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",an(),tu(a),A0(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",an(),tu(a),m0(r,a)},useMemo:function(r,a){Le="useMemo",an(),tu(a);var f=rt.current;rt.current=rs;try{return y0(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",an();var m=rt.current;rt.current=rs;try{return l0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",an(),p0(r)},useState:function(r){Le="useState",an();var a=rt.current;rt.current=rs;try{return Fh(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",an(),void 0},useDeferredValue:function(r){return Le="useDeferredValue",an(),x0(r)},useTransition:function(){return Le="useTransition",an(),b0()},useMutableSource:function(r,a,f){return Le="useMutableSource",an(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",an(),d0(r,a,f)},useId:function(){return Le="useId",an(),S0()},unstable_isNewReconciler:C},Gv={readContext:function(r){return Zn(r)},useCallback:function(r,a){return Le="useCallback",Ke(),v0(r,a)},useContext:function(r){return Le="useContext",Ke(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Ke(),Uh(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Ke(),g0(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Ke(),A0(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Ke(),m0(r,a)},useMemo:function(r,a){Le="useMemo",Ke();var f=rt.current;rt.current=rs;try{return y0(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Ke();var m=rt.current;rt.current=rs;try{return l0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Ke(),p0(r)},useState:function(r){Le="useState",Ke();var a=rt.current;rt.current=rs;try{return Fh(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Ke(),void 0},useDeferredValue:function(r){return Le="useDeferredValue",Ke(),x0(r)},useTransition:function(){return Le="useTransition",Ke(),b0()},useMutableSource:function(r,a,f){return Le="useMutableSource",Ke(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Ke(),d0(r,a,f)},useId:function(){return Le="useId",Ke(),S0()},unstable_isNewReconciler:C},Hv={readContext:function(r){return Zn(r)},useCallback:function(r,a){return Le="useCallback",Ke(),Xh(r,a)},useContext:function(r){return Le="useContext",Ke(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Ke(),Bd(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Ke(),Hh(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Ke(),jh(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Ke(),Gh(r,a)},useMemo:function(r,a){Le="useMemo",Ke();var f=rt.current;rt.current=Di;try{return Qh(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Ke();var m=rt.current;rt.current=Di;try{return c0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Ke(),Ih()},useState:function(r){Le="useState",Ke();var a=rt.current;rt.current=Di;try{return f0(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Ke(),Wh()},useDeferredValue:function(r){return Le="useDeferredValue",Ke(),kv(r)},useTransition:function(){return Le="useTransition",Ke(),Pv()},useMutableSource:function(r,a,f){return Le="useMutableSource",Ke(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Ke(),zh(r,a)},useId:function(){return Le="useId",Ke(),Yh()},unstable_isNewReconciler:C},Wv={readContext:function(r){return Zn(r)},useCallback:function(r,a){return Le="useCallback",Ke(),Xh(r,a)},useContext:function(r){return Le="useContext",Ke(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Ke(),Bd(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Ke(),Hh(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Ke(),jh(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Ke(),Gh(r,a)},useMemo:function(r,a){Le="useMemo",Ke();var f=rt.current;rt.current=qh;try{return Qh(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Ke();var m=rt.current;rt.current=qh;try{return u0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Ke(),Ih()},useState:function(r){Le="useState",Ke();var a=rt.current;rt.current=qh;try{return h0(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Ke(),Wh()},useDeferredValue:function(r){return Le="useDeferredValue",Ke(),Nv(r)},useTransition:function(){return Le="useTransition",Ke(),Mv()},useMutableSource:function(r,a,f){return Le="useMutableSource",Ke(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Ke(),zh(r,a)},useId:function(){return Le="useId",Ke(),Yh()},unstable_isNewReconciler:C},rs={readContext:function(r){return C0(),Zn(r)},useCallback:function(r,a){return Le="useCallback",Rt(),an(),v0(r,a)},useContext:function(r){return Le="useContext",Rt(),an(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Rt(),an(),Uh(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Rt(),an(),g0(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Rt(),an(),A0(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Rt(),an(),m0(r,a)},useMemo:function(r,a){Le="useMemo",Rt(),an();var f=rt.current;rt.current=rs;try{return y0(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Rt(),an();var m=rt.current;rt.current=rs;try{return l0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Rt(),an(),p0(r)},useState:function(r){Le="useState",Rt(),an();var a=rt.current;rt.current=rs;try{return Fh(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Rt(),an(),void 0},useDeferredValue:function(r){return Le="useDeferredValue",Rt(),an(),x0(r)},useTransition:function(){return Le="useTransition",Rt(),an(),b0()},useMutableSource:function(r,a,f){return Le="useMutableSource",Rt(),an(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Rt(),an(),d0(r,a,f)},useId:function(){return Le="useId",Rt(),an(),S0()},unstable_isNewReconciler:C},Di={readContext:function(r){return C0(),Zn(r)},useCallback:function(r,a){return Le="useCallback",Rt(),Ke(),Xh(r,a)},useContext:function(r){return Le="useContext",Rt(),Ke(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Rt(),Ke(),Bd(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Rt(),Ke(),Hh(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Rt(),Ke(),jh(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Rt(),Ke(),Gh(r,a)},useMemo:function(r,a){Le="useMemo",Rt(),Ke();var f=rt.current;rt.current=Di;try{return Qh(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Rt(),Ke();var m=rt.current;rt.current=Di;try{return c0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Rt(),Ke(),Ih()},useState:function(r){Le="useState",Rt(),Ke();var a=rt.current;rt.current=Di;try{return f0(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Rt(),Ke(),Wh()},useDeferredValue:function(r){return Le="useDeferredValue",Rt(),Ke(),kv(r)},useTransition:function(){return Le="useTransition",Rt(),Ke(),Pv()},useMutableSource:function(r,a,f){return Le="useMutableSource",Rt(),Ke(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Rt(),Ke(),zh(r,a)},useId:function(){return Le="useId",Rt(),Ke(),Yh()},unstable_isNewReconciler:C},qh={readContext:function(r){return C0(),Zn(r)},useCallback:function(r,a){return Le="useCallback",Rt(),Ke(),Xh(r,a)},useContext:function(r){return Le="useContext",Rt(),Ke(),Zn(r)},useEffect:function(r,a){return Le="useEffect",Rt(),Ke(),Bd(r,a)},useImperativeHandle:function(r,a,f){return Le="useImperativeHandle",Rt(),Ke(),Hh(r,a,f)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Rt(),Ke(),jh(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Rt(),Ke(),Gh(r,a)},useMemo:function(r,a){Le="useMemo",Rt(),Ke();var f=rt.current;rt.current=Di;try{return Qh(r,a)}finally{rt.current=f}},useReducer:function(r,a,f){Le="useReducer",Rt(),Ke();var m=rt.current;rt.current=Di;try{return u0(r,a,f)}finally{rt.current=m}},useRef:function(r){return Le="useRef",Rt(),Ke(),Ih()},useState:function(r){Le="useState",Rt(),Ke();var a=rt.current;rt.current=Di;try{return h0(r)}finally{rt.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Rt(),Ke(),Wh()},useDeferredValue:function(r){return Le="useDeferredValue",Rt(),Ke(),Nv(r)},useTransition:function(){return Le="useTransition",Rt(),Ke(),Mv()},useMutableSource:function(r,a,f){return Le="useMutableSource",Rt(),Ke(),void 0},useSyncExternalStore:function(r,a,f){return Le="useSyncExternalStore",Rt(),Ke(),zh(r,a)},useId:function(){return Le="useId",Rt(),Ke(),Yh()},unstable_isNewReconciler:C}}var To=i.unstable_now,Xv=0,Kh=-1,Pd=-1,Jh=-1,w0=!1,Zh=!1;function Qv(){return w0}function G5(){Zh=!0}function H5(){w0=!1,Zh=!1}function W5(){w0=Zh,Zh=!1}function Yv(){return Xv}function Vv(){Xv=To()}function _0(r){Pd=To(),r.actualStartTime<0&&(r.actualStartTime=To())}function qv(r){Pd=-1}function $h(r,a){if(Pd>=0){var f=To()-Pd;r.actualDuration+=f,a&&(r.selfBaseDuration=f),Pd=-1}}function as(r){if(Kh>=0){var a=To()-Kh;Kh=-1;for(var f=r.return;f!==null;){switch(f.tag){case q:var m=f.stateNode;m.effectDuration+=a;return;case pe:var v=f.stateNode;v.effectDuration+=a;return}f=f.return}}}function E0(r){if(Jh>=0){var a=To()-Jh;Jh=-1;for(var f=r.return;f!==null;){switch(f.tag){case q:var m=f.stateNode;m!==null&&(m.passiveEffectDuration+=a);return;case pe:var v=f.stateNode;v!==null&&(v.passiveEffectDuration+=a);return}f=f.return}}}function is(){Kh=To()}function R0(){Jh=To()}function T0(r){for(var a=r.child;a;)r.actualDuration+=a.actualDuration,a=a.sibling}function Li(r,a){if(r&&r.defaultProps){var f=y({},a),m=r.defaultProps;for(var v in m)f[v]===void 0&&(f[v]=m[v]);return f}return a}var D0={},L0,k0,N0,B0,P0,Kv,ep,M0,z0,F0,Md;{L0=new Set,k0=new Set,N0=new Set,B0=new Set,M0=new Set,P0=new Set,z0=new Set,F0=new Set,Md=new Set;var Jv=new Set;ep=function(r,a){if(!(r===null||typeof r=="function")){var f=a+"_"+r;Jv.has(f)||(Jv.add(f),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r))}},Kv=function(r,a){if(a===void 0){var f=et(r)||"Component";P0.has(f)||(P0.add(f),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",f))}},Object.defineProperty(D0,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(D0)}function I0(r,a,f,m){var v=r.memoizedState,_=f(m,v);{if(r.mode&Rn){Fn(!0);try{_=f(m,v)}finally{Fn(!1)}}Kv(a,_)}var B=_==null?v:y({},v,_);if(r.memoizedState=B,r.lanes===Pe){var F=r.updateQueue;F.baseState=B}}var O0={isMounted:vA,enqueueSetState:function(r,a,f){var m=x(r),v=Xr(),_=ko(m),B=Hs(v,_);B.payload=a,f!=null&&(ep(f,"setState"),B.callback=f);var F=wo(m,B,_);F!==null&&(er(F,m,_,v),Dh(F,m,_)),pl(m,_)},enqueueReplaceState:function(r,a,f){var m=x(r),v=Xr(),_=ko(m),B=Hs(v,_);B.tag=Av,B.payload=a,f!=null&&(ep(f,"replaceState"),B.callback=f);var F=wo(m,B,_);F!==null&&(er(F,m,_,v),Dh(F,m,_)),pl(m,_)},enqueueForceUpdate:function(r,a){var f=x(r),m=Xr(),v=ko(f),_=Hs(m,v);_.tag=Eh,a!=null&&(ep(a,"forceUpdate"),_.callback=a);var B=wo(f,_,v);B!==null&&(er(B,f,v,m),Dh(B,f,v)),Oc(f,v)}};function Zv(r,a,f,m,v,_,B){var F=r.stateNode;if(typeof F.shouldComponentUpdate=="function"){var H=F.shouldComponentUpdate(m,_,B);{if(r.mode&Rn){Fn(!0);try{H=F.shouldComponentUpdate(m,_,B)}finally{Fn(!1)}}H===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",et(a)||"Component")}return H}return a.prototype&&a.prototype.isPureReactComponent?!X(f,m)||!X(v,_):!0}function X5(r,a,f){var m=r.stateNode;{var v=et(a)||"Component",_=m.render;_||(a.prototype&&typeof a.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",v):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",v)),m.getInitialState&&!m.getInitialState.isReactClassApproved&&!m.state&&u("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",v),m.getDefaultProps&&!m.getDefaultProps.isReactClassApproved&&u("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",v),m.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",v),m.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),a.childContextTypes&&!Md.has(a)&&(r.mode&Rn)===mt&&(Md.add(a),u(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
378
378
|
|
|
379
|
-
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)),a.contextTypes&&!Md.has(a)&&(r.mode&Rn)===
|
|
379
|
+
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)),a.contextTypes&&!Md.has(a)&&(r.mode&Rn)===mt&&(Md.add(a),u(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
|
|
380
380
|
|
|
381
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)),m.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",v),a.contextType&&a.contextTypes&&!z0.has(a)&&(z0.add(a),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",v)),typeof m.componentShouldUpdate=="function"&&u("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",v),a.prototype&&a.prototype.isPureReactComponent&&typeof m.shouldComponentUpdate<"u"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",et(a)||"A pure component"),typeof m.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof m.componentDidReceiveProps=="function"&&u("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",v),typeof m.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof m.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v);var B=m.props!==f;m.props!==void 0&&B&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v,v),m.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",v,v),typeof m.getSnapshotBeforeUpdate=="function"&&typeof m.componentDidUpdate!="function"&&!N0.has(a)&&(N0.add(a),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",et(a))),typeof m.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof m.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof a.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v);var F=m.state;F&&(typeof F!="object"||Qn(F))&&u("%s.state: must be set to an object or null",v),typeof m.getChildContext=="function"&&typeof a.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v)}}function $v(r,a){a.updater=O0,r.stateNode=a,S(a,r),a._reactInternalInstance=D0}function e1(r,a,f){var m=!1,v=mr,_=mr,B=a.contextType;if("contextType"in a){var F=B===null||B!==void 0&&B.$$typeof===de&&B._context===void 0;if(!F&&!F0.has(a)){F0.add(a);var
|
|
381
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)),m.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",v),a.contextType&&a.contextTypes&&!z0.has(a)&&(z0.add(a),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",v)),typeof m.componentShouldUpdate=="function"&&u("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",v),a.prototype&&a.prototype.isPureReactComponent&&typeof m.shouldComponentUpdate<"u"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",et(a)||"A pure component"),typeof m.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof m.componentDidReceiveProps=="function"&&u("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",v),typeof m.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof m.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v);var B=m.props!==f;m.props!==void 0&&B&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v,v),m.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",v,v),typeof m.getSnapshotBeforeUpdate=="function"&&typeof m.componentDidUpdate!="function"&&!N0.has(a)&&(N0.add(a),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",et(a))),typeof m.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof m.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof a.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v);var F=m.state;F&&(typeof F!="object"||Qn(F))&&u("%s.state: must be set to an object or null",v),typeof m.getChildContext=="function"&&typeof a.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v)}}function $v(r,a){a.updater=O0,r.stateNode=a,S(a,r),a._reactInternalInstance=D0}function e1(r,a,f){var m=!1,v=mr,_=mr,B=a.contextType;if("contextType"in a){var F=B===null||B!==void 0&&B.$$typeof===de&&B._context===void 0;if(!F&&!F0.has(a)){F0.add(a);var H="";B===void 0?H=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof B!="object"?H=" However, it is set to a "+typeof B+".":B.$$typeof===ce?H=" Did you accidentally pass the Context.Provider instead?":B._context!==void 0?H=" Did you accidentally pass the Context.Consumer instead?":H=" However, it is set to an object with keys {"+Object.keys(B).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",et(a)||"Component",H)}}if(typeof B=="object"&&B!==null)_=Zn(B);else{v=Sn(r,a,!0);var Z=a.contextTypes;m=Z!=null,_=m?xi(r,v):mr}var ie=new a(f,_);if(r.mode&Rn){Fn(!0);try{ie=new a(f,_)}finally{Fn(!1)}}var ve=r.memoizedState=ie.state!==null&&ie.state!==void 0?ie.state:null;$v(r,ie);{if(typeof a.getDerivedStateFromProps=="function"&&ve===null){var _e=et(a)||"Component";k0.has(_e)||(k0.add(_e),u("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",_e,ie.state===null?"null":"undefined",_e))}if(typeof a.getDerivedStateFromProps=="function"||typeof ie.getSnapshotBeforeUpdate=="function"){var ke=null,Me=null,Be=null;if(typeof ie.componentWillMount=="function"&&ie.componentWillMount.__suppressDeprecationWarning!==!0?ke="componentWillMount":typeof ie.UNSAFE_componentWillMount=="function"&&(ke="UNSAFE_componentWillMount"),typeof ie.componentWillReceiveProps=="function"&&ie.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Me="componentWillReceiveProps":typeof ie.UNSAFE_componentWillReceiveProps=="function"&&(Me="UNSAFE_componentWillReceiveProps"),typeof ie.componentWillUpdate=="function"&&ie.componentWillUpdate.__suppressDeprecationWarning!==!0?Be="componentWillUpdate":typeof ie.UNSAFE_componentWillUpdate=="function"&&(Be="UNSAFE_componentWillUpdate"),ke!==null||Me!==null||Be!==null){var ut=et(a)||"Component",bt=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";B0.has(ut)||(B0.add(ut),u(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
382
382
|
|
|
383
383
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
384
384
|
|
|
385
385
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
386
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,
|
|
386
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,ut,bt,ke!==null?`
|
|
387
387
|
`+ke:"",Me!==null?`
|
|
388
388
|
`+Me:"",Be!==null?`
|
|
389
|
-
`+Be:""))}}}return m&&Hn(r,v,_),
|
|
390
|
-
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var
|
|
389
|
+
`+Be:""))}}}return m&&Hn(r,v,_),ie}function Q5(r,a){var f=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),f!==a.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",it(r)||"Component"),O0.enqueueReplaceState(a,a.state,null))}function t1(r,a,f,m){var v=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(f,m),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(f,m),a.state!==v){{var _=it(r)||"Component";L0.has(_)||(L0.add(_),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_))}O0.enqueueReplaceState(a,a.state,null)}}function U0(r,a,f,m){X5(r,a,f);var v=r.stateNode;v.props=f,v.state=r.memoizedState,v.refs={},qA(r);var _=a.contextType;if(typeof _=="object"&&_!==null)v.context=Zn(_);else{var B=Sn(r,a,!0);v.context=xi(r,B)}{if(v.state===f){var F=et(a)||"Component";M0.has(F)||(M0.add(F),u("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",F))}r.mode&Rn&&ue.recordLegacyContextWarning(r,v),ue.recordUnsafeLifecycleWarnings(r,v)}v.state=r.memoizedState;var H=a.getDerivedStateFromProps;if(typeof H=="function"&&(I0(r,a,H,f),v.state=r.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof v.getSnapshotBeforeUpdate!="function"&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&(Q5(r,v),Lh(r,f,v,m),v.state=r.memoizedState),typeof v.componentDidMount=="function"){var Z=Ut;Z|=gs,(r.mode&Ma)!==mt&&(Z|=Oi),r.flags|=Z}}function Y5(r,a,f,m){var v=r.stateNode,_=r.memoizedProps;v.props=_;var B=v.context,F=a.contextType,H=mr;if(typeof F=="object"&&F!==null)H=Zn(F);else{var Z=Sn(r,a,!0);H=xi(r,Z)}var ie=a.getDerivedStateFromProps,ve=typeof ie=="function"||typeof v.getSnapshotBeforeUpdate=="function";!ve&&(typeof v.UNSAFE_componentWillReceiveProps=="function"||typeof v.componentWillReceiveProps=="function")&&(_!==f||B!==H)&&t1(r,v,f,H),gv();var _e=r.memoizedState,ke=v.state=_e;if(Lh(r,f,v,m),ke=r.memoizedState,_===f&&_e===ke&&!Qi()&&!kh()){if(typeof v.componentDidMount=="function"){var Me=Ut;Me|=gs,(r.mode&Ma)!==mt&&(Me|=Oi),r.flags|=Me}return!1}typeof ie=="function"&&(I0(r,a,ie,f),ke=r.memoizedState);var Be=kh()||Zv(r,a,_,f,_e,ke,H);if(Be){if(!ve&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"){var ut=Ut;ut|=gs,(r.mode&Ma)!==mt&&(ut|=Oi),r.flags|=ut}}else{if(typeof v.componentDidMount=="function"){var bt=Ut;bt|=gs,(r.mode&Ma)!==mt&&(bt|=Oi),r.flags|=bt}r.memoizedProps=f,r.memoizedState=ke}return v.props=f,v.state=ke,v.context=H,Be}function V5(r,a,f,m,v){var _=a.stateNode;mv(r,a);var B=a.memoizedProps,F=a.type===a.elementType?B:Li(a.type,B);_.props=F;var H=a.pendingProps,Z=_.context,ie=f.contextType,ve=mr;if(typeof ie=="object"&&ie!==null)ve=Zn(ie);else{var _e=Sn(a,f,!0);ve=xi(a,_e)}var ke=f.getDerivedStateFromProps,Me=typeof ke=="function"||typeof _.getSnapshotBeforeUpdate=="function";!Me&&(typeof _.UNSAFE_componentWillReceiveProps=="function"||typeof _.componentWillReceiveProps=="function")&&(B!==H||Z!==ve)&&t1(a,_,m,ve),gv();var Be=a.memoizedState,ut=_.state=Be;if(Lh(a,m,_,v),ut=a.memoizedState,B===H&&Be===ut&&!Qi()&&!kh()&&!R)return typeof _.componentDidUpdate=="function"&&(B!==r.memoizedProps||Be!==r.memoizedState)&&(a.flags|=Ut),typeof _.getSnapshotBeforeUpdate=="function"&&(B!==r.memoizedProps||Be!==r.memoizedState)&&(a.flags|=Ii),!1;typeof ke=="function"&&(I0(a,f,ke,m),ut=a.memoizedState);var bt=kh()||Zv(a,f,F,m,Be,ut,ve)||R;return bt?(!Me&&(typeof _.UNSAFE_componentWillUpdate=="function"||typeof _.componentWillUpdate=="function")&&(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(m,ut,ve),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(m,ut,ve)),typeof _.componentDidUpdate=="function"&&(a.flags|=Ut),typeof _.getSnapshotBeforeUpdate=="function"&&(a.flags|=Ii)):(typeof _.componentDidUpdate=="function"&&(B!==r.memoizedProps||Be!==r.memoizedState)&&(a.flags|=Ut),typeof _.getSnapshotBeforeUpdate=="function"&&(B!==r.memoizedProps||Be!==r.memoizedState)&&(a.flags|=Ii),a.memoizedProps=m,a.memoizedState=ut),_.props=m,_.state=ut,_.context=ve,bt}function Sl(r,a){return{value:r,source:a,stack:we(a),digest:null}}function j0(r,a,f){return{value:r,source:null,stack:f??null,digest:a??null}}function q5(r,a){return!0}function G0(r,a){try{var f=q5(r,a);if(f===!1)return;var m=a.value,v=a.source,_=a.stack,B=_!==null?_:"";if(m!=null&&m._suppressLogging){if(r.tag===Y)return;console.error(m)}var F=v?it(v):null,H=F?"The above error occurred in the <"+F+"> component:":"The above error occurred in one of your React components:",Z;if(r.tag===q)Z=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
390
|
+
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var ie=it(r)||"Anonymous";Z="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+ie+".")}var ve=H+`
|
|
391
391
|
`+B+`
|
|
392
392
|
|
|
393
|
-
`+(""+J);console.error(ve)}catch(_e){setTimeout(function(){throw _e})}}var K5=typeof WeakMap=="function"?WeakMap:Map;function n1(r,a,f){var m=Hs(dn,f);m.tag=YA,m.payload={element:null};var v=a.value;return m.callback=function(){i4(v),G0(r,a)},m}function H0(r,a,f){var m=Hs(dn,f);m.tag=YA;var v=r.type.getDerivedStateFromError;if(typeof v=="function"){var _=a.value;m.payload=function(){return v(_)},m.callback=function(){py(r),G0(r,a)}}var B=r.stateNode;return B!==null&&typeof B.componentDidCatch=="function"&&(m.callback=function(){py(r),G0(r,a),typeof v!="function"&&r4(this);var W=a.value,J=a.stack;this.componentDidCatch(W,{componentStack:J!==null?J:""}),typeof v!="function"&&(vr(r.lanes,vt)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",it(r)||"Unknown"))}),m}function r1(r,a,f){var m=r.pingCache,v;if(m===null?(m=r.pingCache=new K5,v=new Set,m.set(a,v)):(v=m.get(a),v===void 0&&(v=new Set,m.set(a,v))),!v.has(f)){v.add(f);var _=s4.bind(null,r,a,f);Or&&ef(r,f),a.then(_,_)}}function J5(r,a,f,m){var v=r.updateQueue;if(v===null){var _=new Set;_.add(f),r.updateQueue=_}else v.add(f)}function Z5(r,a){var f=r.tag;if((r.mode&jt)===At&&(f===I||f===le||f===ae)){var m=r.alternate;m?(r.updateQueue=m.updateQueue,r.memoizedState=m.memoizedState,r.lanes=m.lanes):(r.updateQueue=null,r.memoizedState=null)}}function a1(r){var a=r;do{if(a.tag===re&&N5(a))return a;a=a.return}while(a!==null);return null}function i1(r,a,f,m,v){if((r.mode&jt)===At){if(r===a)r.flags|=tr;else{if(r.flags|=Qt,f.flags|=ku,f.flags&=-52805,f.tag===V){var _=f.alternate;if(_===null)f.tag=$;else{var B=Hs(dn,vt);B.tag=Eh,wo(f,B,vt)}}f.lanes=Bt(f.lanes,vt)}return r}return r.flags|=tr,r.lanes=v,r}function $5(r,a,f,m,v){if(f.flags|=Yo,Or&&ef(r,v),m!==null&&typeof m=="object"&&typeof m.then=="function"){var _=m;Z5(f),l()&&f.mode&jt&&hh();var B=a1(a);if(B!==null){B.flags&=~Va,i1(B,a,f,r,v),B.mode&jt&&r1(r,_,v),J5(B,r,_);return}else{if(!sd(v)){r1(r,_,v),Em();return}var F=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");m=F}}else if(l()&&f.mode&jt){hh();var W=a1(a);if(W!==null){(W.flags&tr)===st&&(W.flags|=Va),i1(W,a,f,r,v),g(Sl(m,f));return}}m=Sl(m,f),q3(m);var J=a;do{switch(J.tag){case q:{var se=m;J.flags|=tr;var ve=Ao(v);J.lanes=Bt(J.lanes,ve);var _e=n1(J,se,ve);KA(J,_e);return}case V:var ke=m,Me=J.type,Be=J.stateNode;if((J.flags&Qt)===st&&(typeof Me.getDerivedStateFromError=="function"||Be!==null&&typeof Be.componentDidCatch=="function"&&!iy(Be))){J.flags|=tr;var lt=Ao(v);J.lanes=Bt(J.lanes,lt);var bt=H0(J,ke,lt);KA(J,bt);return}break}J=J.return}while(J!==null)}function eb(){return null}var zd=c.ReactCurrentOwner,ki=!1,W0,Fd,X0,Q0,Y0,Cl,V0,tp,Id;W0={},Fd={},X0={},Q0={},Y0={},Cl=!1,V0={},tp={},Id={};function la(r,a,f,m){r===null?a.child=cv(a,null,f,m):a.child=Vc(a,r.child,f,m)}function tb(r,a,f,m){a.child=Vc(a,r.child,null,m),a.child=Vc(a,null,f,m)}function s1(r,a,f,m,v){if(a.type!==a.elementType){var _=f.propTypes;_&&ea(_,m,"prop",et(f))}var B=f.render,F=a.ref,W,J;Kc(a,v),Ki(a);{if(zd.current=a,xe(!0),W=nu(r,a,B,m,F,v),J=ru(),a.mode&Rn){Fn(!0);try{W=nu(r,a,B,m,F,v),J=ru()}finally{Fn(!1)}}xe(!1)}return Ji(),r!==null&&!ki?(Sv(r,a,v),Ws(r,a,v)):(l()&&J&&bo(a),a.flags|=En,la(r,a,W,v),a.child)}function o1(r,a,f,m,v){if(r===null){var _=f.type;if(C4(_)&&f.compare===null&&f.defaultProps===void 0){var B=_;return B=du(_),a.tag=ae,a.type=B,J0(a,_),l1(r,a,B,m,v)}{var F=_.propTypes;if(F&&ea(F,m,"prop",et(_)),f.defaultProps!==void 0){var W=et(_)||"Unknown";Id[W]||(u("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",W),Id[W]=!0)}}var J=zm(f.type,null,m,a,a.mode,v);return J.ref=a.ref,J.return=a,a.child=J,J}{var se=f.type,ve=se.propTypes;ve&&ea(ve,m,"prop",et(se))}var _e=r.child,ke=rm(r,v);if(!ke){var Me=_e.memoizedProps,Be=f.compare;if(Be=Be!==null?Be:Q,Be(Me,m)&&r.ref===a.ref)return Ws(r,a,v)}a.flags|=En;var lt=Tl(_e,m);return lt.ref=a.ref,lt.return=a,a.child=lt,lt}function l1(r,a,f,m,v){if(a.type!==a.elementType){var _=a.elementType;if(_.$$typeof===Ce){var B=_,F=B._payload,W=B._init;try{_=W(F)}catch{_=null}var J=_&&_.propTypes;J&&ea(J,m,"prop",et(_))}}if(r!==null){var se=r.memoizedProps;if(Q(se,m)&&r.ref===a.ref&&a.type===r.type)if(ki=!1,a.pendingProps=m=se,rm(r,v))(r.flags&ku)!==st&&(ki=!0);else return a.lanes=r.lanes,Ws(r,a,v)}return q0(r,a,f,m,v)}function c1(r,a,f){var m=a.pendingProps,v=m.children,_=r!==null?r.memoizedState:null;if(m.mode==="hidden"||T)if((a.mode&jt)===At){var B={baseLanes:Pe,cachePool:null,transitions:null};a.memoizedState=B,_p(a,f)}else if(vr(f,Fr)){var ve={baseLanes:Pe,cachePool:null,transitions:null};a.memoizedState=ve;var _e=_!==null?_.baseLanes:f;_p(a,_e)}else{var F=null,W;if(_!==null){var J=_.baseLanes;W=Bt(J,f)}else W=f;a.lanes=a.childLanes=Fr;var se={baseLanes:W,cachePool:F,transitions:null};return a.memoizedState=se,a.updateQueue=null,_p(a,W),null}else{var ke;_!==null?(ke=Bt(_.baseLanes,f),a.memoizedState=null):ke=f,_p(a,ke)}return la(r,a,v,f),a.child}function nb(r,a,f){var m=a.pendingProps;return la(r,a,m,f),a.child}function rb(r,a,f){var m=a.pendingProps.children;return la(r,a,m,f),a.child}function ab(r,a,f){{a.flags|=Ut;{var m=a.stateNode;m.effectDuration=0,m.passiveEffectDuration=0}}var v=a.pendingProps,_=v.children;return la(r,a,_,f),a.child}function u1(r,a){var f=a.ref;(r===null&&f!==null||r!==null&&r.ref!==f)&&(a.flags|=As,a.flags|=to)}function q0(r,a,f,m,v){if(a.type!==a.elementType){var _=f.propTypes;_&&ea(_,m,"prop",et(f))}var B;{var F=Sn(a,f,!0);B=xi(a,F)}var W,J;Kc(a,v),Ki(a);{if(zd.current=a,xe(!0),W=nu(r,a,f,m,B,v),J=ru(),a.mode&Rn){Fn(!0);try{W=nu(r,a,f,m,B,v),J=ru()}finally{Fn(!1)}}xe(!1)}return Ji(),r!==null&&!ki?(Sv(r,a,v),Ws(r,a,v)):(l()&&J&&bo(a),a.flags|=En,la(r,a,W,v),a.child)}function d1(r,a,f,m,v){{switch(Cy(a)){case!1:{var _=a.stateNode,B=a.type,F=new B(a.memoizedProps,_.context),W=F.state;_.updater.enqueueSetState(_,W,null);break}case!0:{a.flags|=Qt,a.flags|=tr;var J=new Error("Simulated error coming from DevTools"),se=Ao(v);a.lanes=Bt(a.lanes,se);var ve=H0(a,Sl(J,a),se);KA(a,ve);break}}if(a.type!==a.elementType){var _e=f.propTypes;_e&&ea(_e,m,"prop",et(f))}}var ke;zr(f)?(ke=!0,co(a)):ke=!1,Kc(a,v);var Me=a.stateNode,Be;Me===null?(rp(r,a),e1(a,f,m),U0(a,f,m,v),Be=!0):r===null?Be=Y5(a,f,m,v):Be=V5(r,a,f,m,v);var lt=K0(r,a,f,Be,ke,v);{var bt=a.stateNode;Be&&bt.props!==m&&(Cl||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",it(a)||"a component"),Cl=!0)}return lt}function K0(r,a,f,m,v,_){u1(r,a);var B=(a.flags&Qt)!==st;if(!m&&!B)return v&&Pa(a,f,!1),Ws(r,a,_);var F=a.stateNode;zd.current=a;var W;if(B&&typeof f.getDerivedStateFromError!="function")W=null,qv();else{Ki(a);{if(xe(!0),W=F.render(),a.mode&Rn){Fn(!0);try{F.render()}finally{Fn(!1)}}xe(!1)}Ji()}return a.flags|=En,r!==null&&B?tb(r,a,W,_):la(r,a,W,_),a.memoizedState=F.state,v&&Pa(a,f,!0),a.child}function f1(r){var a=r.stateNode;a.pendingContext?cc(r,a.pendingContext,a.pendingContext!==a.context):a.context&&cc(r,a.context,!1),ZA(r,a.containerInfo)}function ib(r,a,f){if(f1(a),r===null)throw new Error("Should have a current fiber. This is a bug in React.");var m=a.pendingProps,v=a.memoizedState,_=v.element;mv(r,a),Lh(a,m,null,f);var B=a.memoizedState;a.stateNode;var F=B.element;if(_r&&v.isDehydrated){var W={element:F,isDehydrated:!1,cache:B.cache,pendingSuspenseBoundaries:B.pendingSuspenseBoundaries,transitions:B.transitions},J=a.updateQueue;if(J.baseState=W,a.memoizedState=W,a.flags&Va){var se=Sl(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),a);return h1(r,a,F,f,se)}else if(F!==_){var ve=Sl(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return h1(r,a,F,f,ve)}else{Ah(a);var _e=cv(a,null,F,f);a.child=_e;for(var ke=_e;ke;)ke.flags=ke.flags&~un|qa,ke=ke.sibling}}else{if(Co(),F===_)return Ws(r,a,f);la(r,a,F,f)}return a.child}function h1(r,a,f,m,v){return Co(),g(v),a.flags|=Va,la(r,a,f,m),a.child}function sb(r,a,f){yv(a),r===null&&vl(a);var m=a.type,v=a.pendingProps,_=r!==null?r.memoizedProps:null,B=v.children,F=ro(m,v);return F?B=null:_!==null&&ro(m,_)&&(a.flags|=Ra),u1(r,a),la(r,a,B,f),a.child}function ob(r,a){return r===null&&vl(a),null}function lb(r,a,f,m){rp(r,a);var v=a.pendingProps,_=f,B=_._payload,F=_._init,W=F(B);a.type=W;var J=a.tag=w4(W),se=Li(W,v),ve;switch(J){case I:return J0(a,W),a.type=W=du(W),ve=q0(null,a,W,se,m),ve;case V:return a.type=W=Lm(W),ve=d1(null,a,W,se,m),ve;case le:return a.type=W=km(W),ve=s1(null,a,W,se,m),ve;case ie:{if(a.type!==a.elementType){var _e=W.propTypes;_e&&ea(_e,se,"prop",et(W))}return ve=o1(null,a,W,Li(W.type,se),m),ve}}var ke="";throw W!==null&&typeof W=="object"&&W.$$typeof===Ce&&(ke=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+W+". "+("Lazy element type must resolve to a class or function."+ke))}function cb(r,a,f,m,v){rp(r,a),a.tag=V;var _;return zr(f)?(_=!0,co(a)):_=!1,Kc(a,v),e1(a,f,m),U0(a,f,m,v),K0(null,a,f,!0,_,v)}function ub(r,a,f,m){rp(r,a);var v=a.pendingProps,_;{var B=Sn(a,f,!1);_=xi(a,B)}Kc(a,m);var F,W;Ki(a);{if(f.prototype&&typeof f.prototype.render=="function"){var J=et(f)||"Unknown";W0[J]||(u("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",J,J),W0[J]=!0)}a.mode&Rn&&ue.recordLegacyContextWarning(a,null),xe(!0),zd.current=a,F=nu(null,a,f,v,_,m),W=ru(),xe(!1)}if(Ji(),a.flags|=En,typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){var se=et(f)||"Unknown";Fd[se]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",se,se,se),Fd[se]=!0)}if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){{var ve=et(f)||"Unknown";Fd[ve]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ve,ve,ve),Fd[ve]=!0)}a.tag=V,a.memoizedState=null,a.updateQueue=null;var _e=!1;return zr(f)?(_e=!0,co(a)):_e=!1,a.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,qA(a),$v(a,F),U0(a,f,v,m),K0(null,a,f,!0,_e,m)}else{if(a.tag=I,a.mode&Rn){Fn(!0);try{F=nu(null,a,f,v,_,m),W=ru()}finally{Fn(!1)}}return l()&&W&&bo(a),la(null,a,F,m),J0(a,f),a.child}}function J0(r,a){{if(a&&a.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),r.ref!==null){var f="",m=nt();m&&(f+=`
|
|
393
|
+
`+(""+Z);console.error(ve)}catch(_e){setTimeout(function(){throw _e})}}var K5=typeof WeakMap=="function"?WeakMap:Map;function n1(r,a,f){var m=Hs(dn,f);m.tag=YA,m.payload={element:null};var v=a.value;return m.callback=function(){i4(v),G0(r,a)},m}function H0(r,a,f){var m=Hs(dn,f);m.tag=YA;var v=r.type.getDerivedStateFromError;if(typeof v=="function"){var _=a.value;m.payload=function(){return v(_)},m.callback=function(){py(r),G0(r,a)}}var B=r.stateNode;return B!==null&&typeof B.componentDidCatch=="function"&&(m.callback=function(){py(r),G0(r,a),typeof v!="function"&&r4(this);var H=a.value,Z=a.stack;this.componentDidCatch(H,{componentStack:Z!==null?Z:""}),typeof v!="function"&&(vr(r.lanes,vt)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",it(r)||"Unknown"))}),m}function r1(r,a,f){var m=r.pingCache,v;if(m===null?(m=r.pingCache=new K5,v=new Set,m.set(a,v)):(v=m.get(a),v===void 0&&(v=new Set,m.set(a,v))),!v.has(f)){v.add(f);var _=s4.bind(null,r,a,f);Or&&ef(r,f),a.then(_,_)}}function J5(r,a,f,m){var v=r.updateQueue;if(v===null){var _=new Set;_.add(f),r.updateQueue=_}else v.add(f)}function Z5(r,a){var f=r.tag;if((r.mode&jt)===mt&&(f===I||f===le||f===re)){var m=r.alternate;m?(r.updateQueue=m.updateQueue,r.memoizedState=m.memoizedState,r.lanes=m.lanes):(r.updateQueue=null,r.memoizedState=null)}}function a1(r){var a=r;do{if(a.tag===J&&N5(a))return a;a=a.return}while(a!==null);return null}function i1(r,a,f,m,v){if((r.mode&jt)===mt){if(r===a)r.flags|=tr;else{if(r.flags|=Qt,f.flags|=ku,f.flags&=-52805,f.tag===Y){var _=f.alternate;if(_===null)f.tag=ee;else{var B=Hs(dn,vt);B.tag=Eh,wo(f,B,vt)}}f.lanes=Bt(f.lanes,vt)}return r}return r.flags|=tr,r.lanes=v,r}function $5(r,a,f,m,v){if(f.flags|=Yo,Or&&ef(r,v),m!==null&&typeof m=="object"&&typeof m.then=="function"){var _=m;Z5(f),l()&&f.mode&jt&&hh();var B=a1(a);if(B!==null){B.flags&=~Va,i1(B,a,f,r,v),B.mode&jt&&r1(r,_,v),J5(B,r,_);return}else{if(!sd(v)){r1(r,_,v),Em();return}var F=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");m=F}}else if(l()&&f.mode&jt){hh();var H=a1(a);if(H!==null){(H.flags&tr)===st&&(H.flags|=Va),i1(H,a,f,r,v),g(Sl(m,f));return}}m=Sl(m,f),q3(m);var Z=a;do{switch(Z.tag){case q:{var ie=m;Z.flags|=tr;var ve=Ao(v);Z.lanes=Bt(Z.lanes,ve);var _e=n1(Z,ie,ve);KA(Z,_e);return}case Y:var ke=m,Me=Z.type,Be=Z.stateNode;if((Z.flags&Qt)===st&&(typeof Me.getDerivedStateFromError=="function"||Be!==null&&typeof Be.componentDidCatch=="function"&&!iy(Be))){Z.flags|=tr;var ut=Ao(v);Z.lanes=Bt(Z.lanes,ut);var bt=H0(Z,ke,ut);KA(Z,bt);return}break}Z=Z.return}while(Z!==null)}function eb(){return null}var zd=c.ReactCurrentOwner,ki=!1,W0,Fd,X0,Q0,Y0,Cl,V0,tp,Id;W0={},Fd={},X0={},Q0={},Y0={},Cl=!1,V0={},tp={},Id={};function la(r,a,f,m){r===null?a.child=cv(a,null,f,m):a.child=Vc(a,r.child,f,m)}function tb(r,a,f,m){a.child=Vc(a,r.child,null,m),a.child=Vc(a,null,f,m)}function s1(r,a,f,m,v){if(a.type!==a.elementType){var _=f.propTypes;_&&ea(_,m,"prop",et(f))}var B=f.render,F=a.ref,H,Z;Kc(a,v),Ki(a);{if(zd.current=a,xe(!0),H=nu(r,a,B,m,F,v),Z=ru(),a.mode&Rn){Fn(!0);try{H=nu(r,a,B,m,F,v),Z=ru()}finally{Fn(!1)}}xe(!1)}return Ji(),r!==null&&!ki?(Sv(r,a,v),Ws(r,a,v)):(l()&&Z&&bo(a),a.flags|=En,la(r,a,H,v),a.child)}function o1(r,a,f,m,v){if(r===null){var _=f.type;if(C4(_)&&f.compare===null&&f.defaultProps===void 0){var B=_;return B=du(_),a.tag=re,a.type=B,J0(a,_),l1(r,a,B,m,v)}{var F=_.propTypes;if(F&&ea(F,m,"prop",et(_)),f.defaultProps!==void 0){var H=et(_)||"Unknown";Id[H]||(u("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",H),Id[H]=!0)}}var Z=zm(f.type,null,m,a,a.mode,v);return Z.ref=a.ref,Z.return=a,a.child=Z,Z}{var ie=f.type,ve=ie.propTypes;ve&&ea(ve,m,"prop",et(ie))}var _e=r.child,ke=rm(r,v);if(!ke){var Me=_e.memoizedProps,Be=f.compare;if(Be=Be!==null?Be:X,Be(Me,m)&&r.ref===a.ref)return Ws(r,a,v)}a.flags|=En;var ut=Tl(_e,m);return ut.ref=a.ref,ut.return=a,a.child=ut,ut}function l1(r,a,f,m,v){if(a.type!==a.elementType){var _=a.elementType;if(_.$$typeof===Ce){var B=_,F=B._payload,H=B._init;try{_=H(F)}catch{_=null}var Z=_&&_.propTypes;Z&&ea(Z,m,"prop",et(_))}}if(r!==null){var ie=r.memoizedProps;if(X(ie,m)&&r.ref===a.ref&&a.type===r.type)if(ki=!1,a.pendingProps=m=ie,rm(r,v))(r.flags&ku)!==st&&(ki=!0);else return a.lanes=r.lanes,Ws(r,a,v)}return q0(r,a,f,m,v)}function c1(r,a,f){var m=a.pendingProps,v=m.children,_=r!==null?r.memoizedState:null;if(m.mode==="hidden"||T)if((a.mode&jt)===mt){var B={baseLanes:Pe,cachePool:null,transitions:null};a.memoizedState=B,_p(a,f)}else if(vr(f,Fr)){var ve={baseLanes:Pe,cachePool:null,transitions:null};a.memoizedState=ve;var _e=_!==null?_.baseLanes:f;_p(a,_e)}else{var F=null,H;if(_!==null){var Z=_.baseLanes;H=Bt(Z,f)}else H=f;a.lanes=a.childLanes=Fr;var ie={baseLanes:H,cachePool:F,transitions:null};return a.memoizedState=ie,a.updateQueue=null,_p(a,H),null}else{var ke;_!==null?(ke=Bt(_.baseLanes,f),a.memoizedState=null):ke=f,_p(a,ke)}return la(r,a,v,f),a.child}function nb(r,a,f){var m=a.pendingProps;return la(r,a,m,f),a.child}function rb(r,a,f){var m=a.pendingProps.children;return la(r,a,m,f),a.child}function ab(r,a,f){{a.flags|=Ut;{var m=a.stateNode;m.effectDuration=0,m.passiveEffectDuration=0}}var v=a.pendingProps,_=v.children;return la(r,a,_,f),a.child}function u1(r,a){var f=a.ref;(r===null&&f!==null||r!==null&&r.ref!==f)&&(a.flags|=As,a.flags|=to)}function q0(r,a,f,m,v){if(a.type!==a.elementType){var _=f.propTypes;_&&ea(_,m,"prop",et(f))}var B;{var F=Sn(a,f,!0);B=xi(a,F)}var H,Z;Kc(a,v),Ki(a);{if(zd.current=a,xe(!0),H=nu(r,a,f,m,B,v),Z=ru(),a.mode&Rn){Fn(!0);try{H=nu(r,a,f,m,B,v),Z=ru()}finally{Fn(!1)}}xe(!1)}return Ji(),r!==null&&!ki?(Sv(r,a,v),Ws(r,a,v)):(l()&&Z&&bo(a),a.flags|=En,la(r,a,H,v),a.child)}function d1(r,a,f,m,v){{switch(Cy(a)){case!1:{var _=a.stateNode,B=a.type,F=new B(a.memoizedProps,_.context),H=F.state;_.updater.enqueueSetState(_,H,null);break}case!0:{a.flags|=Qt,a.flags|=tr;var Z=new Error("Simulated error coming from DevTools"),ie=Ao(v);a.lanes=Bt(a.lanes,ie);var ve=H0(a,Sl(Z,a),ie);KA(a,ve);break}}if(a.type!==a.elementType){var _e=f.propTypes;_e&&ea(_e,m,"prop",et(f))}}var ke;zr(f)?(ke=!0,co(a)):ke=!1,Kc(a,v);var Me=a.stateNode,Be;Me===null?(rp(r,a),e1(a,f,m),U0(a,f,m,v),Be=!0):r===null?Be=Y5(a,f,m,v):Be=V5(r,a,f,m,v);var ut=K0(r,a,f,Be,ke,v);{var bt=a.stateNode;Be&&bt.props!==m&&(Cl||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",it(a)||"a component"),Cl=!0)}return ut}function K0(r,a,f,m,v,_){u1(r,a);var B=(a.flags&Qt)!==st;if(!m&&!B)return v&&Pa(a,f,!1),Ws(r,a,_);var F=a.stateNode;zd.current=a;var H;if(B&&typeof f.getDerivedStateFromError!="function")H=null,qv();else{Ki(a);{if(xe(!0),H=F.render(),a.mode&Rn){Fn(!0);try{F.render()}finally{Fn(!1)}}xe(!1)}Ji()}return a.flags|=En,r!==null&&B?tb(r,a,H,_):la(r,a,H,_),a.memoizedState=F.state,v&&Pa(a,f,!0),a.child}function f1(r){var a=r.stateNode;a.pendingContext?cc(r,a.pendingContext,a.pendingContext!==a.context):a.context&&cc(r,a.context,!1),ZA(r,a.containerInfo)}function ib(r,a,f){if(f1(a),r===null)throw new Error("Should have a current fiber. This is a bug in React.");var m=a.pendingProps,v=a.memoizedState,_=v.element;mv(r,a),Lh(a,m,null,f);var B=a.memoizedState;a.stateNode;var F=B.element;if(_r&&v.isDehydrated){var H={element:F,isDehydrated:!1,cache:B.cache,pendingSuspenseBoundaries:B.pendingSuspenseBoundaries,transitions:B.transitions},Z=a.updateQueue;if(Z.baseState=H,a.memoizedState=H,a.flags&Va){var ie=Sl(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),a);return h1(r,a,F,f,ie)}else if(F!==_){var ve=Sl(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return h1(r,a,F,f,ve)}else{Ah(a);var _e=cv(a,null,F,f);a.child=_e;for(var ke=_e;ke;)ke.flags=ke.flags&~un|qa,ke=ke.sibling}}else{if(Co(),F===_)return Ws(r,a,f);la(r,a,F,f)}return a.child}function h1(r,a,f,m,v){return Co(),g(v),a.flags|=Va,la(r,a,f,m),a.child}function sb(r,a,f){yv(a),r===null&&vl(a);var m=a.type,v=a.pendingProps,_=r!==null?r.memoizedProps:null,B=v.children,F=ro(m,v);return F?B=null:_!==null&&ro(m,_)&&(a.flags|=Ra),u1(r,a),la(r,a,B,f),a.child}function ob(r,a){return r===null&&vl(a),null}function lb(r,a,f,m){rp(r,a);var v=a.pendingProps,_=f,B=_._payload,F=_._init,H=F(B);a.type=H;var Z=a.tag=w4(H),ie=Li(H,v),ve;switch(Z){case I:return J0(a,H),a.type=H=du(H),ve=q0(null,a,H,ie,m),ve;case Y:return a.type=H=Lm(H),ve=d1(null,a,H,ie,m),ve;case le:return a.type=H=km(H),ve=s1(null,a,H,ie,m),ve;case ae:{if(a.type!==a.elementType){var _e=H.propTypes;_e&&ea(_e,ie,"prop",et(H))}return ve=o1(null,a,H,Li(H.type,ie),m),ve}}var ke="";throw H!==null&&typeof H=="object"&&H.$$typeof===Ce&&(ke=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+H+". "+("Lazy element type must resolve to a class or function."+ke))}function cb(r,a,f,m,v){rp(r,a),a.tag=Y;var _;return zr(f)?(_=!0,co(a)):_=!1,Kc(a,v),e1(a,f,m),U0(a,f,m,v),K0(null,a,f,!0,_,v)}function ub(r,a,f,m){rp(r,a);var v=a.pendingProps,_;{var B=Sn(a,f,!1);_=xi(a,B)}Kc(a,m);var F,H;Ki(a);{if(f.prototype&&typeof f.prototype.render=="function"){var Z=et(f)||"Unknown";W0[Z]||(u("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",Z,Z),W0[Z]=!0)}a.mode&Rn&&ue.recordLegacyContextWarning(a,null),xe(!0),zd.current=a,F=nu(null,a,f,v,_,m),H=ru(),xe(!1)}if(Ji(),a.flags|=En,typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){var ie=et(f)||"Unknown";Fd[ie]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ie,ie,ie),Fd[ie]=!0)}if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){{var ve=et(f)||"Unknown";Fd[ve]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ve,ve,ve),Fd[ve]=!0)}a.tag=Y,a.memoizedState=null,a.updateQueue=null;var _e=!1;return zr(f)?(_e=!0,co(a)):_e=!1,a.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,qA(a),$v(a,F),U0(a,f,v,m),K0(null,a,f,!0,_e,m)}else{if(a.tag=I,a.mode&Rn){Fn(!0);try{F=nu(null,a,f,v,_,m),H=ru()}finally{Fn(!1)}}return l()&&H&&bo(a),la(null,a,F,m),J0(a,f),a.child}}function J0(r,a){{if(a&&a.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),r.ref!==null){var f="",m=nt();m&&(f+=`
|
|
394
394
|
|
|
395
|
-
Check the render method of \``+m+"`.");var v=m||"",_=r._debugSource;_&&(v=_.fileName+":"+_.lineNumber),Y0[v]||(Y0[v]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",f))}if(a.defaultProps!==void 0){var B=et(a)||"Unknown";Id[B]||(u("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",B),Id[B]=!0)}if(typeof a.getDerivedStateFromProps=="function"){var F=et(a)||"Unknown";Q0[F]||(u("%s: Function components do not support getDerivedStateFromProps.",F),Q0[F]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var W=et(a)||"Unknown";X0[W]||(u("%s: Function components do not support contextType.",W),X0[W]=!0)}}}var Z0={dehydrated:null,treeContext:null,retryLane:Ln};function $0(r){return{baseLanes:r,cachePool:eb(),transitions:null}}function db(r,a){var f=null;return{baseLanes:Bt(r.baseLanes,a),cachePool:f,transitions:r.transitions}}function fb(r,a,f,m){if(a!==null){var v=a.memoizedState;if(v===null)return!1}return e0(r,Rd)}function hb(r,a){return na(r.childLanes,a)}function p1(r,a,f){var m=a.pendingProps;_y(a)&&(a.flags|=Qt);var v=Ti.current,_=!1,B=(a.flags&Qt)!==st;if(B||fb(v,r)?(_=!0,a.flags&=~Qt):(r===null||r.memoizedState!==null)&&(v=k5(v,bv)),v=Zc(v),Eo(a,v),r===null){vl(a);var F=a.memoizedState;if(F!==null){var W=F.dehydrated;if(W!==null)return vb(a,W)}var J=m.children,se=m.fallback;if(_){var ve=pb(a,J,se,f),_e=a.child;return _e.memoizedState=$0(f),a.memoizedState=Z0,ve}else return em(a,J)}else{var ke=r.memoizedState;if(ke!==null){var Me=ke.dehydrated;if(Me!==null)return yb(r,a,B,m,Me,ke,f)}if(_){var Be=m.fallback,lt=m.children,bt=mb(r,a,lt,Be,f),mt=a.child,cn=r.child.memoizedState;return mt.memoizedState=cn===null?$0(f):db(cn,f),mt.childLanes=hb(r,f),a.memoizedState=Z0,bt}else{var qt=m.children,Se=Ab(r,a,qt,f);return a.memoizedState=null,Se}}}function em(r,a,f){var m=r.mode,v={mode:"visible",children:a},_=tm(v,m);return _.return=r,r.child=_,_}function pb(r,a,f,m){var v=r.mode,_=r.child,B={mode:"hidden",children:a},F,W;return(v&jt)===At&&_!==null?(F=_,F.childLanes=Pe,F.pendingProps=B,r.mode&tn&&(F.actualDuration=0,F.actualStartTime=-1,F.selfBaseDuration=0,F.treeBaseDuration=0),W=Bo(f,v,m,null)):(F=tm(B,v),W=Bo(f,v,m,null)),F.return=r,W.return=r,F.sibling=W,r.child=F,W}function tm(r,a,f){return my(r,a,Pe,null)}function A1(r,a){return Tl(r,a)}function Ab(r,a,f,m){var v=r.child,_=v.sibling,B=A1(v,{mode:"visible",children:f});if((a.mode&jt)===At&&(B.lanes=m),B.return=a,B.sibling=null,_!==null){var F=a.deletions;F===null?(a.deletions=[_],a.flags|=Ea):F.push(_)}return a.child=B,B}function mb(r,a,f,m,v){var _=a.mode,B=r.child,F=B.sibling,W={mode:"hidden",children:f},J;if((_&jt)===At&&a.child!==B){var se=a.child;J=se,J.childLanes=Pe,J.pendingProps=W,a.mode&tn&&(J.actualDuration=0,J.actualStartTime=-1,J.selfBaseDuration=B.selfBaseDuration,J.treeBaseDuration=B.treeBaseDuration),a.deletions=null}else J=A1(B,W),J.subtreeFlags=B.subtreeFlags&mi;var ve;return F!==null?ve=Tl(F,m):(ve=Bo(m,_,v,null),ve.flags|=un),ve.return=a,J.return=a,J.sibling=ve,a.child=J,ve}function np(r,a,f,m){m!==null&&g(m),Vc(a,r.child,null,f);var v=a.pendingProps,_=v.children,B=em(a,_);return B.flags|=un,a.memoizedState=null,B}function gb(r,a,f,m,v){var _=a.mode,B={mode:"visible",children:f},F=tm(B,_),W=Bo(m,_,v,null);return W.flags|=un,F.return=a,W.return=a,F.sibling=W,a.child=F,(a.mode&jt)!==At&&Vc(a,r.child,null,v),W}function vb(r,a,f){return(r.mode&jt)===At?(u("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),r.lanes=vt):La(a)?r.lanes=Yi:r.lanes=Fr,null}function yb(r,a,f,m,v,_,B){if(f)if(a.flags&Va){a.flags&=~Va;var Se=j0(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return np(r,a,B,Se)}else{if(a.memoizedState!==null)return a.child=r.child,a.flags|=Qt,null;var De=m.children,be=m.fallback,He=gb(r,a,De,be,B),ut=a.child;return ut.memoizedState=$0(B),a.memoizedState=Z0,He}else{if(PA(),(a.mode&jt)===At)return np(r,a,B,null);if(La(v)){var F,W,J;{var se=yi(v);F=se.digest,W=se.message,J=se.stack}var ve;W?ve=new Error(W):ve=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var _e=j0(ve,F,J);return np(r,a,B,_e)}var ke=vr(B,r.childLanes);if(ki||ke){var Me=Cp();if(Me!==null){var Be=kA(Me,B);if(Be!==Ln&&Be!==_.retryLane){_.retryLane=Be;var lt=dn;oa(r,Be),er(Me,r,Be,lt)}}Em();var bt=j0(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return np(r,a,B,bt)}else if(Gi(v)){a.flags|=Qt,a.child=r.child;var mt=o4.bind(null,r);return Cs(v,mt),null}else{MA(a,v,_.treeContext);var cn=m.children,qt=em(a,cn);return qt.flags|=qa,qt}}}function m1(r,a,f){r.lanes=Bt(r.lanes,a);var m=r.alternate;m!==null&&(m.lanes=Bt(m.lanes,a)),XA(r.return,a,f)}function xb(r,a,f){for(var m=a;m!==null;){if(m.tag===re){var v=m.memoizedState;v!==null&&m1(m,f,r)}else if(m.tag===Re)m1(m,f,r);else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===r)return;for(;m.sibling===null;){if(m.return===null||m.return===r)return;m=m.return}m.sibling.return=m.return,m=m.sibling}}function bb(r){for(var a=r,f=null;a!==null;){var m=a.alternate;m!==null&&Ph(m)===null&&(f=a),a=a.sibling}return f}function Sb(r){if(r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!V0[r])if(V0[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break}case"forward":case"backward":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}function Cb(r,a){r!==void 0&&!tp[r]&&(r!=="collapsed"&&r!=="hidden"?(tp[r]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',r)):a!=="forwards"&&a!=="backwards"&&(tp[r]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)))}function g1(r,a){{var f=Qn(r),m=!f&&typeof Ye(r)=="function";if(f||m){var v=f?"array":"iterable";return u("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",v,a,v),!1}}return!0}function wb(r,a){if((a==="forwards"||a==="backwards")&&r!==void 0&&r!==null&&r!==!1)if(Qn(r)){for(var f=0;f<r.length;f++)if(!g1(r[f],f))return}else{var m=Ye(r);if(typeof m=="function"){var v=m.call(r);if(v)for(var _=v.next(),B=0;!_.done;_=v.next()){if(!g1(_.value,B))return;B++}}else u('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a)}}function nm(r,a,f,m,v){var _=r.memoizedState;_===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:v}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=m,_.tail=f,_.tailMode=v)}function v1(r,a,f){var m=a.pendingProps,v=m.revealOrder,_=m.tail,B=m.children;Sb(v),Cb(_,v),wb(B,v),la(r,a,B,f);var F=Ti.current,W=e0(F,Rd);if(W)F=t0(F,Rd),a.flags|=Qt;else{var J=r!==null&&(r.flags&Qt)!==st;J&&xb(a,a.child,f),F=Zc(F)}if(Eo(a,F),(a.mode&jt)===At)a.memoizedState=null;else switch(v){case"forwards":{var se=bb(a.child),ve;se===null?(ve=a.child,a.child=null):(ve=se.sibling,se.sibling=null),nm(a,!1,ve,se,_);break}case"backwards":{var _e=null,ke=a.child;for(a.child=null;ke!==null;){var Me=ke.alternate;if(Me!==null&&Ph(Me)===null){a.child=ke;break}var Be=ke.sibling;ke.sibling=_e,_e=ke,ke=Be}nm(a,!0,_e,null,_);break}case"together":{nm(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function _b(r,a,f){ZA(a,a.stateNode.containerInfo);var m=a.pendingProps;return r===null?a.child=Vc(a,null,m,f):la(r,a,m,f),a.child}var y1=!1;function Eb(r,a,f){var m=a.type,v=m._context,_=a.pendingProps,B=a.memoizedProps,F=_.value;{"value"in _||y1||(y1=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var W=a.type.propTypes;W&&ea(W,_,"prop","Context.Provider")}if(fv(a,v,F),B!==null){var J=B.value;if(xr(J,F)){if(B.children===_.children&&!Qi())return Ws(r,a,f)}else S5(a,v,f)}var se=_.children;return la(r,a,se,f),a.child}var x1=!1;function Rb(r,a,f){var m=a.type;m._context===void 0?m!==m.Consumer&&(x1||(x1=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):m=m._context;var v=a.pendingProps,_=v.children;typeof _!="function"&&u("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Kc(a,f);var B=Zn(m);Ki(a);var F;return zd.current=a,xe(!0),F=_(B),xe(!1),Ji(),a.flags|=En,la(r,a,F,f),a.child}function Od(){ki=!0}function rp(r,a){(a.mode&jt)===At&&r!==null&&(r.alternate=null,a.alternate=null,a.flags|=un)}function Ws(r,a,f){return r!==null&&(a.dependencies=r.dependencies),qv(),$d(a.lanes),vr(f,a.childLanes)?(x5(r,a),a.child):null}function Tb(r,a,f){{var m=a.return;if(m===null)throw new Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,f.index=a.index,f.sibling=a.sibling,f.return=a.return,f.ref=a.ref,a===m.child)m.child=f;else{var v=m.child;if(v===null)throw new Error("Expected parent to have a child.");for(;v.sibling!==a;)if(v=v.sibling,v===null)throw new Error("Expected to find the previous sibling.");v.sibling=f}var _=m.deletions;return _===null?(m.deletions=[r],m.flags|=Ea):_.push(r),f.flags|=un,f}}function rm(r,a){var f=r.lanes;return!!vr(f,a)}function Db(r,a,f){switch(a.tag){case q:f1(a),a.stateNode,Co();break;case X:yv(a);break;case V:{var m=a.type;zr(m)&&co(a);break}case Y:ZA(a,a.stateNode.containerInfo);break;case ne:{var v=a.memoizedProps.value,_=a.type._context;fv(a,_,v);break}case Ae:{var B=vr(f,a.childLanes);B&&(a.flags|=Ut);{var F=a.stateNode;F.effectDuration=0,F.passiveEffectDuration=0}}break;case re:{var W=a.memoizedState;if(W!==null){if(W.dehydrated!==null)return Eo(a,Zc(Ti.current)),a.flags|=Qt,null;var J=a.child,se=J.childLanes;if(vr(f,se))return p1(r,a,f);Eo(a,Zc(Ti.current));var ve=Ws(r,a,f);return ve!==null?ve.sibling:null}else Eo(a,Zc(Ti.current));break}case Re:{var _e=(r.flags&Qt)!==st,ke=vr(f,a.childLanes);if(_e){if(ke)return v1(r,a,f);a.flags|=Qt}var Me=a.memoizedState;if(Me!==null&&(Me.rendering=null,Me.tail=null,Me.lastEffect=null),Eo(a,Ti.current),ke)break;return null}case je:case gt:return a.lanes=Pe,c1(r,a,f)}return Ws(r,a,f)}function b1(r,a,f){if(a._debugNeedsRemount&&r!==null)return Tb(r,a,zm(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(r!==null){var m=r.memoizedProps,v=a.pendingProps;if(m!==v||Qi()||a.type!==r.type)ki=!0;else{var _=rm(r,f);if(!_&&(a.flags&Qt)===st)return ki=!1,Db(r,a,f);(r.flags&ku)!==st?ki=!0:ki=!1}}else if(ki=!1,l()&&vd(a)){var B=a.index,F=Us();Gc(a,F,B)}switch(a.lanes=Pe,a.tag){case K:return ub(r,a,a.type,f);case H:{var W=a.elementType;return lb(r,a,W,f)}case I:{var J=a.type,se=a.pendingProps,ve=a.elementType===J?se:Li(J,se);return q0(r,a,J,ve,f)}case V:{var _e=a.type,ke=a.pendingProps,Me=a.elementType===_e?ke:Li(_e,ke);return d1(r,a,_e,Me,f)}case q:return ib(r,a,f);case X:return sb(r,a,f);case he:return ob(r,a);case re:return p1(r,a,f);case Y:return _b(r,a,f);case le:{var Be=a.type,lt=a.pendingProps,bt=a.elementType===Be?lt:Li(Be,lt);return s1(r,a,Be,bt,f)}case G:return nb(r,a,f);case te:return rb(r,a,f);case Ae:return ab(r,a,f);case ne:return Eb(r,a,f);case L:return Rb(r,a,f);case ie:{var mt=a.type,cn=a.pendingProps,qt=Li(mt,cn);if(a.type!==a.elementType){var Se=mt.propTypes;Se&&ea(Se,qt,"prop",et(mt))}return qt=Li(mt.type,qt),o1(r,a,mt,qt,f)}case ae:return l1(r,a,a.type,a.pendingProps,f);case $:{var De=a.type,be=a.pendingProps,He=a.elementType===De?be:Li(De,be);return cb(r,a,De,He,f)}case Re:return v1(r,a,f);case Ne:break;case je:return c1(r,a,f)}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ss(r){r.flags|=Ut}function S1(r){r.flags|=As,r.flags|=to}function C1(r,a){var f=r!==null&&r.child===a.child;if(f)return!0;if((a.flags&Ea)!==st)return!1;for(var m=a.child;m!==null;){if((m.flags&Vo)!==st||(m.subtreeFlags&Vo)!==st)return!1;m=m.sibling}return!0}var Ud,jd,ap,ip;if(qr)Ud=function(r,a,f,m){for(var v=a.child;v!==null;){if(v.tag===X||v.tag===he)gi(r,v.stateNode);else if(v.tag!==Y){if(v.child!==null){v.child.return=v,v=v.child;continue}}if(v===a)return;for(;v.sibling===null;){if(v.return===null||v.return===a)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},jd=function(r,a){},ap=function(r,a,f,m,v){var _=r.memoizedProps;if(_!==m){var B=a.stateNode,F=Ed(),W=wr(B,f,_,m,v,F);a.updateQueue=W,W&&ss(a)}},ip=function(r,a,f,m){f!==m&&ss(a)};else if(Ql){Ud=function(r,a,f,m){for(var v=a.child;v!==null;){if(v.tag===X){var _=v.stateNode;if(f&&m){var B=v.memoizedProps,F=v.type;_=Ss(_,F,B,v)}gi(r,_)}else if(v.tag===he){var W=v.stateNode;if(f&&m){var J=v.memoizedProps;W=Zo(W,J,v)}gi(r,W)}else if(v.tag!==Y){if(v.tag===je&&v.memoizedState!==null){var se=v.child;se!==null&&(se.return=v),Ud(r,v,!0,!0)}else if(v.child!==null){v.child.return=v,v=v.child;continue}}if(v=v,v===a)return;for(;v.sibling===null;){if(v.return===null||v.return===a)return;v=v.return}v.sibling.return=v.return,v=v.sibling}};var w1=function(r,a,f,m){for(var v=a.child;v!==null;){if(v.tag===X){var _=v.stateNode;if(f&&m){var B=v.memoizedProps,F=v.type;_=Ss(_,F,B,v)}Ff(r,_)}else if(v.tag===he){var W=v.stateNode;if(f&&m){var J=v.memoizedProps;W=Zo(W,J,v)}Ff(r,W)}else if(v.tag!==Y){if(v.tag===je&&v.memoizedState!==null){var se=v.child;se!==null&&(se.return=v),w1(r,v,!0,!0)}else if(v.child!==null){v.child.return=v,v=v.child;continue}}if(v=v,v===a)return;for(;v.sibling===null;){if(v.return===null||v.return===a)return;v=v.return}v.sibling.return=v.return,v=v.sibling}};jd=function(r,a){var f=a.stateNode,m=C1(r,a);if(!m){var v=f.containerInfo,_=Xu(v);w1(_,a,!1,!1),f.pendingChildren=_,ss(a),Ja(v,_)}},ap=function(r,a,f,m,v){var _=r.stateNode,B=r.memoizedProps,F=C1(r,a);if(F&&B===m){a.stateNode=_;return}var W=a.stateNode,J=Ed(),se=null;if(B!==m&&(se=wr(W,f,B,m,v,J)),F&&se===null){a.stateNode=_;return}var ve=Wu(_,se,f,B,m,a,F,W);ys(ve,f,m,v,J)&&ss(a),a.stateNode=ve,F?ss(a):Ud(ve,a,!1,!1)},ip=function(r,a,f,m){if(f!==m){var v=JA(),_=Ed();a.stateNode=Fu(m,v,_,a),ss(a)}else a.stateNode=r.stateNode}}else jd=function(r,a){},ap=function(r,a,f,m,v){},ip=function(r,a,f,m){};function Gd(r,a){if(!l())switch(r.tailMode){case"hidden":{for(var f=r.tail,m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?r.tail=null:m.sibling=null;break}case"collapsed":{for(var v=r.tail,_=null;v!==null;)v.alternate!==null&&(_=v),v=v.sibling;_===null?!a&&r.tail!==null?r.tail.sibling=null:r.tail=null:_.sibling=null;break}}}function Tr(r){var a=r.alternate!==null&&r.alternate.child===r.child,f=Pe,m=st;if(a){if((r.mode&tn)!==At){for(var W=r.selfBaseDuration,J=r.child;J!==null;)f=Bt(f,Bt(J.lanes,J.childLanes)),m|=J.subtreeFlags&mi,m|=J.flags&mi,W+=J.treeBaseDuration,J=J.sibling;r.treeBaseDuration=W}else for(var se=r.child;se!==null;)f=Bt(f,Bt(se.lanes,se.childLanes)),m|=se.subtreeFlags&mi,m|=se.flags&mi,se.return=r,se=se.sibling;r.subtreeFlags|=m}else{if((r.mode&tn)!==At){for(var v=r.actualDuration,_=r.selfBaseDuration,B=r.child;B!==null;)f=Bt(f,Bt(B.lanes,B.childLanes)),m|=B.subtreeFlags,m|=B.flags,v+=B.actualDuration,_+=B.treeBaseDuration,B=B.sibling;r.actualDuration=v,r.treeBaseDuration=_}else for(var F=r.child;F!==null;)f=Bt(f,Bt(F.lanes,F.childLanes)),m|=F.subtreeFlags,m|=F.flags,F.return=r,F=F.sibling;r.subtreeFlags|=m}return r.childLanes=f,a}function Lb(r,a,f){if(Qc()&&(a.mode&jt)!==At&&(a.flags&Qt)===st)return vh(a),Co(),a.flags|=Va|Yo|tr,!1;var m=yl(a);if(f!==null&&f.dehydrated!==null)if(r===null){if(!m)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(mh(a),Tr(a),(a.mode&tn)!==At){var v=f!==null;if(v){var _=a.child;_!==null&&(a.treeBaseDuration-=_.treeBaseDuration)}}return!1}else{if(Co(),(a.flags&Qt)===st&&(a.memoizedState=null),a.flags|=Ut,Tr(a),(a.mode&tn)!==At){var B=f!==null;if(B){var F=a.child;F!==null&&(a.treeBaseDuration-=F.treeBaseDuration)}}return!1}else return o(),!0}function _1(r,a,f){var m=a.pendingProps;switch(Wc(a),a.tag){case K:case H:case ae:case I:case le:case G:case te:case Ae:case L:case ie:return Tr(a),null;case V:{var v=a.type;return zr(v)&&lc(a),Tr(a),null}case q:{var _=a.stateNode;if(Jc(a),Vn(a),r0(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),r===null||r.child===null){var B=yl(a);if(B)ss(a);else if(r!==null){var F=r.memoizedState;(!F.isDehydrated||(a.flags&Va)!==st)&&(a.flags|=Ii,o())}}return jd(r,a),Tr(a),null}case X:{$A(a);var W=JA(),J=a.type;if(r!==null&&a.stateNode!=null)ap(r,a,J,m,W),r.ref!==a.ref&&S1(a);else{if(!m){if(a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Tr(a),null}var se=Ed(),ve=yl(a);if(ve)xd(a,W,se)&&ss(a);else{var _e=Pr(J,m,W,se,a);Ud(_e,a,!1,!1),a.stateNode=_e,ys(_e,J,m,W,se)&&ss(a)}a.ref!==null&&S1(a)}return Tr(a),null}case he:{var ke=m;if(r&&a.stateNode!=null){var Me=r.memoizedProps;ip(r,a,Me,ke)}else{if(typeof ke!="string"&&a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Be=JA(),lt=Ed(),bt=yl(a);bt?zA(a)&&ss(a):a.stateNode=Fu(ke,Be,lt,a)}return Tr(a),null}case re:{$c(a);var mt=a.memoizedState;if(r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){var cn=Lb(r,a,mt);if(!cn)return a.flags&tr?a:null}if((a.flags&Qt)!==st)return a.lanes=f,(a.mode&tn)!==At&&T0(a),a;var qt=mt!==null,Se=r!==null&&r.memoizedState!==null;if(qt!==Se&&qt){var De=a.child;if(De.flags|=ms,(a.mode&jt)!==At){var be=r===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!0);be||e0(Ti.current,bv)?V3():Em()}}var He=a.updateQueue;if(He!==null&&(a.flags|=Ut),Tr(a),(a.mode&tn)!==At&&qt){var ut=a.child;ut!==null&&(a.treeBaseDuration-=ut.treeBaseDuration)}return null}case Y:return Jc(a),jd(r,a),r===null&&Ko(a.stateNode.containerInfo),Tr(a),null;case ne:var at=a.type._context;return WA(at,a),Tr(a),null;case $:{var Wt=a.type;return zr(Wt)&&lc(a),Tr(a),null}case Re:{$c(a);var wt=a.memoizedState;if(wt===null)return Tr(a),null;var en=(a.flags&Qt)!==st,Ot=wt.rendering;if(Ot===null)if(en)Gd(wt,!1);else{var yn=K3()&&(r===null||(r.flags&Qt)===st);if(!yn)for(var yt=a.child;yt!==null;){var Un=Ph(yt);if(Un!==null){en=!0,a.flags|=Qt,Gd(wt,!1);var Qr=Un.updateQueue;return Qr!==null&&(a.updateQueue=Qr,a.flags|=Ut),a.subtreeFlags=st,b5(a,f),Eo(a,t0(Ti.current,Rd)),a.child}yt=yt.sibling}wt.tail!==null&&zn()>q1()&&(a.flags|=Qt,en=!0,Gd(wt,!1),a.lanes=ks)}else{if(!en){var Nr=Ph(Ot);if(Nr!==null){a.flags|=Qt,en=!0;var ja=Nr.updateQueue;if(ja!==null&&(a.updateQueue=ja,a.flags|=Ut),Gd(wt,!0),wt.tail===null&&wt.tailMode==="hidden"&&!Ot.alternate&&!l())return Tr(a),null}else zn()*2-wt.renderingStartTime>q1()&&f!==Fr&&(a.flags|=Qt,en=!0,Gd(wt,!1),a.lanes=ks)}if(wt.isBackwards)Ot.sibling=a.child,a.child=Ot;else{var ua=wt.last;ua!==null?ua.sibling=Ot:a.child=Ot,wt.last=Ot}}if(wt.tail!==null){var da=wt.tail;wt.rendering=da,wt.tail=da.sibling,wt.renderingStartTime=zn(),da.sibling=null;var Yr=Ti.current;return en?Yr=t0(Yr,Rd):Yr=Zc(Yr),Eo(a,Yr),da}return Tr(a),null}case Ne:break;case je:case gt:{_m(a);var Ys=a.memoizedState,fu=Ys!==null;if(r!==null){var nf=r.memoizedState,ds=nf!==null;ds!==fu&&!T&&(a.flags|=ms)}return!fu||(a.mode&jt)===At?Tr(a):vr(cs,Fr)&&(Tr(a),qr&&a.subtreeFlags&(un|Ut)&&(a.flags|=ms)),null}case ft:return null;case ht:return null}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function kb(r,a,f){switch(Wc(a),a.tag){case V:{var m=a.type;zr(m)&&lc(a);var v=a.flags;return v&tr?(a.flags=v&~tr|Qt,(a.mode&tn)!==At&&T0(a),a):null}case q:{a.stateNode,Jc(a),Vn(a),r0();var _=a.flags;return(_&tr)!==st&&(_&Qt)===st?(a.flags=_&~tr|Qt,a):null}case X:return $A(a),null;case re:{$c(a);var B=a.memoizedState;if(B!==null&&B.dehydrated!==null){if(a.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Co()}var F=a.flags;return F&tr?(a.flags=F&~tr|Qt,(a.mode&tn)!==At&&T0(a),a):null}case Re:return $c(a),null;case Y:return Jc(a),null;case ne:var W=a.type._context;return WA(W,a),null;case je:case gt:return _m(a),null;case ft:return null;default:return null}}function E1(r,a,f){switch(Wc(a),a.tag){case V:{var m=a.type.childContextTypes;m!=null&&lc(a);break}case q:{a.stateNode,Jc(a),Vn(a),r0();break}case X:{$A(a);break}case Y:Jc(a);break;case re:$c(a);break;case Re:$c(a);break;case ne:var v=a.type._context;WA(v,a);break;case je:case gt:_m(a);break}}function R1(r,a,f,m,v,_,B,F,W){var J=Array.prototype.slice.call(arguments,3);try{a.apply(f,J)}catch(se){this.onError(se)}}var T1=R1;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var am=document.createElement("react");T1=function(a,f,m,v,_,B,F,W,J){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var se=document.createEvent("Event"),ve=!1,_e=!0,ke=window.event,Me=Object.getOwnPropertyDescriptor(window,"event");function Be(){am.removeEventListener(De,bt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ke)}var lt=Array.prototype.slice.call(arguments,3);function bt(){ve=!0,Be(),f.apply(m,lt),_e=!1}var mt,cn=!1,qt=!1;function Se(be){if(mt=be.error,cn=!0,mt===null&&be.colno===0&&be.lineno===0&&(qt=!0),be.defaultPrevented&&mt!=null&&typeof mt=="object")try{mt._suppressLogging=!0}catch{}}var De="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",Se),am.addEventListener(De,bt,!1),se.initEvent(De,!1,!1),am.dispatchEvent(se),Me&&Object.defineProperty(window,"event",Me),ve&&_e&&(cn?qt&&(mt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):mt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(mt)),window.removeEventListener("error",Se),!ve)return Be(),R1.apply(this,arguments)}}var Nb=T1,Hd=!1,sp=null,Bb={onError:function(r){Hd=!0,sp=r}};function D1(r,a,f,m,v,_,B,F,W){Hd=!1,sp=null,Nb.apply(Bb,arguments)}function Pb(){return Hd}function L1(){if(Hd){var r=sp;return Hd=!1,sp=null,r}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var k1=null;k1=new Set;var op=!1,Dr=!1,Mb=typeof WeakSet=="function"?WeakSet:Set,ot=null,au=null,iu=null;function zb(r){D1(null,function(){throw r}),L1()}var Fb=function(r,a){if(a.props=r.memoizedProps,a.state=r.memoizedState,r.mode&tn)try{is(),a.componentWillUnmount()}finally{as(r)}else a.componentWillUnmount()};function N1(r,a){try{Do(lr,r)}catch(f){fn(r,a,f)}}function im(r,a,f){try{Fb(r,f)}catch(m){fn(r,a,m)}}function Ib(r,a,f){try{f.componentDidMount()}catch(m){fn(r,a,m)}}function B1(r,a){try{M1(r)}catch(f){fn(r,a,f)}}function su(r,a){var f=r.ref;if(f!==null)if(typeof f=="function"){var m;try{if(M&&O&&r.mode&tn)try{is(),m=f(null)}finally{as(r)}else m=f(null)}catch(v){fn(r,a,v)}typeof m=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",it(r))}else f.current=null}function lp(r,a,f){try{f()}catch(m){fn(r,a,m)}}var P1=!1;function Ob(r,a){Ui(r.containerInfo),ot=a,Ub();var f=P1;return P1=!1,f}function Ub(){for(;ot!==null;){var r=ot,a=r.child;(r.subtreeFlags&Pu)!==st&&a!==null?(a.return=r,ot=a):jb()}}function jb(){for(;ot!==null;){var r=ot;Vt(r);try{Gb(r)}catch(f){fn(r,r.return,f)}Pt();var a=r.sibling;if(a!==null){a.return=r.return,ot=a;return}ot=r.return}}function Gb(r){var a=r.alternate,f=r.flags;if((f&Ii)!==st){switch(Vt(r),r.tag){case I:case le:case ae:break;case V:{if(a!==null){var m=a.memoizedProps,v=a.memoizedState,_=r.stateNode;r.type===r.elementType&&!Cl&&(_.props!==r.memoizedProps&&u("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",it(r)||"instance"),_.state!==r.memoizedState&&u("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",it(r)||"instance"));var B=_.getSnapshotBeforeUpdate(r.elementType===r.type?m:Li(r.type,m),v);{var F=k1;B===void 0&&!F.has(r.type)&&(F.add(r.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",it(r)))}_.__reactInternalSnapshotBeforeUpdate=B}break}case q:{if(qr){var W=r.stateNode;Kl(W.containerInfo)}break}case X:case he:case Y:case $:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Pt()}}function Ni(r,a,f){var m=a.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var _=v.next,B=_;do{if((B.tag&r)===r){var F=B.destroy;B.destroy=void 0,F!==void 0&&((r&Rr)!==xa?Jn(a):(r&lr)!==xa&&Fs(a),(r&ts)!==xa&&tf(!0),lp(a,f,F),(r&ts)!==xa&&tf(!1),(r&Rr)!==xa?In():(r&lr)!==xa&&On())}B=B.next}while(B!==_)}}function Do(r,a){var f=a.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var v=m.next,_=v;do{if((_.tag&r)===r){(r&Rr)!==xa?Nn(a):(r&lr)!==xa&&ir(a);var B=_.create;(r&ts)!==xa&&tf(!0),_.destroy=B(),(r&ts)!==xa&&tf(!1),(r&Rr)!==xa?It():(r&lr)!==xa&&aa();{var F=_.destroy;if(F!==void 0&&typeof F!="function"){var W=void 0;(_.tag&lr)!==st?W="useLayoutEffect":(_.tag&ts)!==st?W="useInsertionEffect":W="useEffect";var J=void 0;F===null?J=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof F.then=="function"?J=`
|
|
395
|
+
Check the render method of \``+m+"`.");var v=m||"",_=r._debugSource;_&&(v=_.fileName+":"+_.lineNumber),Y0[v]||(Y0[v]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",f))}if(a.defaultProps!==void 0){var B=et(a)||"Unknown";Id[B]||(u("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",B),Id[B]=!0)}if(typeof a.getDerivedStateFromProps=="function"){var F=et(a)||"Unknown";Q0[F]||(u("%s: Function components do not support getDerivedStateFromProps.",F),Q0[F]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var H=et(a)||"Unknown";X0[H]||(u("%s: Function components do not support contextType.",H),X0[H]=!0)}}}var Z0={dehydrated:null,treeContext:null,retryLane:Ln};function $0(r){return{baseLanes:r,cachePool:eb(),transitions:null}}function db(r,a){var f=null;return{baseLanes:Bt(r.baseLanes,a),cachePool:f,transitions:r.transitions}}function fb(r,a,f,m){if(a!==null){var v=a.memoizedState;if(v===null)return!1}return e0(r,Rd)}function hb(r,a){return na(r.childLanes,a)}function p1(r,a,f){var m=a.pendingProps;_y(a)&&(a.flags|=Qt);var v=Ti.current,_=!1,B=(a.flags&Qt)!==st;if(B||fb(v,r)?(_=!0,a.flags&=~Qt):(r===null||r.memoizedState!==null)&&(v=k5(v,bv)),v=Zc(v),Eo(a,v),r===null){vl(a);var F=a.memoizedState;if(F!==null){var H=F.dehydrated;if(H!==null)return vb(a,H)}var Z=m.children,ie=m.fallback;if(_){var ve=pb(a,Z,ie,f),_e=a.child;return _e.memoizedState=$0(f),a.memoizedState=Z0,ve}else return em(a,Z)}else{var ke=r.memoizedState;if(ke!==null){var Me=ke.dehydrated;if(Me!==null)return yb(r,a,B,m,Me,ke,f)}if(_){var Be=m.fallback,ut=m.children,bt=mb(r,a,ut,Be,f),gt=a.child,cn=r.child.memoizedState;return gt.memoizedState=cn===null?$0(f):db(cn,f),gt.childLanes=hb(r,f),a.memoizedState=Z0,bt}else{var qt=m.children,Se=Ab(r,a,qt,f);return a.memoizedState=null,Se}}}function em(r,a,f){var m=r.mode,v={mode:"visible",children:a},_=tm(v,m);return _.return=r,r.child=_,_}function pb(r,a,f,m){var v=r.mode,_=r.child,B={mode:"hidden",children:a},F,H;return(v&jt)===mt&&_!==null?(F=_,F.childLanes=Pe,F.pendingProps=B,r.mode&tn&&(F.actualDuration=0,F.actualStartTime=-1,F.selfBaseDuration=0,F.treeBaseDuration=0),H=Bo(f,v,m,null)):(F=tm(B,v),H=Bo(f,v,m,null)),F.return=r,H.return=r,F.sibling=H,r.child=F,H}function tm(r,a,f){return my(r,a,Pe,null)}function A1(r,a){return Tl(r,a)}function Ab(r,a,f,m){var v=r.child,_=v.sibling,B=A1(v,{mode:"visible",children:f});if((a.mode&jt)===mt&&(B.lanes=m),B.return=a,B.sibling=null,_!==null){var F=a.deletions;F===null?(a.deletions=[_],a.flags|=Ea):F.push(_)}return a.child=B,B}function mb(r,a,f,m,v){var _=a.mode,B=r.child,F=B.sibling,H={mode:"hidden",children:f},Z;if((_&jt)===mt&&a.child!==B){var ie=a.child;Z=ie,Z.childLanes=Pe,Z.pendingProps=H,a.mode&tn&&(Z.actualDuration=0,Z.actualStartTime=-1,Z.selfBaseDuration=B.selfBaseDuration,Z.treeBaseDuration=B.treeBaseDuration),a.deletions=null}else Z=A1(B,H),Z.subtreeFlags=B.subtreeFlags&mi;var ve;return F!==null?ve=Tl(F,m):(ve=Bo(m,_,v,null),ve.flags|=un),ve.return=a,Z.return=a,Z.sibling=ve,a.child=Z,ve}function np(r,a,f,m){m!==null&&g(m),Vc(a,r.child,null,f);var v=a.pendingProps,_=v.children,B=em(a,_);return B.flags|=un,a.memoizedState=null,B}function gb(r,a,f,m,v){var _=a.mode,B={mode:"visible",children:f},F=tm(B,_),H=Bo(m,_,v,null);return H.flags|=un,F.return=a,H.return=a,F.sibling=H,a.child=F,(a.mode&jt)!==mt&&Vc(a,r.child,null,v),H}function vb(r,a,f){return(r.mode&jt)===mt?(u("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),r.lanes=vt):La(a)?r.lanes=Yi:r.lanes=Fr,null}function yb(r,a,f,m,v,_,B){if(f)if(a.flags&Va){a.flags&=~Va;var Se=j0(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return np(r,a,B,Se)}else{if(a.memoizedState!==null)return a.child=r.child,a.flags|=Qt,null;var De=m.children,be=m.fallback,He=gb(r,a,De,be,B),ft=a.child;return ft.memoizedState=$0(B),a.memoizedState=Z0,He}else{if(PA(),(a.mode&jt)===mt)return np(r,a,B,null);if(La(v)){var F,H,Z;{var ie=yi(v);F=ie.digest,H=ie.message,Z=ie.stack}var ve;H?ve=new Error(H):ve=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var _e=j0(ve,F,Z);return np(r,a,B,_e)}var ke=vr(B,r.childLanes);if(ki||ke){var Me=Cp();if(Me!==null){var Be=kA(Me,B);if(Be!==Ln&&Be!==_.retryLane){_.retryLane=Be;var ut=dn;oa(r,Be),er(Me,r,Be,ut)}}Em();var bt=j0(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return np(r,a,B,bt)}else if(Gi(v)){a.flags|=Qt,a.child=r.child;var gt=o4.bind(null,r);return Cs(v,gt),null}else{MA(a,v,_.treeContext);var cn=m.children,qt=em(a,cn);return qt.flags|=qa,qt}}}function m1(r,a,f){r.lanes=Bt(r.lanes,a);var m=r.alternate;m!==null&&(m.lanes=Bt(m.lanes,a)),XA(r.return,a,f)}function xb(r,a,f){for(var m=a;m!==null;){if(m.tag===J){var v=m.memoizedState;v!==null&&m1(m,f,r)}else if(m.tag===Re)m1(m,f,r);else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===r)return;for(;m.sibling===null;){if(m.return===null||m.return===r)return;m=m.return}m.sibling.return=m.return,m=m.sibling}}function bb(r){for(var a=r,f=null;a!==null;){var m=a.alternate;m!==null&&Ph(m)===null&&(f=a),a=a.sibling}return f}function Sb(r){if(r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!V0[r])if(V0[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break}case"forward":case"backward":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}function Cb(r,a){r!==void 0&&!tp[r]&&(r!=="collapsed"&&r!=="hidden"?(tp[r]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',r)):a!=="forwards"&&a!=="backwards"&&(tp[r]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)))}function g1(r,a){{var f=Qn(r),m=!f&&typeof Ye(r)=="function";if(f||m){var v=f?"array":"iterable";return u("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",v,a,v),!1}}return!0}function wb(r,a){if((a==="forwards"||a==="backwards")&&r!==void 0&&r!==null&&r!==!1)if(Qn(r)){for(var f=0;f<r.length;f++)if(!g1(r[f],f))return}else{var m=Ye(r);if(typeof m=="function"){var v=m.call(r);if(v)for(var _=v.next(),B=0;!_.done;_=v.next()){if(!g1(_.value,B))return;B++}}else u('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a)}}function nm(r,a,f,m,v){var _=r.memoizedState;_===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:v}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=m,_.tail=f,_.tailMode=v)}function v1(r,a,f){var m=a.pendingProps,v=m.revealOrder,_=m.tail,B=m.children;Sb(v),Cb(_,v),wb(B,v),la(r,a,B,f);var F=Ti.current,H=e0(F,Rd);if(H)F=t0(F,Rd),a.flags|=Qt;else{var Z=r!==null&&(r.flags&Qt)!==st;Z&&xb(a,a.child,f),F=Zc(F)}if(Eo(a,F),(a.mode&jt)===mt)a.memoizedState=null;else switch(v){case"forwards":{var ie=bb(a.child),ve;ie===null?(ve=a.child,a.child=null):(ve=ie.sibling,ie.sibling=null),nm(a,!1,ve,ie,_);break}case"backwards":{var _e=null,ke=a.child;for(a.child=null;ke!==null;){var Me=ke.alternate;if(Me!==null&&Ph(Me)===null){a.child=ke;break}var Be=ke.sibling;ke.sibling=_e,_e=ke,ke=Be}nm(a,!0,_e,null,_);break}case"together":{nm(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function _b(r,a,f){ZA(a,a.stateNode.containerInfo);var m=a.pendingProps;return r===null?a.child=Vc(a,null,m,f):la(r,a,m,f),a.child}var y1=!1;function Eb(r,a,f){var m=a.type,v=m._context,_=a.pendingProps,B=a.memoizedProps,F=_.value;{"value"in _||y1||(y1=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var H=a.type.propTypes;H&&ea(H,_,"prop","Context.Provider")}if(fv(a,v,F),B!==null){var Z=B.value;if(xr(Z,F)){if(B.children===_.children&&!Qi())return Ws(r,a,f)}else S5(a,v,f)}var ie=_.children;return la(r,a,ie,f),a.child}var x1=!1;function Rb(r,a,f){var m=a.type;m._context===void 0?m!==m.Consumer&&(x1||(x1=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):m=m._context;var v=a.pendingProps,_=v.children;typeof _!="function"&&u("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Kc(a,f);var B=Zn(m);Ki(a);var F;return zd.current=a,xe(!0),F=_(B),xe(!1),Ji(),a.flags|=En,la(r,a,F,f),a.child}function Od(){ki=!0}function rp(r,a){(a.mode&jt)===mt&&r!==null&&(r.alternate=null,a.alternate=null,a.flags|=un)}function Ws(r,a,f){return r!==null&&(a.dependencies=r.dependencies),qv(),$d(a.lanes),vr(f,a.childLanes)?(x5(r,a),a.child):null}function Tb(r,a,f){{var m=a.return;if(m===null)throw new Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,f.index=a.index,f.sibling=a.sibling,f.return=a.return,f.ref=a.ref,a===m.child)m.child=f;else{var v=m.child;if(v===null)throw new Error("Expected parent to have a child.");for(;v.sibling!==a;)if(v=v.sibling,v===null)throw new Error("Expected to find the previous sibling.");v.sibling=f}var _=m.deletions;return _===null?(m.deletions=[r],m.flags|=Ea):_.push(r),f.flags|=un,f}}function rm(r,a){var f=r.lanes;return!!vr(f,a)}function Db(r,a,f){switch(a.tag){case q:f1(a),a.stateNode,Co();break;case V:yv(a);break;case Y:{var m=a.type;zr(m)&&co(a);break}case Q:ZA(a,a.stateNode.containerInfo);break;case ne:{var v=a.memoizedProps.value,_=a.type._context;fv(a,_,v);break}case pe:{var B=vr(f,a.childLanes);B&&(a.flags|=Ut);{var F=a.stateNode;F.effectDuration=0,F.passiveEffectDuration=0}}break;case J:{var H=a.memoizedState;if(H!==null){if(H.dehydrated!==null)return Eo(a,Zc(Ti.current)),a.flags|=Qt,null;var Z=a.child,ie=Z.childLanes;if(vr(f,ie))return p1(r,a,f);Eo(a,Zc(Ti.current));var ve=Ws(r,a,f);return ve!==null?ve.sibling:null}else Eo(a,Zc(Ti.current));break}case Re:{var _e=(r.flags&Qt)!==st,ke=vr(f,a.childLanes);if(_e){if(ke)return v1(r,a,f);a.flags|=Qt}var Me=a.memoizedState;if(Me!==null&&(Me.rendering=null,Me.tail=null,Me.lastEffect=null),Eo(a,Ti.current),ke)break;return null}case Ue:case ot:return a.lanes=Pe,c1(r,a,f)}return Ws(r,a,f)}function b1(r,a,f){if(a._debugNeedsRemount&&r!==null)return Tb(r,a,zm(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(r!==null){var m=r.memoizedProps,v=a.pendingProps;if(m!==v||Qi()||a.type!==r.type)ki=!0;else{var _=rm(r,f);if(!_&&(a.flags&Qt)===st)return ki=!1,Db(r,a,f);(r.flags&ku)!==st?ki=!0:ki=!1}}else if(ki=!1,l()&&vd(a)){var B=a.index,F=Us();Gc(a,F,B)}switch(a.lanes=Pe,a.tag){case K:return ub(r,a,a.type,f);case U:{var H=a.elementType;return lb(r,a,H,f)}case I:{var Z=a.type,ie=a.pendingProps,ve=a.elementType===Z?ie:Li(Z,ie);return q0(r,a,Z,ve,f)}case Y:{var _e=a.type,ke=a.pendingProps,Me=a.elementType===_e?ke:Li(_e,ke);return d1(r,a,_e,Me,f)}case q:return ib(r,a,f);case V:return sb(r,a,f);case ge:return ob(r,a);case J:return p1(r,a,f);case Q:return _b(r,a,f);case le:{var Be=a.type,ut=a.pendingProps,bt=a.elementType===Be?ut:Li(Be,ut);return s1(r,a,Be,bt,f)}case W:return nb(r,a,f);case se:return rb(r,a,f);case pe:return ab(r,a,f);case ne:return Eb(r,a,f);case L:return Rb(r,a,f);case ae:{var gt=a.type,cn=a.pendingProps,qt=Li(gt,cn);if(a.type!==a.elementType){var Se=gt.propTypes;Se&&ea(Se,qt,"prop",et(gt))}return qt=Li(gt.type,qt),o1(r,a,gt,qt,f)}case re:return l1(r,a,a.type,a.pendingProps,f);case ee:{var De=a.type,be=a.pendingProps,He=a.elementType===De?be:Li(De,be);return cb(r,a,De,He,f)}case Re:return v1(r,a,f);case Ne:break;case Ue:return c1(r,a,f)}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ss(r){r.flags|=Ut}function S1(r){r.flags|=As,r.flags|=to}function C1(r,a){var f=r!==null&&r.child===a.child;if(f)return!0;if((a.flags&Ea)!==st)return!1;for(var m=a.child;m!==null;){if((m.flags&Vo)!==st||(m.subtreeFlags&Vo)!==st)return!1;m=m.sibling}return!0}var Ud,jd,ap,ip;if(qr)Ud=function(r,a,f,m){for(var v=a.child;v!==null;){if(v.tag===V||v.tag===ge)gi(r,v.stateNode);else if(v.tag!==Q){if(v.child!==null){v.child.return=v,v=v.child;continue}}if(v===a)return;for(;v.sibling===null;){if(v.return===null||v.return===a)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},jd=function(r,a){},ap=function(r,a,f,m,v){var _=r.memoizedProps;if(_!==m){var B=a.stateNode,F=Ed(),H=wr(B,f,_,m,v,F);a.updateQueue=H,H&&ss(a)}},ip=function(r,a,f,m){f!==m&&ss(a)};else if(Ql){Ud=function(r,a,f,m){for(var v=a.child;v!==null;){if(v.tag===V){var _=v.stateNode;if(f&&m){var B=v.memoizedProps,F=v.type;_=Ss(_,F,B,v)}gi(r,_)}else if(v.tag===ge){var H=v.stateNode;if(f&&m){var Z=v.memoizedProps;H=Zo(H,Z,v)}gi(r,H)}else if(v.tag!==Q){if(v.tag===Ue&&v.memoizedState!==null){var ie=v.child;ie!==null&&(ie.return=v),Ud(r,v,!0,!0)}else if(v.child!==null){v.child.return=v,v=v.child;continue}}if(v=v,v===a)return;for(;v.sibling===null;){if(v.return===null||v.return===a)return;v=v.return}v.sibling.return=v.return,v=v.sibling}};var w1=function(r,a,f,m){for(var v=a.child;v!==null;){if(v.tag===V){var _=v.stateNode;if(f&&m){var B=v.memoizedProps,F=v.type;_=Ss(_,F,B,v)}Ff(r,_)}else if(v.tag===ge){var H=v.stateNode;if(f&&m){var Z=v.memoizedProps;H=Zo(H,Z,v)}Ff(r,H)}else if(v.tag!==Q){if(v.tag===Ue&&v.memoizedState!==null){var ie=v.child;ie!==null&&(ie.return=v),w1(r,v,!0,!0)}else if(v.child!==null){v.child.return=v,v=v.child;continue}}if(v=v,v===a)return;for(;v.sibling===null;){if(v.return===null||v.return===a)return;v=v.return}v.sibling.return=v.return,v=v.sibling}};jd=function(r,a){var f=a.stateNode,m=C1(r,a);if(!m){var v=f.containerInfo,_=Xu(v);w1(_,a,!1,!1),f.pendingChildren=_,ss(a),Ja(v,_)}},ap=function(r,a,f,m,v){var _=r.stateNode,B=r.memoizedProps,F=C1(r,a);if(F&&B===m){a.stateNode=_;return}var H=a.stateNode,Z=Ed(),ie=null;if(B!==m&&(ie=wr(H,f,B,m,v,Z)),F&&ie===null){a.stateNode=_;return}var ve=Wu(_,ie,f,B,m,a,F,H);ys(ve,f,m,v,Z)&&ss(a),a.stateNode=ve,F?ss(a):Ud(ve,a,!1,!1)},ip=function(r,a,f,m){if(f!==m){var v=JA(),_=Ed();a.stateNode=Fu(m,v,_,a),ss(a)}else a.stateNode=r.stateNode}}else jd=function(r,a){},ap=function(r,a,f,m,v){},ip=function(r,a,f,m){};function Gd(r,a){if(!l())switch(r.tailMode){case"hidden":{for(var f=r.tail,m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?r.tail=null:m.sibling=null;break}case"collapsed":{for(var v=r.tail,_=null;v!==null;)v.alternate!==null&&(_=v),v=v.sibling;_===null?!a&&r.tail!==null?r.tail.sibling=null:r.tail=null:_.sibling=null;break}}}function Tr(r){var a=r.alternate!==null&&r.alternate.child===r.child,f=Pe,m=st;if(a){if((r.mode&tn)!==mt){for(var H=r.selfBaseDuration,Z=r.child;Z!==null;)f=Bt(f,Bt(Z.lanes,Z.childLanes)),m|=Z.subtreeFlags&mi,m|=Z.flags&mi,H+=Z.treeBaseDuration,Z=Z.sibling;r.treeBaseDuration=H}else for(var ie=r.child;ie!==null;)f=Bt(f,Bt(ie.lanes,ie.childLanes)),m|=ie.subtreeFlags&mi,m|=ie.flags&mi,ie.return=r,ie=ie.sibling;r.subtreeFlags|=m}else{if((r.mode&tn)!==mt){for(var v=r.actualDuration,_=r.selfBaseDuration,B=r.child;B!==null;)f=Bt(f,Bt(B.lanes,B.childLanes)),m|=B.subtreeFlags,m|=B.flags,v+=B.actualDuration,_+=B.treeBaseDuration,B=B.sibling;r.actualDuration=v,r.treeBaseDuration=_}else for(var F=r.child;F!==null;)f=Bt(f,Bt(F.lanes,F.childLanes)),m|=F.subtreeFlags,m|=F.flags,F.return=r,F=F.sibling;r.subtreeFlags|=m}return r.childLanes=f,a}function Lb(r,a,f){if(Qc()&&(a.mode&jt)!==mt&&(a.flags&Qt)===st)return vh(a),Co(),a.flags|=Va|Yo|tr,!1;var m=yl(a);if(f!==null&&f.dehydrated!==null)if(r===null){if(!m)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(mh(a),Tr(a),(a.mode&tn)!==mt){var v=f!==null;if(v){var _=a.child;_!==null&&(a.treeBaseDuration-=_.treeBaseDuration)}}return!1}else{if(Co(),(a.flags&Qt)===st&&(a.memoizedState=null),a.flags|=Ut,Tr(a),(a.mode&tn)!==mt){var B=f!==null;if(B){var F=a.child;F!==null&&(a.treeBaseDuration-=F.treeBaseDuration)}}return!1}else return o(),!0}function _1(r,a,f){var m=a.pendingProps;switch(Wc(a),a.tag){case K:case U:case re:case I:case le:case W:case se:case pe:case L:case ae:return Tr(a),null;case Y:{var v=a.type;return zr(v)&&lc(a),Tr(a),null}case q:{var _=a.stateNode;if(Jc(a),Vn(a),r0(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),r===null||r.child===null){var B=yl(a);if(B)ss(a);else if(r!==null){var F=r.memoizedState;(!F.isDehydrated||(a.flags&Va)!==st)&&(a.flags|=Ii,o())}}return jd(r,a),Tr(a),null}case V:{$A(a);var H=JA(),Z=a.type;if(r!==null&&a.stateNode!=null)ap(r,a,Z,m,H),r.ref!==a.ref&&S1(a);else{if(!m){if(a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Tr(a),null}var ie=Ed(),ve=yl(a);if(ve)xd(a,H,ie)&&ss(a);else{var _e=Pr(Z,m,H,ie,a);Ud(_e,a,!1,!1),a.stateNode=_e,ys(_e,Z,m,H,ie)&&ss(a)}a.ref!==null&&S1(a)}return Tr(a),null}case ge:{var ke=m;if(r&&a.stateNode!=null){var Me=r.memoizedProps;ip(r,a,Me,ke)}else{if(typeof ke!="string"&&a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Be=JA(),ut=Ed(),bt=yl(a);bt?zA(a)&&ss(a):a.stateNode=Fu(ke,Be,ut,a)}return Tr(a),null}case J:{$c(a);var gt=a.memoizedState;if(r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){var cn=Lb(r,a,gt);if(!cn)return a.flags&tr?a:null}if((a.flags&Qt)!==st)return a.lanes=f,(a.mode&tn)!==mt&&T0(a),a;var qt=gt!==null,Se=r!==null&&r.memoizedState!==null;if(qt!==Se&&qt){var De=a.child;if(De.flags|=ms,(a.mode&jt)!==mt){var be=r===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!0);be||e0(Ti.current,bv)?V3():Em()}}var He=a.updateQueue;if(He!==null&&(a.flags|=Ut),Tr(a),(a.mode&tn)!==mt&&qt){var ft=a.child;ft!==null&&(a.treeBaseDuration-=ft.treeBaseDuration)}return null}case Q:return Jc(a),jd(r,a),r===null&&Ko(a.stateNode.containerInfo),Tr(a),null;case ne:var at=a.type._context;return WA(at,a),Tr(a),null;case ee:{var Wt=a.type;return zr(Wt)&&lc(a),Tr(a),null}case Re:{$c(a);var wt=a.memoizedState;if(wt===null)return Tr(a),null;var en=(a.flags&Qt)!==st,Ot=wt.rendering;if(Ot===null)if(en)Gd(wt,!1);else{var yn=K3()&&(r===null||(r.flags&Qt)===st);if(!yn)for(var yt=a.child;yt!==null;){var Un=Ph(yt);if(Un!==null){en=!0,a.flags|=Qt,Gd(wt,!1);var Qr=Un.updateQueue;return Qr!==null&&(a.updateQueue=Qr,a.flags|=Ut),a.subtreeFlags=st,b5(a,f),Eo(a,t0(Ti.current,Rd)),a.child}yt=yt.sibling}wt.tail!==null&&zn()>q1()&&(a.flags|=Qt,en=!0,Gd(wt,!1),a.lanes=ks)}else{if(!en){var Nr=Ph(Ot);if(Nr!==null){a.flags|=Qt,en=!0;var ja=Nr.updateQueue;if(ja!==null&&(a.updateQueue=ja,a.flags|=Ut),Gd(wt,!0),wt.tail===null&&wt.tailMode==="hidden"&&!Ot.alternate&&!l())return Tr(a),null}else zn()*2-wt.renderingStartTime>q1()&&f!==Fr&&(a.flags|=Qt,en=!0,Gd(wt,!1),a.lanes=ks)}if(wt.isBackwards)Ot.sibling=a.child,a.child=Ot;else{var ua=wt.last;ua!==null?ua.sibling=Ot:a.child=Ot,wt.last=Ot}}if(wt.tail!==null){var da=wt.tail;wt.rendering=da,wt.tail=da.sibling,wt.renderingStartTime=zn(),da.sibling=null;var Yr=Ti.current;return en?Yr=t0(Yr,Rd):Yr=Zc(Yr),Eo(a,Yr),da}return Tr(a),null}case Ne:break;case Ue:case ot:{_m(a);var Ys=a.memoizedState,fu=Ys!==null;if(r!==null){var nf=r.memoizedState,ds=nf!==null;ds!==fu&&!T&&(a.flags|=ms)}return!fu||(a.mode&jt)===mt?Tr(a):vr(cs,Fr)&&(Tr(a),qr&&a.subtreeFlags&(un|Ut)&&(a.flags|=ms)),null}case lt:return null;case pt:return null}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function kb(r,a,f){switch(Wc(a),a.tag){case Y:{var m=a.type;zr(m)&&lc(a);var v=a.flags;return v&tr?(a.flags=v&~tr|Qt,(a.mode&tn)!==mt&&T0(a),a):null}case q:{a.stateNode,Jc(a),Vn(a),r0();var _=a.flags;return(_&tr)!==st&&(_&Qt)===st?(a.flags=_&~tr|Qt,a):null}case V:return $A(a),null;case J:{$c(a);var B=a.memoizedState;if(B!==null&&B.dehydrated!==null){if(a.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Co()}var F=a.flags;return F&tr?(a.flags=F&~tr|Qt,(a.mode&tn)!==mt&&T0(a),a):null}case Re:return $c(a),null;case Q:return Jc(a),null;case ne:var H=a.type._context;return WA(H,a),null;case Ue:case ot:return _m(a),null;case lt:return null;default:return null}}function E1(r,a,f){switch(Wc(a),a.tag){case Y:{var m=a.type.childContextTypes;m!=null&&lc(a);break}case q:{a.stateNode,Jc(a),Vn(a),r0();break}case V:{$A(a);break}case Q:Jc(a);break;case J:$c(a);break;case Re:$c(a);break;case ne:var v=a.type._context;WA(v,a);break;case Ue:case ot:_m(a);break}}function R1(r,a,f,m,v,_,B,F,H){var Z=Array.prototype.slice.call(arguments,3);try{a.apply(f,Z)}catch(ie){this.onError(ie)}}var T1=R1;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var am=document.createElement("react");T1=function(a,f,m,v,_,B,F,H,Z){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var ie=document.createEvent("Event"),ve=!1,_e=!0,ke=window.event,Me=Object.getOwnPropertyDescriptor(window,"event");function Be(){am.removeEventListener(De,bt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ke)}var ut=Array.prototype.slice.call(arguments,3);function bt(){ve=!0,Be(),f.apply(m,ut),_e=!1}var gt,cn=!1,qt=!1;function Se(be){if(gt=be.error,cn=!0,gt===null&&be.colno===0&&be.lineno===0&&(qt=!0),be.defaultPrevented&>!=null&&typeof gt=="object")try{gt._suppressLogging=!0}catch{}}var De="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",Se),am.addEventListener(De,bt,!1),ie.initEvent(De,!1,!1),am.dispatchEvent(ie),Me&&Object.defineProperty(window,"event",Me),ve&&_e&&(cn?qt&&(gt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):gt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(gt)),window.removeEventListener("error",Se),!ve)return Be(),R1.apply(this,arguments)}}var Nb=T1,Hd=!1,sp=null,Bb={onError:function(r){Hd=!0,sp=r}};function D1(r,a,f,m,v,_,B,F,H){Hd=!1,sp=null,Nb.apply(Bb,arguments)}function Pb(){return Hd}function L1(){if(Hd){var r=sp;return Hd=!1,sp=null,r}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var k1=null;k1=new Set;var op=!1,Dr=!1,Mb=typeof WeakSet=="function"?WeakSet:Set,ct=null,au=null,iu=null;function zb(r){D1(null,function(){throw r}),L1()}var Fb=function(r,a){if(a.props=r.memoizedProps,a.state=r.memoizedState,r.mode&tn)try{is(),a.componentWillUnmount()}finally{as(r)}else a.componentWillUnmount()};function N1(r,a){try{Do(lr,r)}catch(f){fn(r,a,f)}}function im(r,a,f){try{Fb(r,f)}catch(m){fn(r,a,m)}}function Ib(r,a,f){try{f.componentDidMount()}catch(m){fn(r,a,m)}}function B1(r,a){try{M1(r)}catch(f){fn(r,a,f)}}function su(r,a){var f=r.ref;if(f!==null)if(typeof f=="function"){var m;try{if(M&&O&&r.mode&tn)try{is(),m=f(null)}finally{as(r)}else m=f(null)}catch(v){fn(r,a,v)}typeof m=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",it(r))}else f.current=null}function lp(r,a,f){try{f()}catch(m){fn(r,a,m)}}var P1=!1;function Ob(r,a){Ui(r.containerInfo),ct=a,Ub();var f=P1;return P1=!1,f}function Ub(){for(;ct!==null;){var r=ct,a=r.child;(r.subtreeFlags&Pu)!==st&&a!==null?(a.return=r,ct=a):jb()}}function jb(){for(;ct!==null;){var r=ct;Vt(r);try{Gb(r)}catch(f){fn(r,r.return,f)}Pt();var a=r.sibling;if(a!==null){a.return=r.return,ct=a;return}ct=r.return}}function Gb(r){var a=r.alternate,f=r.flags;if((f&Ii)!==st){switch(Vt(r),r.tag){case I:case le:case re:break;case Y:{if(a!==null){var m=a.memoizedProps,v=a.memoizedState,_=r.stateNode;r.type===r.elementType&&!Cl&&(_.props!==r.memoizedProps&&u("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",it(r)||"instance"),_.state!==r.memoizedState&&u("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",it(r)||"instance"));var B=_.getSnapshotBeforeUpdate(r.elementType===r.type?m:Li(r.type,m),v);{var F=k1;B===void 0&&!F.has(r.type)&&(F.add(r.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",it(r)))}_.__reactInternalSnapshotBeforeUpdate=B}break}case q:{if(qr){var H=r.stateNode;Kl(H.containerInfo)}break}case V:case ge:case Q:case ee:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Pt()}}function Ni(r,a,f){var m=a.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var _=v.next,B=_;do{if((B.tag&r)===r){var F=B.destroy;B.destroy=void 0,F!==void 0&&((r&Rr)!==xa?Jn(a):(r&lr)!==xa&&Fs(a),(r&ts)!==xa&&tf(!0),lp(a,f,F),(r&ts)!==xa&&tf(!1),(r&Rr)!==xa?In():(r&lr)!==xa&&On())}B=B.next}while(B!==_)}}function Do(r,a){var f=a.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var v=m.next,_=v;do{if((_.tag&r)===r){(r&Rr)!==xa?Nn(a):(r&lr)!==xa&&ir(a);var B=_.create;(r&ts)!==xa&&tf(!0),_.destroy=B(),(r&ts)!==xa&&tf(!1),(r&Rr)!==xa?It():(r&lr)!==xa&&aa();{var F=_.destroy;if(F!==void 0&&typeof F!="function"){var H=void 0;(_.tag&lr)!==st?H="useLayoutEffect":(_.tag&ts)!==st?H="useInsertionEffect":H="useEffect";var Z=void 0;F===null?Z=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof F.then=="function"?Z=`
|
|
396
396
|
|
|
397
|
-
It looks like you wrote `+
|
|
397
|
+
It looks like you wrote `+H+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
398
398
|
|
|
399
|
-
`+
|
|
399
|
+
`+H+`(() => {
|
|
400
400
|
async function fetchData() {
|
|
401
401
|
// You can await here
|
|
402
402
|
const response = await MyAPI.getData(someId);
|
|
@@ -405,15 +405,15 @@ It looks like you wrote `+W+`(async () => ...) or returned a Promise. Instead, w
|
|
|
405
405
|
fetchData();
|
|
406
406
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
407
407
|
|
|
408
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:J=" You returned: "+F,u("%s must not return anything besides a function, which is used for clean-up.%s",W,J)}}}_=_.next}while(_!==v)}}function Hb(r,a){if((a.flags&Ut)!==st)switch(a.tag){case Ae:{var f=a.stateNode.passiveEffectDuration,m=a.memoizedProps,v=m.id,_=m.onPostCommit,B=Yv(),F=a.alternate===null?"mount":"update";Qv()&&(F="nested-update"),typeof _=="function"&&_(v,F,f,B);var W=a.return;e:for(;W!==null;){switch(W.tag){case q:var J=W.stateNode;J.passiveEffectDuration+=f;break e;case Ae:var se=W.stateNode;se.passiveEffectDuration+=f;break e}W=W.return}break}}}function Wb(r,a,f,m){if((f.flags&qo)!==st)switch(f.tag){case I:case le:case ae:{if(!Dr)if(f.mode&tn)try{is(),Do(lr|or,f)}finally{as(f)}else Do(lr|or,f);break}case V:{var v=f.stateNode;if(f.flags&Ut&&!Dr)if(a===null)if(f.type===f.elementType&&!Cl&&(v.props!==f.memoizedProps&&u("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",it(f)||"instance"),v.state!==f.memoizedState&&u("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",it(f)||"instance")),f.mode&tn)try{is(),v.componentDidMount()}finally{as(f)}else v.componentDidMount();else{var _=f.elementType===f.type?a.memoizedProps:Li(f.type,a.memoizedProps),B=a.memoizedState;if(f.type===f.elementType&&!Cl&&(v.props!==f.memoizedProps&&u("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",it(f)||"instance"),v.state!==f.memoizedState&&u("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",it(f)||"instance")),f.mode&tn)try{is(),v.componentDidUpdate(_,B,v.__reactInternalSnapshotBeforeUpdate)}finally{as(f)}else v.componentDidUpdate(_,B,v.__reactInternalSnapshotBeforeUpdate)}var F=f.updateQueue;F!==null&&(f.type===f.elementType&&!Cl&&(v.props!==f.memoizedProps&&u("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",it(f)||"instance"),v.state!==f.memoizedState&&u("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",it(f)||"instance")),vv(f,F,v));break}case q:{var W=f.updateQueue;if(W!==null){var J=null;if(f.child!==null)switch(f.child.tag){case X:J=Ka(f.child.stateNode);break;case V:J=f.child.stateNode;break}vv(f,W,J)}break}case X:{var se=f.stateNode;if(a===null&&f.flags&Ut){var ve=f.type,_e=f.memoizedProps;Yn(se,ve,_e,f)}break}case he:break;case Y:break;case Ae:{{var ke=f.memoizedProps,Me=ke.onCommit,Be=ke.onRender,lt=f.stateNode.effectDuration,bt=Yv(),mt=a===null?"mount":"update";Qv()&&(mt="nested-update"),typeof Be=="function"&&Be(f.memoizedProps.id,mt,f.actualDuration,f.treeBaseDuration,f.actualStartTime,bt);{typeof Me=="function"&&Me(f.memoizedProps.id,mt,lt,bt),t4(f);var cn=f.return;e:for(;cn!==null;){switch(cn.tag){case q:var qt=cn.stateNode;qt.effectDuration+=lt;break e;case Ae:var Se=cn.stateNode;Se.effectDuration+=lt;break e}cn=cn.return}}}break}case re:{$b(r,f);break}case Re:case $:case Ne:case je:case gt:case ht:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Dr||f.flags&As&&M1(f)}function Xb(r){switch(r.tag){case I:case le:case ae:{if(r.mode&tn)try{is(),N1(r,r.return)}finally{as(r)}else N1(r,r.return);break}case V:{var a=r.stateNode;typeof a.componentDidMount=="function"&&Ib(r,r.return,a),B1(r,r.return);break}case X:{B1(r,r.return);break}}}function Qb(r,a){var f=null;if(qr)for(var m=r;;){if(m.tag===X){if(f===null){f=m;try{var v=m.stateNode;a?RA(v):Da(m.stateNode,m.memoizedProps)}catch(B){fn(r,r.return,B)}}}else if(m.tag===he){if(f===null)try{var _=m.stateNode;a?TA(_):vi(_,m.memoizedProps)}catch(B){fn(r,r.return,B)}}else if(!((m.tag===je||m.tag===gt)&&m.memoizedState!==null&&m!==r)){if(m.child!==null){m.child.return=m,m=m.child;continue}}if(m===r)return;for(;m.sibling===null;){if(m.return===null||m.return===r)return;f===m&&(f=null),m=m.return}f===m&&(f=null),m.sibling.return=m.return,m=m.sibling}}function M1(r){var a=r.ref;if(a!==null){var f=r.stateNode,m;switch(r.tag){case X:m=Ka(f);break;default:m=f}if(typeof a=="function"){var v;if(r.mode&tn)try{is(),v=a(m)}finally{as(r)}else v=a(m);typeof v=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",it(r))}else a.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",it(r)),a.current=m}}function Yb(r){var a=r.alternate;a!==null&&(a.return=null),r.return=null}function z1(r){var a=r.alternate;a!==null&&(r.alternate=null,z1(a));{if(r.child=null,r.deletions=null,r.sibling=null,r.tag===X){var f=r.stateNode;f!==null&&xA(f)}r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}}function Vb(r){if(Ql){var a=r.stateNode,f=a.containerInfo,m=Xu(f);ji(f,m)}}function qb(r){for(var a=r.return;a!==null;){if(F1(a))return a;a=a.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function F1(r){return r.tag===X||r.tag===q||r.tag===Y}function I1(r){var a=r;e:for(;;){for(;a.sibling===null;){if(a.return===null||F1(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==X&&a.tag!==he&&a.tag!==Ee;){if(a.flags&un||a.child===null||a.tag===Y)continue e;a.child.return=a,a=a.child}if(!(a.flags&un))return a.stateNode}}function Kb(r){if(qr){var a=qb(r);switch(a.tag){case X:{var f=a.stateNode;a.flags&Ra&&(Ta(f),a.flags&=~Ra);var m=I1(r);om(r,m,f);break}case q:case Y:{var v=a.stateNode.containerInfo,_=I1(r);sm(r,_,v);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function sm(r,a,f){var m=r.tag,v=m===X||m===he;if(v){var _=r.stateNode;a?Hu(f,_,a):CA(f,_)}else if(m!==Y){var B=r.child;if(B!==null){sm(B,a,f);for(var F=B.sibling;F!==null;)sm(F,a,f),F=F.sibling}}}function om(r,a,f){var m=r.tag,v=m===X||m===he;if(v){var _=r.stateNode;a?_A(f,_,a):zf(f,_)}else if(m!==Y){var B=r.child;if(B!==null){om(B,a,f);for(var F=B.sibling;F!==null;)om(F,a,f),F=F.sibling}}}var Lr=null,Bi=!1;function Jb(r,a,f){if(qr){var m=a;e:for(;m!==null;){switch(m.tag){case X:{Lr=m.stateNode,Bi=!1;break e}case q:{Lr=m.stateNode.containerInfo,Bi=!0;break e}case Y:{Lr=m.stateNode.containerInfo,Bi=!0;break e}}m=m.return}if(Lr===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");lm(r,a,f),Lr=null,Bi=!1}else lm(r,a,f);Yb(f)}function os(r,a,f){for(var m=f.child;m!==null;)lm(r,a,m),m=m.sibling}function lm(r,a,f){switch(hd(f),f.tag){case X:Dr||su(f,a);case he:{if(qr){var m=Lr,v=Bi;Lr=null,os(r,a,f),Lr=m,Bi=v,Lr!==null&&(Bi?ql(Lr,f.stateNode):EA(Lr,f.stateNode))}else os(r,a,f);return}case Ee:{qr&&Lr!==null&&(Bi?qu(Lr,f.stateNode):Vu(Lr,f.stateNode));return}case Y:{if(qr){var _=Lr,B=Bi;Lr=f.stateNode.containerInfo,Bi=!0,os(r,a,f),Lr=_,Bi=B}else Vb(f),os(r,a,f);return}case I:case le:case ie:case ae:{if(!Dr){var F=f.updateQueue;if(F!==null){var W=F.lastEffect;if(W!==null){var J=W.next,se=J;do{var ve=se,_e=ve.destroy,ke=ve.tag;_e!==void 0&&((ke&ts)!==xa?lp(f,a,_e):(ke&lr)!==xa&&(Fs(f),f.mode&tn?(is(),lp(f,a,_e),as(f)):lp(f,a,_e),On())),se=se.next}while(se!==J)}}}os(r,a,f);return}case V:{if(!Dr){su(f,a);var Me=f.stateNode;typeof Me.componentWillUnmount=="function"&&im(f,a,Me)}os(r,a,f);return}case Ne:{os(r,a,f);return}case je:{if(f.mode&jt){var Be=Dr;Dr=Be||f.memoizedState!==null,os(r,a,f),Dr=Be}else os(r,a,f);break}default:{os(r,a,f);return}}}function Zb(r){r.memoizedState}function $b(r,a){if(_r){var f=a.memoizedState;if(f===null){var m=a.alternate;if(m!==null){var v=m.memoizedState;if(v!==null){var _=v.dehydrated;_!==null&&Of(_)}}}}}function O1(r){var a=r.updateQueue;if(a!==null){r.updateQueue=null;var f=r.stateNode;f===null&&(f=r.stateNode=new Mb),a.forEach(function(m){var v=l4.bind(null,r,m);if(!f.has(m)){if(f.add(m),Or)if(au!==null&&iu!==null)ef(iu,au);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");m.then(v,v)}})}}function e3(r,a,f){au=f,iu=r,Vt(a),U1(a,r),Vt(a),au=null,iu=null}function Pi(r,a,f){var m=a.deletions;if(m!==null)for(var v=0;v<m.length;v++){var _=m[v];try{Jb(r,a,_)}catch(W){fn(_,a,W)}}var B=Ri();if(a.subtreeFlags&Vo)for(var F=a.child;F!==null;)Vt(F),U1(F,r),F=F.sibling;Vt(B)}function U1(r,a,f){var m=r.alternate,v=r.flags;switch(r.tag){case I:case le:case ie:case ae:{if(Pi(a,r),ls(r),v&Ut){try{Ni(ts|or,r,r.return),Do(ts|or,r)}catch(yt){fn(r,r.return,yt)}if(r.mode&tn){try{is(),Ni(lr|or,r,r.return)}catch(yt){fn(r,r.return,yt)}as(r)}else try{Ni(lr|or,r,r.return)}catch(yt){fn(r,r.return,yt)}}return}case V:{Pi(a,r),ls(r),v&As&&m!==null&&su(m,m.return);return}case X:{if(Pi(a,r),ls(r),v&As&&m!==null&&su(m,m.return),qr){if(r.flags&Ra){var _=r.stateNode;try{Ta(_)}catch(yt){fn(r,r.return,yt)}}if(v&Ut){var B=r.stateNode;if(B!=null){var F=r.memoizedProps,W=m!==null?m.memoizedProps:F,J=r.type,se=r.updateQueue;if(r.updateQueue=null,se!==null)try{Gu(B,se,J,W,F,r)}catch(yt){fn(r,r.return,yt)}}}}return}case he:{if(Pi(a,r),ls(r),v&Ut&&qr){if(r.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var ve=r.stateNode,_e=r.memoizedProps,ke=m!==null?m.memoizedProps:_e;try{wA(ve,ke,_e)}catch(yt){fn(r,r.return,yt)}}return}case q:{if(Pi(a,r),ls(r),v&Ut){if(qr&&_r&&m!==null){var Me=m.memoizedState;if(Me.isDehydrated)try{If(a.containerInfo)}catch(yt){fn(r,r.return,yt)}}if(Ql){var Be=a.containerInfo,lt=a.pendingChildren;try{ji(Be,lt)}catch(yt){fn(r,r.return,yt)}}}return}case Y:{if(Pi(a,r),ls(r),v&Ut&&Ql){var bt=r.stateNode,mt=bt.containerInfo,cn=bt.pendingChildren;try{ji(mt,cn)}catch(yt){fn(r,r.return,yt)}}return}case re:{Pi(a,r),ls(r);var qt=r.child;if(qt.flags&ms){var Se=qt.stateNode,De=qt.memoizedState,be=De!==null;if(Se.isHidden=be,be){var He=qt.alternate!==null&&qt.alternate.memoizedState!==null;He||Y3()}}if(v&Ut){try{Zb(r)}catch(yt){fn(r,r.return,yt)}O1(r)}return}case je:{var ut=m!==null&&m.memoizedState!==null;if(r.mode&jt){var at=Dr;Dr=at||ut,Pi(a,r),Dr=at}else Pi(a,r);if(ls(r),v&ms){var Wt=r.stateNode,wt=r.memoizedState,en=wt!==null,Ot=r;if(Wt.isHidden=en,en&&!ut&&(Ot.mode&jt)!==At){ot=Ot;for(var yn=Ot.child;yn!==null;)ot=yn,n3(yn),yn=yn.sibling}qr&&Qb(Ot,en)}return}case Re:{Pi(a,r),ls(r),v&Ut&&O1(r);return}case Ne:return;default:{Pi(a,r),ls(r);return}}}function ls(r){var a=r.flags;if(a&un){try{Kb(r)}catch(f){fn(r,r.return,f)}r.flags&=~un}a&qa&&(r.flags&=~qa)}function t3(r,a,f){au=f,iu=a,ot=r,j1(r,a,f),au=null,iu=null}function j1(r,a,f){for(var m=(r.mode&jt)!==At;ot!==null;){var v=ot,_=v.child;if(v.tag===je&&m){var B=v.memoizedState!==null,F=B||op;if(F){cm(r,a,f);continue}else{var W=v.alternate,J=W!==null&&W.memoizedState!==null,se=J||Dr,ve=op,_e=Dr;op=F,Dr=se,Dr&&!_e&&(ot=v,r3(v));for(var ke=_;ke!==null;)ot=ke,j1(ke,a,f),ke=ke.sibling;ot=v,op=ve,Dr=_e,cm(r,a,f);continue}}(v.subtreeFlags&qo)!==st&&_!==null?(_.return=v,ot=_):cm(r,a,f)}}function cm(r,a,f){for(;ot!==null;){var m=ot;if((m.flags&qo)!==st){var v=m.alternate;Vt(m);try{Wb(a,v,m,f)}catch(B){fn(m,m.return,B)}Pt()}if(m===r){ot=null;return}var _=m.sibling;if(_!==null){_.return=m.return,ot=_;return}ot=m.return}}function n3(r){for(;ot!==null;){var a=ot,f=a.child;switch(a.tag){case I:case le:case ie:case ae:{if(a.mode&tn)try{is(),Ni(lr,a,a.return)}finally{as(a)}else Ni(lr,a,a.return);break}case V:{su(a,a.return);var m=a.stateNode;typeof m.componentWillUnmount=="function"&&im(a,a.return,m);break}case X:{su(a,a.return);break}case je:{var v=a.memoizedState!==null;if(v){G1(r);continue}break}}f!==null?(f.return=a,ot=f):G1(r)}}function G1(r){for(;ot!==null;){var a=ot;if(a===r){ot=null;return}var f=a.sibling;if(f!==null){f.return=a.return,ot=f;return}ot=a.return}}function r3(r){for(;ot!==null;){var a=ot,f=a.child;if(a.tag===je){var m=a.memoizedState!==null;if(m){H1(r);continue}}f!==null?(f.return=a,ot=f):H1(r)}}function H1(r){for(;ot!==null;){var a=ot;Vt(a);try{Xb(a)}catch(m){fn(a,a.return,m)}if(Pt(),a===r){ot=null;return}var f=a.sibling;if(f!==null){f.return=a.return,ot=f;return}ot=a.return}}function a3(r,a,f,m){ot=a,i3(a,r,f,m)}function i3(r,a,f,m){for(;ot!==null;){var v=ot,_=v.child;(v.subtreeFlags&no)!==st&&_!==null?(_.return=v,ot=_):s3(r,a,f,m)}}function s3(r,a,f,m){for(;ot!==null;){var v=ot;if((v.flags&Ai)!==st){Vt(v);try{o3(a,v,f,m)}catch(B){fn(v,v.return,B)}Pt()}if(v===r){ot=null;return}var _=v.sibling;if(_!==null){_.return=v.return,ot=_;return}ot=v.return}}function o3(r,a,f,m){switch(a.tag){case I:case le:case ae:{if(a.mode&tn){R0();try{Do(Rr|or,a)}finally{E0(a)}}else Do(Rr|or,a);break}}}function l3(r){ot=r,c3()}function c3(){for(;ot!==null;){var r=ot,a=r.child;if((ot.flags&Ea)!==st){var f=r.deletions;if(f!==null){for(var m=0;m<f.length;m++){var v=f[m];ot=v,f3(v,r)}{var _=r.alternate;if(_!==null){var B=_.child;if(B!==null){_.child=null;do{var F=B.sibling;B.sibling=null,B=F}while(B!==null)}}}ot=r}}(r.subtreeFlags&no)!==st&&a!==null?(a.return=r,ot=a):u3()}}function u3(){for(;ot!==null;){var r=ot;(r.flags&Ai)!==st&&(Vt(r),d3(r),Pt());var a=r.sibling;if(a!==null){a.return=r.return,ot=a;return}ot=r.return}}function d3(r){switch(r.tag){case I:case le:case ae:{r.mode&tn?(R0(),Ni(Rr|or,r,r.return),E0(r)):Ni(Rr|or,r,r.return);break}}}function f3(r,a){for(;ot!==null;){var f=ot;Vt(f),p3(f,a),Pt();var m=f.child;m!==null?(m.return=f,ot=m):h3(r)}}function h3(r){for(;ot!==null;){var a=ot,f=a.sibling,m=a.return;if(z1(a),a===r){ot=null;return}if(f!==null){f.return=m,ot=f;return}ot=m}}function p3(r,a){switch(r.tag){case I:case le:case ae:{r.mode&tn?(R0(),Ni(Rr,r,a),E0(r)):Ni(Rr,r,a);break}}}function A3(r){switch(r.tag){case I:case le:case ae:{try{Do(lr|or,r)}catch(f){fn(r,r.return,f)}break}case V:{var a=r.stateNode;try{a.componentDidMount()}catch(f){fn(r,r.return,f)}break}}}function m3(r){switch(r.tag){case I:case le:case ae:{try{Do(Rr|or,r)}catch(a){fn(r,r.return,a)}break}}}function g3(r){switch(r.tag){case I:case le:case ae:{try{Ni(lr|or,r,r.return)}catch(f){fn(r,r.return,f)}break}case V:{var a=r.stateNode;typeof a.componentWillUnmount=="function"&&im(r,r.return,a);break}}}function v3(r){switch(r.tag){case I:case le:case ae:try{Ni(Rr|or,r,r.return)}catch(a){fn(r,r.return,a)}}}var cp=0,up=1,dp=2,fp=3,hp=4;if(typeof Symbol=="function"&&Symbol.for){var Wd=Symbol.for;cp=Wd("selector.component"),up=Wd("selector.has_pseudo_class"),dp=Wd("selector.role"),fp=Wd("selector.test_id"),hp=Wd("selector.text")}function y3(r){return{$$typeof:cp,value:r}}function x3(r){return{$$typeof:up,value:r}}function b3(r){return{$$typeof:dp,value:r}}function S3(r){return{$$typeof:hp,value:r}}function C3(r){return{$$typeof:fp,value:r}}function um(r){var a=Yl(r);if(a!=null){if(typeof a.memoizedProps["data-testname"]!="string")throw new Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return a}else{var f=Uu(r);if(f===null)throw new Error("Could not find React container within specified host subtree.");return f.stateNode.current}}function dm(r,a){switch(a.$$typeof){case cp:if(r.type===a.value)return!0;break;case up:return w3(r,a.value);case dp:if(r.tag===X){var f=r.stateNode;if($t(f,a.value))return!0}break;case hp:if(r.tag===X||r.tag===he){var m=SA(r);if(m!==null&&m.indexOf(a.value)>=0)return!0}break;case fp:if(r.tag===X){var v=r.memoizedProps["data-testname"];if(typeof v=="string"&&v.toLowerCase()===a.value.toLowerCase())return!0}break;default:throw new Error("Invalid selector type specified.")}return!1}function fm(r){switch(r.$$typeof){case cp:var a=et(r.value)||"Unknown";return"<"+a+">";case up:return":has("+(fm(r)||"")+")";case dp:return'[role="'+r.value+'"]';case hp:return'"'+r.value+'"';case fp:return'[data-testname="'+r.value+'"]';default:throw new Error("Invalid selector type specified.")}}function W1(r,a){for(var f=[],m=[r,0],v=0;v<m.length;){var _=m[v++],B=m[v++],F=a[B];if(!(_.tag===X&&bs(_))){for(;F!=null&&dm(_,F);)B++,F=a[B];if(B===a.length)f.push(_);else for(var W=_.child;W!==null;)m.push(W,B),W=W.sibling}}return f}function w3(r,a){for(var f=[r,0],m=0;m<f.length;){var v=f[m++],_=f[m++],B=a[_];if(!(v.tag===X&&bs(v))){for(;B!=null&&dm(v,B);)_++,B=a[_];if(_===a.length)return!0;for(var F=v.child;F!==null;)f.push(F,_),F=F.sibling}}return!1}function pp(r,a){if(!xs)throw new Error("Test selector API is not supported by this renderer.");for(var f=um(r),m=W1(f,a),v=[],_=Array.from(m),B=0;B<_.length;){var F=_[B++];if(F.tag===X){if(bs(F))continue;v.push(F.stateNode)}else for(var W=F.child;W!==null;)_.push(W),W=W.sibling}return v}function _3(r,a){if(!xs)throw new Error("Test selector API is not supported by this renderer.");for(var f=um(r),m=0,v=[],_=[f,0],B=0;B<_.length;){var F=_[B++],W=_[B++],J=a[W];if(!(F.tag===X&&bs(F))&&(dm(F,J)&&(v.push(fm(J)),W++,W>m&&(m=W)),W<a.length))for(var se=F.child;se!==null;)_.push(se,W),se=se.sibling}if(m<a.length){for(var ve=[],_e=m;_e<a.length;_e++)ve.push(fm(a[_e]));return`findAllNodes was able to match part of the selector:
|
|
408
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:Z=" You returned: "+F,u("%s must not return anything besides a function, which is used for clean-up.%s",H,Z)}}}_=_.next}while(_!==v)}}function Hb(r,a){if((a.flags&Ut)!==st)switch(a.tag){case pe:{var f=a.stateNode.passiveEffectDuration,m=a.memoizedProps,v=m.id,_=m.onPostCommit,B=Yv(),F=a.alternate===null?"mount":"update";Qv()&&(F="nested-update"),typeof _=="function"&&_(v,F,f,B);var H=a.return;e:for(;H!==null;){switch(H.tag){case q:var Z=H.stateNode;Z.passiveEffectDuration+=f;break e;case pe:var ie=H.stateNode;ie.passiveEffectDuration+=f;break e}H=H.return}break}}}function Wb(r,a,f,m){if((f.flags&qo)!==st)switch(f.tag){case I:case le:case re:{if(!Dr)if(f.mode&tn)try{is(),Do(lr|or,f)}finally{as(f)}else Do(lr|or,f);break}case Y:{var v=f.stateNode;if(f.flags&Ut&&!Dr)if(a===null)if(f.type===f.elementType&&!Cl&&(v.props!==f.memoizedProps&&u("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",it(f)||"instance"),v.state!==f.memoizedState&&u("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",it(f)||"instance")),f.mode&tn)try{is(),v.componentDidMount()}finally{as(f)}else v.componentDidMount();else{var _=f.elementType===f.type?a.memoizedProps:Li(f.type,a.memoizedProps),B=a.memoizedState;if(f.type===f.elementType&&!Cl&&(v.props!==f.memoizedProps&&u("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",it(f)||"instance"),v.state!==f.memoizedState&&u("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",it(f)||"instance")),f.mode&tn)try{is(),v.componentDidUpdate(_,B,v.__reactInternalSnapshotBeforeUpdate)}finally{as(f)}else v.componentDidUpdate(_,B,v.__reactInternalSnapshotBeforeUpdate)}var F=f.updateQueue;F!==null&&(f.type===f.elementType&&!Cl&&(v.props!==f.memoizedProps&&u("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",it(f)||"instance"),v.state!==f.memoizedState&&u("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",it(f)||"instance")),vv(f,F,v));break}case q:{var H=f.updateQueue;if(H!==null){var Z=null;if(f.child!==null)switch(f.child.tag){case V:Z=Ka(f.child.stateNode);break;case Y:Z=f.child.stateNode;break}vv(f,H,Z)}break}case V:{var ie=f.stateNode;if(a===null&&f.flags&Ut){var ve=f.type,_e=f.memoizedProps;Yn(ie,ve,_e,f)}break}case ge:break;case Q:break;case pe:{{var ke=f.memoizedProps,Me=ke.onCommit,Be=ke.onRender,ut=f.stateNode.effectDuration,bt=Yv(),gt=a===null?"mount":"update";Qv()&&(gt="nested-update"),typeof Be=="function"&&Be(f.memoizedProps.id,gt,f.actualDuration,f.treeBaseDuration,f.actualStartTime,bt);{typeof Me=="function"&&Me(f.memoizedProps.id,gt,ut,bt),t4(f);var cn=f.return;e:for(;cn!==null;){switch(cn.tag){case q:var qt=cn.stateNode;qt.effectDuration+=ut;break e;case pe:var Se=cn.stateNode;Se.effectDuration+=ut;break e}cn=cn.return}}}break}case J:{$b(r,f);break}case Re:case ee:case Ne:case Ue:case ot:case pt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Dr||f.flags&As&&M1(f)}function Xb(r){switch(r.tag){case I:case le:case re:{if(r.mode&tn)try{is(),N1(r,r.return)}finally{as(r)}else N1(r,r.return);break}case Y:{var a=r.stateNode;typeof a.componentDidMount=="function"&&Ib(r,r.return,a),B1(r,r.return);break}case V:{B1(r,r.return);break}}}function Qb(r,a){var f=null;if(qr)for(var m=r;;){if(m.tag===V){if(f===null){f=m;try{var v=m.stateNode;a?RA(v):Da(m.stateNode,m.memoizedProps)}catch(B){fn(r,r.return,B)}}}else if(m.tag===ge){if(f===null)try{var _=m.stateNode;a?TA(_):vi(_,m.memoizedProps)}catch(B){fn(r,r.return,B)}}else if(!((m.tag===Ue||m.tag===ot)&&m.memoizedState!==null&&m!==r)){if(m.child!==null){m.child.return=m,m=m.child;continue}}if(m===r)return;for(;m.sibling===null;){if(m.return===null||m.return===r)return;f===m&&(f=null),m=m.return}f===m&&(f=null),m.sibling.return=m.return,m=m.sibling}}function M1(r){var a=r.ref;if(a!==null){var f=r.stateNode,m;switch(r.tag){case V:m=Ka(f);break;default:m=f}if(typeof a=="function"){var v;if(r.mode&tn)try{is(),v=a(m)}finally{as(r)}else v=a(m);typeof v=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",it(r))}else a.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",it(r)),a.current=m}}function Yb(r){var a=r.alternate;a!==null&&(a.return=null),r.return=null}function z1(r){var a=r.alternate;a!==null&&(r.alternate=null,z1(a));{if(r.child=null,r.deletions=null,r.sibling=null,r.tag===V){var f=r.stateNode;f!==null&&xA(f)}r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}}function Vb(r){if(Ql){var a=r.stateNode,f=a.containerInfo,m=Xu(f);ji(f,m)}}function qb(r){for(var a=r.return;a!==null;){if(F1(a))return a;a=a.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function F1(r){return r.tag===V||r.tag===q||r.tag===Q}function I1(r){var a=r;e:for(;;){for(;a.sibling===null;){if(a.return===null||F1(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==V&&a.tag!==ge&&a.tag!==Ee;){if(a.flags&un||a.child===null||a.tag===Q)continue e;a.child.return=a,a=a.child}if(!(a.flags&un))return a.stateNode}}function Kb(r){if(qr){var a=qb(r);switch(a.tag){case V:{var f=a.stateNode;a.flags&Ra&&(Ta(f),a.flags&=~Ra);var m=I1(r);om(r,m,f);break}case q:case Q:{var v=a.stateNode.containerInfo,_=I1(r);sm(r,_,v);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function sm(r,a,f){var m=r.tag,v=m===V||m===ge;if(v){var _=r.stateNode;a?Hu(f,_,a):CA(f,_)}else if(m!==Q){var B=r.child;if(B!==null){sm(B,a,f);for(var F=B.sibling;F!==null;)sm(F,a,f),F=F.sibling}}}function om(r,a,f){var m=r.tag,v=m===V||m===ge;if(v){var _=r.stateNode;a?_A(f,_,a):zf(f,_)}else if(m!==Q){var B=r.child;if(B!==null){om(B,a,f);for(var F=B.sibling;F!==null;)om(F,a,f),F=F.sibling}}}var Lr=null,Bi=!1;function Jb(r,a,f){if(qr){var m=a;e:for(;m!==null;){switch(m.tag){case V:{Lr=m.stateNode,Bi=!1;break e}case q:{Lr=m.stateNode.containerInfo,Bi=!0;break e}case Q:{Lr=m.stateNode.containerInfo,Bi=!0;break e}}m=m.return}if(Lr===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");lm(r,a,f),Lr=null,Bi=!1}else lm(r,a,f);Yb(f)}function os(r,a,f){for(var m=f.child;m!==null;)lm(r,a,m),m=m.sibling}function lm(r,a,f){switch(hd(f),f.tag){case V:Dr||su(f,a);case ge:{if(qr){var m=Lr,v=Bi;Lr=null,os(r,a,f),Lr=m,Bi=v,Lr!==null&&(Bi?ql(Lr,f.stateNode):EA(Lr,f.stateNode))}else os(r,a,f);return}case Ee:{qr&&Lr!==null&&(Bi?qu(Lr,f.stateNode):Vu(Lr,f.stateNode));return}case Q:{if(qr){var _=Lr,B=Bi;Lr=f.stateNode.containerInfo,Bi=!0,os(r,a,f),Lr=_,Bi=B}else Vb(f),os(r,a,f);return}case I:case le:case ae:case re:{if(!Dr){var F=f.updateQueue;if(F!==null){var H=F.lastEffect;if(H!==null){var Z=H.next,ie=Z;do{var ve=ie,_e=ve.destroy,ke=ve.tag;_e!==void 0&&((ke&ts)!==xa?lp(f,a,_e):(ke&lr)!==xa&&(Fs(f),f.mode&tn?(is(),lp(f,a,_e),as(f)):lp(f,a,_e),On())),ie=ie.next}while(ie!==Z)}}}os(r,a,f);return}case Y:{if(!Dr){su(f,a);var Me=f.stateNode;typeof Me.componentWillUnmount=="function"&&im(f,a,Me)}os(r,a,f);return}case Ne:{os(r,a,f);return}case Ue:{if(f.mode&jt){var Be=Dr;Dr=Be||f.memoizedState!==null,os(r,a,f),Dr=Be}else os(r,a,f);break}default:{os(r,a,f);return}}}function Zb(r){r.memoizedState}function $b(r,a){if(_r){var f=a.memoizedState;if(f===null){var m=a.alternate;if(m!==null){var v=m.memoizedState;if(v!==null){var _=v.dehydrated;_!==null&&Of(_)}}}}}function O1(r){var a=r.updateQueue;if(a!==null){r.updateQueue=null;var f=r.stateNode;f===null&&(f=r.stateNode=new Mb),a.forEach(function(m){var v=l4.bind(null,r,m);if(!f.has(m)){if(f.add(m),Or)if(au!==null&&iu!==null)ef(iu,au);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");m.then(v,v)}})}}function e3(r,a,f){au=f,iu=r,Vt(a),U1(a,r),Vt(a),au=null,iu=null}function Pi(r,a,f){var m=a.deletions;if(m!==null)for(var v=0;v<m.length;v++){var _=m[v];try{Jb(r,a,_)}catch(H){fn(_,a,H)}}var B=Ri();if(a.subtreeFlags&Vo)for(var F=a.child;F!==null;)Vt(F),U1(F,r),F=F.sibling;Vt(B)}function U1(r,a,f){var m=r.alternate,v=r.flags;switch(r.tag){case I:case le:case ae:case re:{if(Pi(a,r),ls(r),v&Ut){try{Ni(ts|or,r,r.return),Do(ts|or,r)}catch(yt){fn(r,r.return,yt)}if(r.mode&tn){try{is(),Ni(lr|or,r,r.return)}catch(yt){fn(r,r.return,yt)}as(r)}else try{Ni(lr|or,r,r.return)}catch(yt){fn(r,r.return,yt)}}return}case Y:{Pi(a,r),ls(r),v&As&&m!==null&&su(m,m.return);return}case V:{if(Pi(a,r),ls(r),v&As&&m!==null&&su(m,m.return),qr){if(r.flags&Ra){var _=r.stateNode;try{Ta(_)}catch(yt){fn(r,r.return,yt)}}if(v&Ut){var B=r.stateNode;if(B!=null){var F=r.memoizedProps,H=m!==null?m.memoizedProps:F,Z=r.type,ie=r.updateQueue;if(r.updateQueue=null,ie!==null)try{Gu(B,ie,Z,H,F,r)}catch(yt){fn(r,r.return,yt)}}}}return}case ge:{if(Pi(a,r),ls(r),v&Ut&&qr){if(r.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var ve=r.stateNode,_e=r.memoizedProps,ke=m!==null?m.memoizedProps:_e;try{wA(ve,ke,_e)}catch(yt){fn(r,r.return,yt)}}return}case q:{if(Pi(a,r),ls(r),v&Ut){if(qr&&_r&&m!==null){var Me=m.memoizedState;if(Me.isDehydrated)try{If(a.containerInfo)}catch(yt){fn(r,r.return,yt)}}if(Ql){var Be=a.containerInfo,ut=a.pendingChildren;try{ji(Be,ut)}catch(yt){fn(r,r.return,yt)}}}return}case Q:{if(Pi(a,r),ls(r),v&Ut&&Ql){var bt=r.stateNode,gt=bt.containerInfo,cn=bt.pendingChildren;try{ji(gt,cn)}catch(yt){fn(r,r.return,yt)}}return}case J:{Pi(a,r),ls(r);var qt=r.child;if(qt.flags&ms){var Se=qt.stateNode,De=qt.memoizedState,be=De!==null;if(Se.isHidden=be,be){var He=qt.alternate!==null&&qt.alternate.memoizedState!==null;He||Y3()}}if(v&Ut){try{Zb(r)}catch(yt){fn(r,r.return,yt)}O1(r)}return}case Ue:{var ft=m!==null&&m.memoizedState!==null;if(r.mode&jt){var at=Dr;Dr=at||ft,Pi(a,r),Dr=at}else Pi(a,r);if(ls(r),v&ms){var Wt=r.stateNode,wt=r.memoizedState,en=wt!==null,Ot=r;if(Wt.isHidden=en,en&&!ft&&(Ot.mode&jt)!==mt){ct=Ot;for(var yn=Ot.child;yn!==null;)ct=yn,n3(yn),yn=yn.sibling}qr&&Qb(Ot,en)}return}case Re:{Pi(a,r),ls(r),v&Ut&&O1(r);return}case Ne:return;default:{Pi(a,r),ls(r);return}}}function ls(r){var a=r.flags;if(a&un){try{Kb(r)}catch(f){fn(r,r.return,f)}r.flags&=~un}a&qa&&(r.flags&=~qa)}function t3(r,a,f){au=f,iu=a,ct=r,j1(r,a,f),au=null,iu=null}function j1(r,a,f){for(var m=(r.mode&jt)!==mt;ct!==null;){var v=ct,_=v.child;if(v.tag===Ue&&m){var B=v.memoizedState!==null,F=B||op;if(F){cm(r,a,f);continue}else{var H=v.alternate,Z=H!==null&&H.memoizedState!==null,ie=Z||Dr,ve=op,_e=Dr;op=F,Dr=ie,Dr&&!_e&&(ct=v,r3(v));for(var ke=_;ke!==null;)ct=ke,j1(ke,a,f),ke=ke.sibling;ct=v,op=ve,Dr=_e,cm(r,a,f);continue}}(v.subtreeFlags&qo)!==st&&_!==null?(_.return=v,ct=_):cm(r,a,f)}}function cm(r,a,f){for(;ct!==null;){var m=ct;if((m.flags&qo)!==st){var v=m.alternate;Vt(m);try{Wb(a,v,m,f)}catch(B){fn(m,m.return,B)}Pt()}if(m===r){ct=null;return}var _=m.sibling;if(_!==null){_.return=m.return,ct=_;return}ct=m.return}}function n3(r){for(;ct!==null;){var a=ct,f=a.child;switch(a.tag){case I:case le:case ae:case re:{if(a.mode&tn)try{is(),Ni(lr,a,a.return)}finally{as(a)}else Ni(lr,a,a.return);break}case Y:{su(a,a.return);var m=a.stateNode;typeof m.componentWillUnmount=="function"&&im(a,a.return,m);break}case V:{su(a,a.return);break}case Ue:{var v=a.memoizedState!==null;if(v){G1(r);continue}break}}f!==null?(f.return=a,ct=f):G1(r)}}function G1(r){for(;ct!==null;){var a=ct;if(a===r){ct=null;return}var f=a.sibling;if(f!==null){f.return=a.return,ct=f;return}ct=a.return}}function r3(r){for(;ct!==null;){var a=ct,f=a.child;if(a.tag===Ue){var m=a.memoizedState!==null;if(m){H1(r);continue}}f!==null?(f.return=a,ct=f):H1(r)}}function H1(r){for(;ct!==null;){var a=ct;Vt(a);try{Xb(a)}catch(m){fn(a,a.return,m)}if(Pt(),a===r){ct=null;return}var f=a.sibling;if(f!==null){f.return=a.return,ct=f;return}ct=a.return}}function a3(r,a,f,m){ct=a,i3(a,r,f,m)}function i3(r,a,f,m){for(;ct!==null;){var v=ct,_=v.child;(v.subtreeFlags&no)!==st&&_!==null?(_.return=v,ct=_):s3(r,a,f,m)}}function s3(r,a,f,m){for(;ct!==null;){var v=ct;if((v.flags&Ai)!==st){Vt(v);try{o3(a,v,f,m)}catch(B){fn(v,v.return,B)}Pt()}if(v===r){ct=null;return}var _=v.sibling;if(_!==null){_.return=v.return,ct=_;return}ct=v.return}}function o3(r,a,f,m){switch(a.tag){case I:case le:case re:{if(a.mode&tn){R0();try{Do(Rr|or,a)}finally{E0(a)}}else Do(Rr|or,a);break}}}function l3(r){ct=r,c3()}function c3(){for(;ct!==null;){var r=ct,a=r.child;if((ct.flags&Ea)!==st){var f=r.deletions;if(f!==null){for(var m=0;m<f.length;m++){var v=f[m];ct=v,f3(v,r)}{var _=r.alternate;if(_!==null){var B=_.child;if(B!==null){_.child=null;do{var F=B.sibling;B.sibling=null,B=F}while(B!==null)}}}ct=r}}(r.subtreeFlags&no)!==st&&a!==null?(a.return=r,ct=a):u3()}}function u3(){for(;ct!==null;){var r=ct;(r.flags&Ai)!==st&&(Vt(r),d3(r),Pt());var a=r.sibling;if(a!==null){a.return=r.return,ct=a;return}ct=r.return}}function d3(r){switch(r.tag){case I:case le:case re:{r.mode&tn?(R0(),Ni(Rr|or,r,r.return),E0(r)):Ni(Rr|or,r,r.return);break}}}function f3(r,a){for(;ct!==null;){var f=ct;Vt(f),p3(f,a),Pt();var m=f.child;m!==null?(m.return=f,ct=m):h3(r)}}function h3(r){for(;ct!==null;){var a=ct,f=a.sibling,m=a.return;if(z1(a),a===r){ct=null;return}if(f!==null){f.return=m,ct=f;return}ct=m}}function p3(r,a){switch(r.tag){case I:case le:case re:{r.mode&tn?(R0(),Ni(Rr,r,a),E0(r)):Ni(Rr,r,a);break}}}function A3(r){switch(r.tag){case I:case le:case re:{try{Do(lr|or,r)}catch(f){fn(r,r.return,f)}break}case Y:{var a=r.stateNode;try{a.componentDidMount()}catch(f){fn(r,r.return,f)}break}}}function m3(r){switch(r.tag){case I:case le:case re:{try{Do(Rr|or,r)}catch(a){fn(r,r.return,a)}break}}}function g3(r){switch(r.tag){case I:case le:case re:{try{Ni(lr|or,r,r.return)}catch(f){fn(r,r.return,f)}break}case Y:{var a=r.stateNode;typeof a.componentWillUnmount=="function"&&im(r,r.return,a);break}}}function v3(r){switch(r.tag){case I:case le:case re:try{Ni(Rr|or,r,r.return)}catch(a){fn(r,r.return,a)}}}var cp=0,up=1,dp=2,fp=3,hp=4;if(typeof Symbol=="function"&&Symbol.for){var Wd=Symbol.for;cp=Wd("selector.component"),up=Wd("selector.has_pseudo_class"),dp=Wd("selector.role"),fp=Wd("selector.test_id"),hp=Wd("selector.text")}function y3(r){return{$$typeof:cp,value:r}}function x3(r){return{$$typeof:up,value:r}}function b3(r){return{$$typeof:dp,value:r}}function S3(r){return{$$typeof:hp,value:r}}function C3(r){return{$$typeof:fp,value:r}}function um(r){var a=Yl(r);if(a!=null){if(typeof a.memoizedProps["data-testname"]!="string")throw new Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return a}else{var f=Uu(r);if(f===null)throw new Error("Could not find React container within specified host subtree.");return f.stateNode.current}}function dm(r,a){switch(a.$$typeof){case cp:if(r.type===a.value)return!0;break;case up:return w3(r,a.value);case dp:if(r.tag===V){var f=r.stateNode;if($t(f,a.value))return!0}break;case hp:if(r.tag===V||r.tag===ge){var m=SA(r);if(m!==null&&m.indexOf(a.value)>=0)return!0}break;case fp:if(r.tag===V){var v=r.memoizedProps["data-testname"];if(typeof v=="string"&&v.toLowerCase()===a.value.toLowerCase())return!0}break;default:throw new Error("Invalid selector type specified.")}return!1}function fm(r){switch(r.$$typeof){case cp:var a=et(r.value)||"Unknown";return"<"+a+">";case up:return":has("+(fm(r)||"")+")";case dp:return'[role="'+r.value+'"]';case hp:return'"'+r.value+'"';case fp:return'[data-testname="'+r.value+'"]';default:throw new Error("Invalid selector type specified.")}}function W1(r,a){for(var f=[],m=[r,0],v=0;v<m.length;){var _=m[v++],B=m[v++],F=a[B];if(!(_.tag===V&&bs(_))){for(;F!=null&&dm(_,F);)B++,F=a[B];if(B===a.length)f.push(_);else for(var H=_.child;H!==null;)m.push(H,B),H=H.sibling}}return f}function w3(r,a){for(var f=[r,0],m=0;m<f.length;){var v=f[m++],_=f[m++],B=a[_];if(!(v.tag===V&&bs(v))){for(;B!=null&&dm(v,B);)_++,B=a[_];if(_===a.length)return!0;for(var F=v.child;F!==null;)f.push(F,_),F=F.sibling}}return!1}function pp(r,a){if(!xs)throw new Error("Test selector API is not supported by this renderer.");for(var f=um(r),m=W1(f,a),v=[],_=Array.from(m),B=0;B<_.length;){var F=_[B++];if(F.tag===V){if(bs(F))continue;v.push(F.stateNode)}else for(var H=F.child;H!==null;)_.push(H),H=H.sibling}return v}function _3(r,a){if(!xs)throw new Error("Test selector API is not supported by this renderer.");for(var f=um(r),m=0,v=[],_=[f,0],B=0;B<_.length;){var F=_[B++],H=_[B++],Z=a[H];if(!(F.tag===V&&bs(F))&&(dm(F,Z)&&(v.push(fm(Z)),H++,H>m&&(m=H)),H<a.length))for(var ie=F.child;ie!==null;)_.push(ie,H),ie=ie.sibling}if(m<a.length){for(var ve=[],_e=m;_e<a.length;_e++)ve.push(fm(a[_e]));return`findAllNodes was able to match part of the selector:
|
|
409
409
|
`+(" "+v.join(" > ")+`
|
|
410
410
|
|
|
411
411
|
`)+`No matching component was found for:
|
|
412
|
-
`+(" "+ve.join(" > "))}return null}function E3(r,a){if(!xs)throw new Error("Test selector API is not supported by this renderer.");for(var f=pp(r,a),m=[],v=0;v<f.length;v++)m.push(Jo(f[v]));for(var _=m.length-1;_>0;_--)for(var B=m[_],F=B.x,W=F+B.width,J=B.y,se=J+B.height,ve=_-1;ve>=0;ve--)if(_!==ve){var _e=m[ve],ke=_e.x,Me=ke+_e.width,Be=_e.y,lt=Be+_e.height;if(F>=ke&&J>=Be&&W<=Me&&se<=lt){m.splice(_,1);break}else if(F===ke&&B.width===_e.width&&!(lt<J)&&!(Be>se)){Be>J&&(_e.height+=Be-J,_e.y=J),lt<se&&(_e.height=se-Be),m.splice(_,1);break}else if(J===Be&&B.height===_e.height&&!(Me<F)&&!(ke>W)){ke>F&&(_e.width+=ke-F,_e.x=F),Me<W&&(_e.width=W-ke),m.splice(_,1);break}}return m}function R3(r,a){if(!xs)throw new Error("Test selector API is not supported by this renderer.");for(var f=um(r),m=W1(f,a),v=Array.from(m),_=0;_<v.length;){var B=v[_++];if(!bs(B)){if(B.tag===X){var F=B.stateNode;if(Mf(F))return!0}for(var W=B.child;W!==null;)v.push(W),W=W.sibling}}return!1}var Ap=[];function T3(){xs&&Ap.forEach(function(r){return r()})}function D3(r,a,f,m){if(!xs)throw new Error("Test selector API is not supported by this renderer.");var v=pp(r,a),_=ju(v,f,m),B=_.disconnect,F=_.observe,W=_.unobserve,J=function(){var se=pp(r,a);v.forEach(function(ve){se.indexOf(ve)<0&&W(ve)}),se.forEach(function(ve){v.indexOf(ve)<0&&F(ve)})};return Ap.push(J),{disconnect:function(){var se=Ap.indexOf(J);se>=0&&Ap.splice(se,1),B()}}}var L3=c.ReactCurrentActQueue;function k3(r){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,f=typeof jest<"u";return yA&&f&&a!==!1}}function X1(){{var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!r&&L3.current!==null&&u("The current testing environment is not configured to support act(...)"),r}}var N3=Math.ceil,hm=c.ReactCurrentDispatcher,pm=c.ReactCurrentOwner,Bn=c.ReactCurrentBatchConfig,Mi=c.ReactCurrentActQueue,$n=0,Am=1,kr=2,ci=4,Xs=0,Xd=1,wl=2,mp=3,Qd=4,Q1=5,mm=6,Ft=$n,ca=null,Pn=null,dr=Pe,cs=Pe,gm=rn(Pe),fr=Xs,Yd=null,gp=Pe,Vd=Pe,vp=Pe,qd=null,ba=null,vm=0,Y1=500,V1=1/0,B3=500,Qs=null;function ou(){V1=zn()+B3}function q1(){return V1}var yp=!1,ym=null,lu=null,_l=!1,Lo=null,Kd=Pe,xm=[],bm=null,P3=50,Jd=0,Sm=null,Cm=!1,xp=!1,M3=50,cu=0,bp=null,Zd=dn,Sp=Pe,K1=!1;function Cp(){return ca}function Xr(){return(Ft&(kr|ci))!==$n?zn():(Zd!==dn||(Zd=zn()),Zd)}function ko(r){var a=r.mode;if((a&jt)===At)return vt;if((Ft&kr)!==$n&&dr!==Pe)return Ao(dr);var f=N()!==E;if(f){if(Bn.transition!==null){var m=Bn.transition;m._updatedFibers||(m._updatedFibers=new Set),m._updatedFibers.add(r)}return Sp===Ln&&(Sp=Rc()),Sp}var v=Er();if(v!==Ln)return v;var _=Vl();return _}function z3(r){var a=r.mode;return(a&jt)===At?vt:Tc()}function er(r,a,f,m){u4(),K1&&u("useInsertionEffect must not schedule updates."),Cm&&(xp=!0),qi(r,f,m),(Ft&kr)!==Pe&&r===ca?h4(a):(Or&&ll(r,a,f),p4(a),r===ca&&((Ft&kr)===$n&&(Vd=Bt(Vd,f)),fr===Qd&&No(r,dr)),Sa(r,m),f===vt&&Ft===$n&&(a.mode&jt)===At&&!Mi.isBatchingLegacy&&(ou(),Al()))}function F3(r,a,f){var m=r.current;m.lanes=a,qi(r,a,f),Sa(r,f)}function I3(r){return(Ft&kr)!==$n}function Sa(r,a){var f=r.callbackNode;eh(r,a);var m=Kn(r,r===ca?dr:Pe);if(m===Pe){f!==null&&dy(f),r.callbackNode=null,r.callbackPriority=Ln;return}var v=Bs(m),_=r.callbackPriority;if(_===v&&!(Mi.current!==null&&f!==Dm)){f==null&&_!==vt&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}f!=null&&dy(f);var B;if(v===vt)r.tag===ti?(Mi.isBatchingLegacy!==null&&(Mi.didScheduleLegacyUpdate=!0),jc($1.bind(null,r))):Uc($1.bind(null,r)),bA?Mi.current!==null?Mi.current.push(gn):Ou(function(){(Ft&(kr|ci))===$n&&gn()}):Dp(ul,gn),B=null;else{var F;switch(Nc(m)){case $e:F=ul;break;case ni:F=va;break;case Ps:F=Ms;break;case kc:F=Oa;break;default:F=Ms;break}B=Dp(F,J1.bind(null,r))}r.callbackPriority=v,r.callbackNode=B}function J1(r,a){if(H5(),Zd=dn,Sp=Pe,(Ft&(kr|ci))!==$n)throw new Error("Should not already be working.");var f=r.callbackNode,m=us();if(m&&r.callbackNode!==f)return null;var v=Kn(r,r===ca?dr:Pe);if(v===Pe)return null;var _=!po(r,v)&&!od(r,v)&&!a,B=_?Z3(r,v):Ep(r,v);if(B!==Xs){if(B===wl){var F=wc(r);F!==Pe&&(v=F,B=wm(r,F))}if(B===Xd){var W=Yd;throw El(r,Pe),No(r,v),Sa(r,zn()),W}if(B===mm)No(r,v);else{var J=!po(r,v),se=r.current.alternate;if(J&&!U3(se)){if(B=Ep(r,v),B===wl){var ve=wc(r);ve!==Pe&&(v=ve,B=wm(r,ve))}if(B===Xd){var _e=Yd;throw El(r,Pe),No(r,v),Sa(r,zn()),_e}}r.finishedWork=se,r.finishedLanes=v,O3(r,B,v)}}return Sa(r,zn()),r.callbackNode===f?J1.bind(null,r):null}function wm(r,a){var f=qd;if(Ci(r)){var m=El(r,a);m.flags|=Va,nc(r.containerInfo)}var v=Ep(r,a);if(v!==wl){var _=ba;ba=f,_!==null&&Z1(_)}return v}function Z1(r){ba===null?ba=r:ba.push.apply(ba,r)}function O3(r,a,f){switch(a){case Xs:case Xd:throw new Error("Root did not complete. This is a bug in React.");case wl:{Rl(r,ba,Qs);break}case mp:{if(No(r,f),Ec(f)&&!fy()){var m=vm+Y1-zn();if(m>10){var v=Kn(r,Pe);if(v!==Pe)break;var _=r.suspendedLanes;if(!Ir(_,f)){Xr(),go(r,_);break}r.timeoutHandle=Iu(Rl.bind(null,r,ba,Qs),m);break}}Rl(r,ba,Qs);break}case Qd:{if(No(r,f),rh(f))break;if(!fy()){var B=Zf(r,f),F=B,W=zn()-F,J=c4(W)-W;if(J>10){r.timeoutHandle=Iu(Rl.bind(null,r,ba,Qs),J);break}}Rl(r,ba,Qs);break}case Q1:{Rl(r,ba,Qs);break}default:throw new Error("Unknown root exit status.")}}function U3(r){for(var a=r;;){if(a.flags&Lu){var f=a.updateQueue;if(f!==null){var m=f.stores;if(m!==null)for(var v=0;v<m.length;v++){var _=m[v],B=_.getSnapshot,F=_.value;try{if(!xr(B(),F))return!1}catch{return!1}}}}var W=a.child;if(a.subtreeFlags&Lu&&W!==null){W.return=a,a=W;continue}if(a===r)return!0;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}return!0}function No(r,a){a=na(a,vp),a=na(a,Vd),ah(r,a)}function $1(r){if(W5(),(Ft&(kr|ci))!==$n)throw new Error("Should not already be working.");us();var a=Kn(r,Pe);if(!vr(a,vt))return Sa(r,zn()),null;var f=Ep(r,a);if(r.tag!==ti&&f===wl){var m=wc(r);m!==Pe&&(a=m,f=wm(r,m))}if(f===Xd){var v=Yd;throw El(r,Pe),No(r,a),Sa(r,zn()),v}if(f===mm)throw new Error("Root did not complete. This is a bug in React.");var _=r.current.alternate;return r.finishedWork=_,r.finishedLanes=a,Rl(r,ba,Qs),Sa(r,zn()),null}function j3(r,a){a!==Pe&&(ud(r,Bt(a,vt)),Sa(r,zn()),(Ft&(kr|ci))===$n&&(ou(),gn()))}function G3(r){var a=Er(),f=Bn.transition;try{return Bn.transition=null,kn(Ps),r()}finally{kn(a),Bn.transition=f}}function H3(r,a){var f=Ft;Ft|=Am;try{return r(a)}finally{Ft=f,Ft===$n&&!Mi.isBatchingLegacy&&(ou(),Al())}}function W3(r,a,f,m,v){var _=Er(),B=Bn.transition;try{return Bn.transition=null,kn($e),r(a,f,m,v)}finally{kn(_),Bn.transition=B,Ft===$n&&ou()}}function wp(r){Lo!==null&&Lo.tag===ti&&(Ft&(kr|ci))===$n&&us();var a=Ft;Ft|=Am;var f=Bn.transition,m=Er();try{return Bn.transition=null,kn($e),r?r():void 0}finally{kn(m),Bn.transition=f,Ft=a,(Ft&(kr|ci))===$n&&gn()}}function X3(){return(Ft&(kr|ci))!==$n}function Q3(r){var a=Ft;Ft|=Am;var f=Bn.transition,m=Er();try{Bn.transition=null,kn($e),r()}finally{kn(m),Bn.transition=f,Ft=a,Ft===$n&&(ou(),gn())}}function _p(r,a){Gn(gm,cs,r),cs=Bt(cs,a)}function _m(r){cs=gm.current,jn(gm,r)}function El(r,a){r.finishedWork=null,r.finishedLanes=Pe;var f=r.timeoutHandle;if(f!==Xl&&(r.timeoutHandle=Xl,Wl(f)),Pn!==null)for(var m=Pn.return;m!==null;){var v=m.alternate;E1(v,m),m=m.return}ca=r;var _=Tl(r.current,null);return Pn=_,dr=cs=a,fr=Xs,Yd=null,gp=Pe,Vd=Pe,vp=Pe,qd=null,ba=null,w5(),ue.discardPendingWarnings(),_}function ey(r,a){do{var f=Pn;try{if(wh(),Cv(),Pt(),pm.current=null,f===null||f.return===null){fr=Xd,Yd=a,Pn=null;return}if(M&&f.mode&tn&&$h(f,!0),P)if(Ji(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var m=a;Is(f,m,dr)}else fl(f,a,dr);$5(r,f.return,f,a,dr),ay(f)}catch(v){a=v,Pn===f&&f!==null?(f=f.return,Pn=f):f=Pn;continue}return}while(!0)}function ty(){var r=hm.current;return hm.current=Vh,r===null?Vh:r}function ny(r){hm.current=r}function Y3(){vm=zn()}function $d(r){gp=Bt(r,gp)}function V3(){fr===Xs&&(fr=mp)}function Em(){(fr===Xs||fr===mp||fr===wl)&&(fr=Qd),ca!==null&&(_c(gp)||_c(Vd))&&No(ca,dr)}function q3(r){fr!==Qd&&(fr=wl),qd===null?qd=[r]:qd.push(r)}function K3(){return fr===Xs}function Ep(r,a){var f=Ft;Ft|=kr;var m=ty();if(ca!==r||dr!==a){if(Or){var v=r.memoizedUpdaters;v.size>0&&(ef(r,dr),v.clear()),nr(r,a)}Qs=ih(),El(r,a)}Ic(a);do try{J3();break}catch(_){ey(r,_)}while(!0);if(wh(),Ft=f,ny(m),Pn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ai(),ca=null,dr=Pe,fr}function J3(){for(;Pn!==null;)ry(Pn)}function Z3(r,a){var f=Ft;Ft|=kr;var m=ty();if(ca!==r||dr!==a){if(Or){var v=r.memoizedUpdaters;v.size>0&&(ef(r,dr),v.clear()),nr(r,a)}Qs=ih(),ou(),El(r,a)}Ic(a);do try{$3();break}catch(_){ey(r,_)}while(!0);return wh(),ny(m),Ft=f,Pn!==null?(gd(),Xs):(ai(),ca=null,dr=Pe,fr)}function $3(){for(;Pn!==null&&!Ia();)ry(Pn)}function ry(r){var a=r.alternate;Vt(r);var f;(r.mode&tn)!==At?(_0(r),f=Rm(a,r,cs),$h(r,!0)):f=Rm(a,r,cs),Pt(),r.memoizedProps=r.pendingProps,f===null?ay(r):Pn=f,pm.current=null}function ay(r){var a=r;do{var f=a.alternate,m=a.return;if((a.flags&Yo)===st){Vt(a);var v=void 0;if((a.mode&tn)===At?v=_1(f,a,cs):(_0(a),v=_1(f,a,cs),$h(a,!1)),Pt(),v!==null){Pn=v;return}}else{var _=kb(f,a);if(_!==null){_.flags&=AA,Pn=_;return}if((a.mode&tn)!==At){$h(a,!1);for(var B=a.actualDuration,F=a.child;F!==null;)B+=F.actualDuration,F=F.sibling;a.actualDuration=B}if(m!==null)m.flags|=Yo,m.subtreeFlags=st,m.deletions=null;else{fr=mm,Pn=null;return}}var W=a.sibling;if(W!==null){Pn=W;return}a=m,Pn=a}while(a!==null);fr===Xs&&(fr=Q1)}function Rl(r,a,f){var m=Er(),v=Bn.transition;try{Bn.transition=null,kn($e),e4(r,a,f,m)}finally{Bn.transition=v,kn(m)}return null}function e4(r,a,f,m){do us();while(Lo!==null);if(d4(),(Ft&(kr|ci))!==$n)throw new Error("Should not already be working.");var v=r.finishedWork,_=r.finishedLanes;if(Ad(_),v===null)return uh(),null;if(_===Pe&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),r.finishedWork=null,r.finishedLanes=Pe,v===r.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");r.callbackNode=null,r.callbackPriority=Ln;var B=Bt(v.lanes,v.childLanes);yr(r,B),r===ca&&(ca=null,Pn=null,dr=Pe),((v.subtreeFlags&no)!==st||(v.flags&no)!==st)&&(_l||(_l=!0,bm=f,Dp(Ms,function(){return us(),null})));var F=(v.subtreeFlags&(Pu|Vo|qo|no))!==st,W=(v.flags&(Pu|Vo|qo|no))!==st;if(F||W){var J=Bn.transition;Bn.transition=null;var se=Er();kn($e);var ve=Ft;Ft|=ci,pm.current=null,Ob(r,v),Vv(),e3(r,v,_),Ar(r.containerInfo),r.current=v,Fc(_),t3(v,r,_),md(),ri(),Ft=ve,kn(se),Bn.transition=J}else r.current=v,Vv();var _e=_l;if(_l?(_l=!1,Lo=r,Kd=_):(cu=0,bp=null),B=r.pendingLanes,B===Pe&&(lu=null),_e||ly(r.current,!1),zc(v.stateNode,m),Or&&r.memoizedUpdaters.clear(),T3(),Sa(r,zn()),a!==null)for(var ke=r.onRecoverableError,Me=0;Me<a.length;Me++){var Be=a[Me],lt=Be.stack,bt=Be.digest;ke(Be.value,{componentStack:lt,digest:bt})}if(yp){yp=!1;var mt=ym;throw ym=null,mt}return vr(Kd,vt)&&r.tag!==ti&&us(),B=r.pendingLanes,vr(B,vt)?(G5(),r===Sm?Jd++:(Jd=0,Sm=r)):Jd=0,gn(),uh(),null}function us(){if(Lo!==null){var r=Nc(Kd),a=oh(Ps,r),f=Bn.transition,m=Er();try{return Bn.transition=null,kn(a),n4()}finally{kn(m),Bn.transition=f}}return!1}function t4(r){xm.push(r),_l||(_l=!0,Dp(Ms,function(){return us(),null}))}function n4(){if(Lo===null)return!1;var r=bm;bm=null;var a=Lo,f=Kd;if(Lo=null,Kd=Pe,(Ft&(kr|ci))!==$n)throw new Error("Cannot flush passive effects while already rendering.");Cm=!0,xp=!1,hl(f);var m=Ft;Ft|=ci,l3(a.current),a3(a,a.current,f,r);{var v=xm;xm=[];for(var _=0;_<v.length;_++){var B=v[_];Hb(a,B)}}Ur(),ly(a.current,!0),Ft=m,gn(),xp?a===bp?cu++:(cu=0,bp=a):cu=0,Cm=!1,xp=!1,dl(a);{var F=a.current.stateNode;F.effectDuration=0,F.passiveEffectDuration=0}return!0}function iy(r){return lu!==null&&lu.has(r)}function r4(r){lu===null?lu=new Set([r]):lu.add(r)}function a4(r){yp||(yp=!0,ym=r)}var i4=a4;function sy(r,a,f){var m=Sl(f,a),v=n1(r,m,vt),_=wo(r,v,vt),B=Xr();_!==null&&(qi(_,vt,B),Sa(_,B))}function fn(r,a,f){if(zb(f),tf(!1),r.tag===q){sy(r,r,f);return}var m=null;for(m=a;m!==null;){if(m.tag===q){sy(m,r,f);return}else if(m.tag===V){var v=m.type,_=m.stateNode;if(typeof v.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&!iy(_)){var B=Sl(f,r),F=H0(m,B,vt),W=wo(m,F,vt),J=Xr();W!==null&&(qi(W,vt,J),Sa(W,J));return}}m=m.return}u(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
412
|
+
`+(" "+ve.join(" > "))}return null}function E3(r,a){if(!xs)throw new Error("Test selector API is not supported by this renderer.");for(var f=pp(r,a),m=[],v=0;v<f.length;v++)m.push(Jo(f[v]));for(var _=m.length-1;_>0;_--)for(var B=m[_],F=B.x,H=F+B.width,Z=B.y,ie=Z+B.height,ve=_-1;ve>=0;ve--)if(_!==ve){var _e=m[ve],ke=_e.x,Me=ke+_e.width,Be=_e.y,ut=Be+_e.height;if(F>=ke&&Z>=Be&&H<=Me&&ie<=ut){m.splice(_,1);break}else if(F===ke&&B.width===_e.width&&!(ut<Z)&&!(Be>ie)){Be>Z&&(_e.height+=Be-Z,_e.y=Z),ut<ie&&(_e.height=ie-Be),m.splice(_,1);break}else if(Z===Be&&B.height===_e.height&&!(Me<F)&&!(ke>H)){ke>F&&(_e.width+=ke-F,_e.x=F),Me<H&&(_e.width=H-ke),m.splice(_,1);break}}return m}function R3(r,a){if(!xs)throw new Error("Test selector API is not supported by this renderer.");for(var f=um(r),m=W1(f,a),v=Array.from(m),_=0;_<v.length;){var B=v[_++];if(!bs(B)){if(B.tag===V){var F=B.stateNode;if(Mf(F))return!0}for(var H=B.child;H!==null;)v.push(H),H=H.sibling}}return!1}var Ap=[];function T3(){xs&&Ap.forEach(function(r){return r()})}function D3(r,a,f,m){if(!xs)throw new Error("Test selector API is not supported by this renderer.");var v=pp(r,a),_=ju(v,f,m),B=_.disconnect,F=_.observe,H=_.unobserve,Z=function(){var ie=pp(r,a);v.forEach(function(ve){ie.indexOf(ve)<0&&H(ve)}),ie.forEach(function(ve){v.indexOf(ve)<0&&F(ve)})};return Ap.push(Z),{disconnect:function(){var ie=Ap.indexOf(Z);ie>=0&&Ap.splice(ie,1),B()}}}var L3=c.ReactCurrentActQueue;function k3(r){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,f=typeof jest<"u";return yA&&f&&a!==!1}}function X1(){{var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!r&&L3.current!==null&&u("The current testing environment is not configured to support act(...)"),r}}var N3=Math.ceil,hm=c.ReactCurrentDispatcher,pm=c.ReactCurrentOwner,Bn=c.ReactCurrentBatchConfig,Mi=c.ReactCurrentActQueue,$n=0,Am=1,kr=2,ci=4,Xs=0,Xd=1,wl=2,mp=3,Qd=4,Q1=5,mm=6,Ft=$n,ca=null,Pn=null,dr=Pe,cs=Pe,gm=rn(Pe),fr=Xs,Yd=null,gp=Pe,Vd=Pe,vp=Pe,qd=null,ba=null,vm=0,Y1=500,V1=1/0,B3=500,Qs=null;function ou(){V1=zn()+B3}function q1(){return V1}var yp=!1,ym=null,lu=null,_l=!1,Lo=null,Kd=Pe,xm=[],bm=null,P3=50,Jd=0,Sm=null,Cm=!1,xp=!1,M3=50,cu=0,bp=null,Zd=dn,Sp=Pe,K1=!1;function Cp(){return ca}function Xr(){return(Ft&(kr|ci))!==$n?zn():(Zd!==dn||(Zd=zn()),Zd)}function ko(r){var a=r.mode;if((a&jt)===mt)return vt;if((Ft&kr)!==$n&&dr!==Pe)return Ao(dr);var f=N()!==E;if(f){if(Bn.transition!==null){var m=Bn.transition;m._updatedFibers||(m._updatedFibers=new Set),m._updatedFibers.add(r)}return Sp===Ln&&(Sp=Rc()),Sp}var v=Er();if(v!==Ln)return v;var _=Vl();return _}function z3(r){var a=r.mode;return(a&jt)===mt?vt:Tc()}function er(r,a,f,m){u4(),K1&&u("useInsertionEffect must not schedule updates."),Cm&&(xp=!0),qi(r,f,m),(Ft&kr)!==Pe&&r===ca?h4(a):(Or&&ll(r,a,f),p4(a),r===ca&&((Ft&kr)===$n&&(Vd=Bt(Vd,f)),fr===Qd&&No(r,dr)),Sa(r,m),f===vt&&Ft===$n&&(a.mode&jt)===mt&&!Mi.isBatchingLegacy&&(ou(),Al()))}function F3(r,a,f){var m=r.current;m.lanes=a,qi(r,a,f),Sa(r,f)}function I3(r){return(Ft&kr)!==$n}function Sa(r,a){var f=r.callbackNode;eh(r,a);var m=Kn(r,r===ca?dr:Pe);if(m===Pe){f!==null&&dy(f),r.callbackNode=null,r.callbackPriority=Ln;return}var v=Bs(m),_=r.callbackPriority;if(_===v&&!(Mi.current!==null&&f!==Dm)){f==null&&_!==vt&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}f!=null&&dy(f);var B;if(v===vt)r.tag===ti?(Mi.isBatchingLegacy!==null&&(Mi.didScheduleLegacyUpdate=!0),jc($1.bind(null,r))):Uc($1.bind(null,r)),bA?Mi.current!==null?Mi.current.push(gn):Ou(function(){(Ft&(kr|ci))===$n&&gn()}):Dp(ul,gn),B=null;else{var F;switch(Nc(m)){case $e:F=ul;break;case ni:F=va;break;case Ps:F=Ms;break;case kc:F=Oa;break;default:F=Ms;break}B=Dp(F,J1.bind(null,r))}r.callbackPriority=v,r.callbackNode=B}function J1(r,a){if(H5(),Zd=dn,Sp=Pe,(Ft&(kr|ci))!==$n)throw new Error("Should not already be working.");var f=r.callbackNode,m=us();if(m&&r.callbackNode!==f)return null;var v=Kn(r,r===ca?dr:Pe);if(v===Pe)return null;var _=!po(r,v)&&!od(r,v)&&!a,B=_?Z3(r,v):Ep(r,v);if(B!==Xs){if(B===wl){var F=wc(r);F!==Pe&&(v=F,B=wm(r,F))}if(B===Xd){var H=Yd;throw El(r,Pe),No(r,v),Sa(r,zn()),H}if(B===mm)No(r,v);else{var Z=!po(r,v),ie=r.current.alternate;if(Z&&!U3(ie)){if(B=Ep(r,v),B===wl){var ve=wc(r);ve!==Pe&&(v=ve,B=wm(r,ve))}if(B===Xd){var _e=Yd;throw El(r,Pe),No(r,v),Sa(r,zn()),_e}}r.finishedWork=ie,r.finishedLanes=v,O3(r,B,v)}}return Sa(r,zn()),r.callbackNode===f?J1.bind(null,r):null}function wm(r,a){var f=qd;if(Ci(r)){var m=El(r,a);m.flags|=Va,nc(r.containerInfo)}var v=Ep(r,a);if(v!==wl){var _=ba;ba=f,_!==null&&Z1(_)}return v}function Z1(r){ba===null?ba=r:ba.push.apply(ba,r)}function O3(r,a,f){switch(a){case Xs:case Xd:throw new Error("Root did not complete. This is a bug in React.");case wl:{Rl(r,ba,Qs);break}case mp:{if(No(r,f),Ec(f)&&!fy()){var m=vm+Y1-zn();if(m>10){var v=Kn(r,Pe);if(v!==Pe)break;var _=r.suspendedLanes;if(!Ir(_,f)){Xr(),go(r,_);break}r.timeoutHandle=Iu(Rl.bind(null,r,ba,Qs),m);break}}Rl(r,ba,Qs);break}case Qd:{if(No(r,f),rh(f))break;if(!fy()){var B=Zf(r,f),F=B,H=zn()-F,Z=c4(H)-H;if(Z>10){r.timeoutHandle=Iu(Rl.bind(null,r,ba,Qs),Z);break}}Rl(r,ba,Qs);break}case Q1:{Rl(r,ba,Qs);break}default:throw new Error("Unknown root exit status.")}}function U3(r){for(var a=r;;){if(a.flags&Lu){var f=a.updateQueue;if(f!==null){var m=f.stores;if(m!==null)for(var v=0;v<m.length;v++){var _=m[v],B=_.getSnapshot,F=_.value;try{if(!xr(B(),F))return!1}catch{return!1}}}}var H=a.child;if(a.subtreeFlags&Lu&&H!==null){H.return=a,a=H;continue}if(a===r)return!0;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}return!0}function No(r,a){a=na(a,vp),a=na(a,Vd),ah(r,a)}function $1(r){if(W5(),(Ft&(kr|ci))!==$n)throw new Error("Should not already be working.");us();var a=Kn(r,Pe);if(!vr(a,vt))return Sa(r,zn()),null;var f=Ep(r,a);if(r.tag!==ti&&f===wl){var m=wc(r);m!==Pe&&(a=m,f=wm(r,m))}if(f===Xd){var v=Yd;throw El(r,Pe),No(r,a),Sa(r,zn()),v}if(f===mm)throw new Error("Root did not complete. This is a bug in React.");var _=r.current.alternate;return r.finishedWork=_,r.finishedLanes=a,Rl(r,ba,Qs),Sa(r,zn()),null}function j3(r,a){a!==Pe&&(ud(r,Bt(a,vt)),Sa(r,zn()),(Ft&(kr|ci))===$n&&(ou(),gn()))}function G3(r){var a=Er(),f=Bn.transition;try{return Bn.transition=null,kn(Ps),r()}finally{kn(a),Bn.transition=f}}function H3(r,a){var f=Ft;Ft|=Am;try{return r(a)}finally{Ft=f,Ft===$n&&!Mi.isBatchingLegacy&&(ou(),Al())}}function W3(r,a,f,m,v){var _=Er(),B=Bn.transition;try{return Bn.transition=null,kn($e),r(a,f,m,v)}finally{kn(_),Bn.transition=B,Ft===$n&&ou()}}function wp(r){Lo!==null&&Lo.tag===ti&&(Ft&(kr|ci))===$n&&us();var a=Ft;Ft|=Am;var f=Bn.transition,m=Er();try{return Bn.transition=null,kn($e),r?r():void 0}finally{kn(m),Bn.transition=f,Ft=a,(Ft&(kr|ci))===$n&&gn()}}function X3(){return(Ft&(kr|ci))!==$n}function Q3(r){var a=Ft;Ft|=Am;var f=Bn.transition,m=Er();try{Bn.transition=null,kn($e),r()}finally{kn(m),Bn.transition=f,Ft=a,Ft===$n&&(ou(),gn())}}function _p(r,a){Gn(gm,cs,r),cs=Bt(cs,a)}function _m(r){cs=gm.current,jn(gm,r)}function El(r,a){r.finishedWork=null,r.finishedLanes=Pe;var f=r.timeoutHandle;if(f!==Xl&&(r.timeoutHandle=Xl,Wl(f)),Pn!==null)for(var m=Pn.return;m!==null;){var v=m.alternate;E1(v,m),m=m.return}ca=r;var _=Tl(r.current,null);return Pn=_,dr=cs=a,fr=Xs,Yd=null,gp=Pe,Vd=Pe,vp=Pe,qd=null,ba=null,w5(),ue.discardPendingWarnings(),_}function ey(r,a){do{var f=Pn;try{if(wh(),Cv(),Pt(),pm.current=null,f===null||f.return===null){fr=Xd,Yd=a,Pn=null;return}if(M&&f.mode&tn&&$h(f,!0),P)if(Ji(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var m=a;Is(f,m,dr)}else fl(f,a,dr);$5(r,f.return,f,a,dr),ay(f)}catch(v){a=v,Pn===f&&f!==null?(f=f.return,Pn=f):f=Pn;continue}return}while(!0)}function ty(){var r=hm.current;return hm.current=Vh,r===null?Vh:r}function ny(r){hm.current=r}function Y3(){vm=zn()}function $d(r){gp=Bt(r,gp)}function V3(){fr===Xs&&(fr=mp)}function Em(){(fr===Xs||fr===mp||fr===wl)&&(fr=Qd),ca!==null&&(_c(gp)||_c(Vd))&&No(ca,dr)}function q3(r){fr!==Qd&&(fr=wl),qd===null?qd=[r]:qd.push(r)}function K3(){return fr===Xs}function Ep(r,a){var f=Ft;Ft|=kr;var m=ty();if(ca!==r||dr!==a){if(Or){var v=r.memoizedUpdaters;v.size>0&&(ef(r,dr),v.clear()),nr(r,a)}Qs=ih(),El(r,a)}Ic(a);do try{J3();break}catch(_){ey(r,_)}while(!0);if(wh(),Ft=f,ny(m),Pn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ai(),ca=null,dr=Pe,fr}function J3(){for(;Pn!==null;)ry(Pn)}function Z3(r,a){var f=Ft;Ft|=kr;var m=ty();if(ca!==r||dr!==a){if(Or){var v=r.memoizedUpdaters;v.size>0&&(ef(r,dr),v.clear()),nr(r,a)}Qs=ih(),ou(),El(r,a)}Ic(a);do try{$3();break}catch(_){ey(r,_)}while(!0);return wh(),ny(m),Ft=f,Pn!==null?(gd(),Xs):(ai(),ca=null,dr=Pe,fr)}function $3(){for(;Pn!==null&&!Ia();)ry(Pn)}function ry(r){var a=r.alternate;Vt(r);var f;(r.mode&tn)!==mt?(_0(r),f=Rm(a,r,cs),$h(r,!0)):f=Rm(a,r,cs),Pt(),r.memoizedProps=r.pendingProps,f===null?ay(r):Pn=f,pm.current=null}function ay(r){var a=r;do{var f=a.alternate,m=a.return;if((a.flags&Yo)===st){Vt(a);var v=void 0;if((a.mode&tn)===mt?v=_1(f,a,cs):(_0(a),v=_1(f,a,cs),$h(a,!1)),Pt(),v!==null){Pn=v;return}}else{var _=kb(f,a);if(_!==null){_.flags&=AA,Pn=_;return}if((a.mode&tn)!==mt){$h(a,!1);for(var B=a.actualDuration,F=a.child;F!==null;)B+=F.actualDuration,F=F.sibling;a.actualDuration=B}if(m!==null)m.flags|=Yo,m.subtreeFlags=st,m.deletions=null;else{fr=mm,Pn=null;return}}var H=a.sibling;if(H!==null){Pn=H;return}a=m,Pn=a}while(a!==null);fr===Xs&&(fr=Q1)}function Rl(r,a,f){var m=Er(),v=Bn.transition;try{Bn.transition=null,kn($e),e4(r,a,f,m)}finally{Bn.transition=v,kn(m)}return null}function e4(r,a,f,m){do us();while(Lo!==null);if(d4(),(Ft&(kr|ci))!==$n)throw new Error("Should not already be working.");var v=r.finishedWork,_=r.finishedLanes;if(Ad(_),v===null)return uh(),null;if(_===Pe&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),r.finishedWork=null,r.finishedLanes=Pe,v===r.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");r.callbackNode=null,r.callbackPriority=Ln;var B=Bt(v.lanes,v.childLanes);yr(r,B),r===ca&&(ca=null,Pn=null,dr=Pe),((v.subtreeFlags&no)!==st||(v.flags&no)!==st)&&(_l||(_l=!0,bm=f,Dp(Ms,function(){return us(),null})));var F=(v.subtreeFlags&(Pu|Vo|qo|no))!==st,H=(v.flags&(Pu|Vo|qo|no))!==st;if(F||H){var Z=Bn.transition;Bn.transition=null;var ie=Er();kn($e);var ve=Ft;Ft|=ci,pm.current=null,Ob(r,v),Vv(),e3(r,v,_),Ar(r.containerInfo),r.current=v,Fc(_),t3(v,r,_),md(),ri(),Ft=ve,kn(ie),Bn.transition=Z}else r.current=v,Vv();var _e=_l;if(_l?(_l=!1,Lo=r,Kd=_):(cu=0,bp=null),B=r.pendingLanes,B===Pe&&(lu=null),_e||ly(r.current,!1),zc(v.stateNode,m),Or&&r.memoizedUpdaters.clear(),T3(),Sa(r,zn()),a!==null)for(var ke=r.onRecoverableError,Me=0;Me<a.length;Me++){var Be=a[Me],ut=Be.stack,bt=Be.digest;ke(Be.value,{componentStack:ut,digest:bt})}if(yp){yp=!1;var gt=ym;throw ym=null,gt}return vr(Kd,vt)&&r.tag!==ti&&us(),B=r.pendingLanes,vr(B,vt)?(G5(),r===Sm?Jd++:(Jd=0,Sm=r)):Jd=0,gn(),uh(),null}function us(){if(Lo!==null){var r=Nc(Kd),a=oh(Ps,r),f=Bn.transition,m=Er();try{return Bn.transition=null,kn(a),n4()}finally{kn(m),Bn.transition=f}}return!1}function t4(r){xm.push(r),_l||(_l=!0,Dp(Ms,function(){return us(),null}))}function n4(){if(Lo===null)return!1;var r=bm;bm=null;var a=Lo,f=Kd;if(Lo=null,Kd=Pe,(Ft&(kr|ci))!==$n)throw new Error("Cannot flush passive effects while already rendering.");Cm=!0,xp=!1,hl(f);var m=Ft;Ft|=ci,l3(a.current),a3(a,a.current,f,r);{var v=xm;xm=[];for(var _=0;_<v.length;_++){var B=v[_];Hb(a,B)}}Ur(),ly(a.current,!0),Ft=m,gn(),xp?a===bp?cu++:(cu=0,bp=a):cu=0,Cm=!1,xp=!1,dl(a);{var F=a.current.stateNode;F.effectDuration=0,F.passiveEffectDuration=0}return!0}function iy(r){return lu!==null&&lu.has(r)}function r4(r){lu===null?lu=new Set([r]):lu.add(r)}function a4(r){yp||(yp=!0,ym=r)}var i4=a4;function sy(r,a,f){var m=Sl(f,a),v=n1(r,m,vt),_=wo(r,v,vt),B=Xr();_!==null&&(qi(_,vt,B),Sa(_,B))}function fn(r,a,f){if(zb(f),tf(!1),r.tag===q){sy(r,r,f);return}var m=null;for(m=a;m!==null;){if(m.tag===q){sy(m,r,f);return}else if(m.tag===Y){var v=m.type,_=m.stateNode;if(typeof v.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&!iy(_)){var B=Sl(f,r),F=H0(m,B,vt),H=wo(m,F,vt),Z=Xr();H!==null&&(qi(H,vt,Z),Sa(H,Z));return}}m=m.return}u(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
413
413
|
|
|
414
414
|
Error message:
|
|
415
415
|
|
|
416
|
-
%s`,f)}function s4(r,a,f){var m=r.pingCache;m!==null&&m.delete(a);var v=Xr();go(r,f),A4(r),ca===r&&Ir(dr,f)&&(fr===Qd||fr===mp&&Ec(dr)&&zn()-vm<Y1?El(r,Pe):vp=Bt(vp,f)),Sa(r,v)}function oy(r,a){a===Ln&&(a=z3(r));var f=Xr(),m=oa(r,a);m!==null&&(qi(m,a,f),Sa(m,f))}function o4(r){var a=r.memoizedState,f=Ln;a!==null&&(f=a.retryLane),oy(r,f)}function l4(r,a){var f=Ln,m;switch(r.tag){case
|
|
416
|
+
%s`,f)}function s4(r,a,f){var m=r.pingCache;m!==null&&m.delete(a);var v=Xr();go(r,f),A4(r),ca===r&&Ir(dr,f)&&(fr===Qd||fr===mp&&Ec(dr)&&zn()-vm<Y1?El(r,Pe):vp=Bt(vp,f)),Sa(r,v)}function oy(r,a){a===Ln&&(a=z3(r));var f=Xr(),m=oa(r,a);m!==null&&(qi(m,a,f),Sa(m,f))}function o4(r){var a=r.memoizedState,f=Ln;a!==null&&(f=a.retryLane),oy(r,f)}function l4(r,a){var f=Ln,m;switch(r.tag){case J:m=r.stateNode;var v=r.memoizedState;v!==null&&(f=v.retryLane);break;case Re:m=r.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}m!==null&&m.delete(a),oy(r,f)}function c4(r){return r<120?120:r<480?480:r<1080?1080:r<1920?1920:r<3e3?3e3:r<4320?4320:N3(r/1960)*1960}function u4(){if(Jd>P3)throw Jd=0,Sm=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");cu>M3&&(cu=0,bp=null,u("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function d4(){ue.flushLegacyContextWarning(),ue.flushPendingUnsafeLifecycleWarnings()}function ly(r,a){Vt(r),Rp(r,Oi,g3),a&&Rp(r,Bu,v3),Rp(r,Oi,A3),a&&Rp(r,Bu,m3),Pt()}function Rp(r,a,f){for(var m=r,v=null;m!==null;){var _=m.subtreeFlags&a;m!==v&&m.child!==null&&_!==st?m=m.child:((m.flags&a)!==st&&f(m),m.sibling!==null?m=m.sibling:m=v=m.return)}}var Tp=null;function cy(r){{if((Ft&kr)!==$n||!(r.mode&jt))return;var a=r.tag;if(a!==K&&a!==q&&a!==Y&&a!==I&&a!==le&&a!==ae&&a!==re)return;var f=it(r)||"ReactComponent";if(Tp!==null){if(Tp.has(f))return;Tp.add(f)}else Tp=new Set([f]);var m=Je;try{Vt(r),u("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{m?Vt(r):Pt()}}}var Rm;{var f4=null;Rm=function(r,a,f){var m=gy(f4,a);try{return b1(r,a,f)}catch(_){if(ph()||_!==null&&typeof _=="object"&&typeof _.then=="function")throw _;if(wh(),Cv(),E1(r,a),gy(a,m),a.mode&tn&&_0(a),D1(null,b1,null,r,a,f),Pb()){var v=L1();typeof v=="object"&&v!==null&&v._suppressLogging&&typeof _=="object"&&_!==null&&!_._suppressLogging&&(_._suppressLogging=!0)}throw _}}}var uy=!1,Tm;Tm=new Set;function h4(r){if(St&&!O5())switch(r.tag){case I:case le:case re:{var a=Pn&&it(Pn)||"Unknown",f=a;if(!Tm.has(f)){Tm.add(f);var m=it(r)||"Unknown";u("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",m,a,a)}break}case Y:{uy||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),uy=!0);break}}}function ef(r,a){if(Or){var f=r.memoizedUpdaters;f.forEach(function(m){ll(r,m,a)})}}var Dm={};function Dp(r,a){{var f=Mi.current;return f!==null?(f.push(a),Dm):Bc(r,a)}}function dy(r){if(r!==Dm)return rr(r)}function fy(){return Mi.current!==null}function p4(r){{if(r.mode&jt){if(!X1())return}else if(!k3()||Ft!==$n||r.tag!==I&&r.tag!==le&&r.tag!==re)return;if(Mi.current===null){var a=Je;try{Vt(r),u(`An update to %s inside a test was not wrapped in act(...).
|
|
417
417
|
|
|
418
418
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
419
419
|
|
|
@@ -431,11 +431,11 @@ act(() => {
|
|
|
431
431
|
});
|
|
432
432
|
/* assert on the output */
|
|
433
433
|
|
|
434
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function tf(r){K1=r}var ui=null,uu=null,m4=function(r){ui=r};function du(r){{if(ui===null)return r;var a=ui(r);return a===void 0?r:a.current}}function Lm(r){return du(r)}function km(r){{if(ui===null)return r;var a=ui(r);if(a===void 0){if(r!=null&&typeof r.render=="function"){var f=du(r.render);if(r.render!==f){var m={$$typeof:
|
|
434
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function tf(r){K1=r}var ui=null,uu=null,m4=function(r){ui=r};function du(r){{if(ui===null)return r;var a=ui(r);return a===void 0?r:a.current}}function Lm(r){return du(r)}function km(r){{if(ui===null)return r;var a=ui(r);if(a===void 0){if(r!=null&&typeof r.render=="function"){var f=du(r.render);if(r.render!==f){var m={$$typeof:G,render:f};return r.displayName!==void 0&&(m.displayName=r.displayName),m}}return r}return a.current}}function hy(r,a){{if(ui===null)return!1;var f=r.elementType,m=a.type,v=!1,_=typeof m=="object"&&m!==null?m.$$typeof:null;switch(r.tag){case Y:{typeof m=="function"&&(v=!0);break}case I:{(typeof m=="function"||_===Ce)&&(v=!0);break}case le:{(_===G||_===Ce)&&(v=!0);break}case ae:case re:{(_===ye||_===Ce)&&(v=!0);break}default:return!1}if(v){var B=ui(f);if(B!==void 0&&B===ui(m))return!0}return!1}}function py(r){{if(ui===null||typeof WeakSet!="function")return;uu===null&&(uu=new WeakSet),uu.add(r)}}var g4=function(r,a){{if(ui===null)return;var f=a.staleFamilies,m=a.updatedFamilies;us(),wp(function(){Nm(r.current,m,f)})}},v4=function(r,a){{if(r.context!==mr)return;us(),wp(function(){xy(a,r,null,null)})}};function Nm(r,a,f){{var m=r.alternate,v=r.child,_=r.sibling,B=r.tag,F=r.type,H=null;switch(B){case I:case re:case Y:H=F;break;case le:H=F.render;break}if(ui===null)throw new Error("Expected resolveFamily to be set during hot reload.");var Z=!1,ie=!1;if(H!==null){var ve=ui(H);ve!==void 0&&(f.has(ve)?ie=!0:a.has(ve)&&(B===Y?ie=!0:Z=!0))}if(uu!==null&&(uu.has(r)||m!==null&&uu.has(m))&&(ie=!0),ie&&(r._debugNeedsRemount=!0),ie||Z){var _e=oa(r,vt);_e!==null&&er(_e,r,vt,dn)}v!==null&&!ie&&Nm(v,a,f),_!==null&&Nm(_,a,f)}}var y4=function(r,a){{var f=new Set,m=new Set(a.map(function(v){return v.current}));return Bm(r.current,m,f),f}};function Bm(r,a,f){{var m=r.child,v=r.sibling,_=r.tag,B=r.type,F=null;switch(_){case I:case re:case Y:F=B;break;case le:F=B.render;break}var H=!1;F!==null&&a.has(F)&&(H=!0),H?x4(r,f):m!==null&&Bm(m,a,f),v!==null&&Bm(v,a,f)}}function x4(r,a){{var f=b4(r,a);if(f)return;for(var m=r;;){switch(m.tag){case V:a.add(m.stateNode);return;case Q:a.add(m.stateNode.containerInfo);return;case q:a.add(m.stateNode.containerInfo);return}if(m.return===null)throw new Error("Expected to reach root first.");m=m.return}}}function b4(r,a){for(var f=r,m=!1;;){if(f.tag===V)m=!0,a.add(f.stateNode);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===r)return m;for(;f.sibling===null;){if(f.return===null||f.return===r)return m;f=f.return}f.sibling.return=f.return,f=f.sibling}return!1}var Pm;{Pm=!1;try{var Ay=Object.preventExtensions({})}catch{Pm=!0}}function S4(r,a,f,m){this.tag=r,this.key=f,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=a,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=m,this.flags=st,this.subtreeFlags=st,this.deletions=null,this.lanes=Pe,this.childLanes=Pe,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Pm&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ua=function(r,a,f,m){return new S4(r,a,f,m)};function Mm(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function C4(r){return typeof r=="function"&&!Mm(r)&&r.defaultProps===void 0}function w4(r){if(typeof r=="function")return Mm(r)?Y:I;if(r!=null){var a=r.$$typeof;if(a===G)return le;if(a===ye)return ae}return K}function Tl(r,a){var f=r.alternate;f===null?(f=Ua(r.tag,a,r.key,r.mode),f.elementType=r.elementType,f.type=r.type,f.stateNode=r.stateNode,f._debugSource=r._debugSource,f._debugOwner=r._debugOwner,f._debugHookTypes=r._debugHookTypes,f.alternate=r,r.alternate=f):(f.pendingProps=a,f.type=r.type,f.flags=st,f.subtreeFlags=st,f.deletions=null,f.actualDuration=0,f.actualStartTime=-1),f.flags=r.flags&mi,f.childLanes=r.childLanes,f.lanes=r.lanes,f.child=r.child,f.memoizedProps=r.memoizedProps,f.memoizedState=r.memoizedState,f.updateQueue=r.updateQueue;var m=r.dependencies;switch(f.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},f.sibling=r.sibling,f.index=r.index,f.ref=r.ref,f.selfBaseDuration=r.selfBaseDuration,f.treeBaseDuration=r.treeBaseDuration,f._debugNeedsRemount=r._debugNeedsRemount,f.tag){case K:case I:case re:f.type=du(r.type);break;case Y:f.type=Lm(r.type);break;case le:f.type=km(r.type);break}return f}function _4(r,a){r.flags&=mi|un;var f=r.alternate;if(f===null)r.childLanes=Pe,r.lanes=a,r.child=null,r.subtreeFlags=st,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0;else{r.childLanes=f.childLanes,r.lanes=f.lanes,r.child=f.child,r.subtreeFlags=st,r.deletions=null,r.memoizedProps=f.memoizedProps,r.memoizedState=f.memoizedState,r.updateQueue=f.updateQueue,r.type=f.type;var m=f.dependencies;r.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},r.selfBaseDuration=f.selfBaseDuration,r.treeBaseDuration=f.treeBaseDuration}return r}function E4(r,a,f){var m;return r===dc?(m=jt,a===!0&&(m|=Rn,m|=Ma)):m=mt,Or&&(m|=tn),Ua(q,null,null,m)}function zm(r,a,f,m,v,_){var B=K,F=r;if(typeof r=="function")Mm(r)?(B=Y,F=Lm(F)):F=du(F);else if(typeof r=="string")B=V;else e:switch(r){case Dt:return Bo(f.children,v,_,a);case me:B=se,v|=Rn,(v&jt)!==mt&&(v|=Ma);break;case k:return R4(f,v,_,a);case j:return T4(f,v,_,a);case $:return D4(f,v,_,a);case Xe:return my(f,v,_,a);case Ie:case Ae:case dt:case Jt:case ze:default:{if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ce:B=ne;break e;case de:B=L;break e;case G:B=le,F=km(F);break e;case ye:B=ae;break e;case Ce:B=U,F=null;break e}var H="";{(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(H+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z=m?it(m):null;Z&&(H+=`
|
|
435
435
|
|
|
436
|
-
Check the render method of \``+
|
|
436
|
+
Check the render method of \``+Z+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+H))}}var ie=Ua(B,f,a,v);return ie.elementType=r,ie.type=F,ie.lanes=_,ie._debugOwner=m,ie}function Fm(r,a,f){var m=null;m=r._owner;var v=r.type,_=r.key,B=r.props,F=zm(v,_,B,m,a,f);return F._debugSource=r._source,F._debugOwner=r._owner,F}function Bo(r,a,f,m){var v=Ua(W,r,m,a);return v.lanes=f,v}function R4(r,a,f,m){typeof r.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id);var v=Ua(pe,r,m,a|tn);return v.elementType=k,v.lanes=f,v.stateNode={effectDuration:0,passiveEffectDuration:0},v}function T4(r,a,f,m){var v=Ua(J,r,m,a);return v.elementType=j,v.lanes=f,v}function D4(r,a,f,m){var v=Ua(Re,r,m,a);return v.elementType=$,v.lanes=f,v}function my(r,a,f,m){var v=Ua(Ue,r,m,a);v.elementType=Xe,v.lanes=f;var _={isHidden:!1};return v.stateNode=_,v}function Im(r,a,f){var m=Ua(ge,r,null,a);return m.lanes=f,m}function L4(){var r=Ua(V,null,null,mt);return r.elementType="DELETED",r}function k4(r){var a=Ua(Ee,null,null,mt);return a.stateNode=r,a}function Om(r,a,f){var m=r.children!==null?r.children:[],v=Ua(Q,m,r.key,a);return v.lanes=f,v.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},v}function gy(r,a){return r===null&&(r=Ua(K,null,null,mt)),r.tag=a.tag,r.key=a.key,r.elementType=a.elementType,r.type=a.type,r.stateNode=a.stateNode,r.return=a.return,r.child=a.child,r.sibling=a.sibling,r.index=a.index,r.ref=a.ref,r.pendingProps=a.pendingProps,r.memoizedProps=a.memoizedProps,r.updateQueue=a.updateQueue,r.memoizedState=a.memoizedState,r.dependencies=a.dependencies,r.mode=a.mode,r.flags=a.flags,r.subtreeFlags=a.subtreeFlags,r.deletions=a.deletions,r.lanes=a.lanes,r.childLanes=a.childLanes,r.alternate=a.alternate,r.actualDuration=a.actualDuration,r.actualStartTime=a.actualStartTime,r.selfBaseDuration=a.selfBaseDuration,r.treeBaseDuration=a.treeBaseDuration,r._debugSource=a._debugSource,r._debugOwner=a._debugOwner,r._debugNeedsRemount=a._debugNeedsRemount,r._debugHookTypes=a._debugHookTypes,r}function N4(r,a,f,m,v){this.tag=a,this.containerInfo=r,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Xl,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Ln,this.eventTimes=mo(Pe),this.expirationTimes=mo(dn),this.pendingLanes=Pe,this.suspendedLanes=Pe,this.pingedLanes=Pe,this.expiredLanes=Pe,this.mutableReadLanes=Pe,this.finishedLanes=Pe,this.entangledLanes=Pe,this.entanglements=mo(Pe),this.identifierPrefix=m,this.onRecoverableError=v,_r&&(this.mutableSourceEagerHydrationData=null),this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var _=this.pendingUpdatersLaneMap=[],B=0;B<Rs;B++)_.push(new Set)}switch(a){case dc:this._debugRootType=f?"hydrateRoot()":"createRoot()";break;case ti:this._debugRootType=f?"hydrate()":"render()";break}}function vy(r,a,f,m,v,_,B,F,H,Z){var ie=new N4(r,a,f,F,H),ve=E4(a,_);ie.current=ve,ve.stateNode=ie;{var _e={element:m,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null};ve.memoizedState=_e}return qA(ve),ie}var B4="18.3.1";function P4(r,a,f){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return g5(m),{$$typeof:qe,key:m==null?null:""+m,children:r,containerInfo:a,implementation:f}}var Um,jm;Um=!1,jm={};function yy(r){if(!r)return mr;var a=x(r),f=ga(a);if(a.tag===Y){var m=a.type;if(zr(m))return uc(a,m,f)}return f}function M4(r){var a=x(r);if(a===void 0){if(typeof r.render=="function")throw new Error("Unable to find node on an unmounted component.");var f=Object.keys(r).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+f)}var m=vs(a);return m===null?null:m.stateNode}function z4(r,a){{var f=x(r);if(f===void 0){if(typeof r.render=="function")throw new Error("Unable to find node on an unmounted component.");var m=Object.keys(r).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+m)}var v=vs(f);if(v===null)return null;if(v.mode&Rn){var _=it(f)||"Component";if(!jm[_]){jm[_]=!0;var B=Je;try{Vt(v),f.mode&Rn?u("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,_):u("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,_)}finally{B?Vt(B):Pt()}}}return v.stateNode}}function F4(r,a,f,m,v,_,B,F){var H=!1,Z=null;return vy(r,a,H,Z,f,m,v,_,B)}function I4(r,a,f,m,v,_,B,F,H,Z){var ie=!0,ve=vy(f,m,ie,r,v,_,B,F,H);ve.context=yy(null);var _e=ve.current,ke=Xr(),Me=ko(_e),Be=Hs(ke,Me);return Be.callback=a??null,wo(_e,Be,Me),F3(ve,Me,ke),ve}function xy(r,a,f,m){Mc(a,r);var v=a.current,_=Xr(),B=ko(v);vo(B);var F=yy(f);a.context===null?a.context=F:a.pendingContext=F,St&&Je!==null&&!Um&&(Um=!0,u(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
437
437
|
|
|
438
|
-
Check the render method of %s.`,it(Je)||"Unknown"));var
|
|
438
|
+
Check the render method of %s.`,it(Je)||"Unknown"));var H=Hs(_,B);H.payload={element:r},m=m===void 0?null:m,m!==null&&(typeof m!="function"&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",m),H.callback=m);var Z=wo(v,H,B);return Z!==null&&(er(Z,v,B,_),Dh(Z,v,B)),B}function O4(r){var a=r.current;if(!a.child)return null;switch(a.child.tag){case V:return Ka(a.child.stateNode);default:return a.child.stateNode}}function U4(r){switch(r.tag){case q:{var a=r.stateNode;if(Ci(a)){var f=th(a);j3(a,f)}break}case J:{wp(function(){var v=oa(r,vt);if(v!==null){var _=Xr();er(v,r,vt,_)}});var m=vt;Lp(r,m);break}}}function by(r,a){var f=r.memoizedState;f!==null&&f.dehydrated!==null&&(f.retryLane=ol(f.retryLane,a))}function Lp(r,a){by(r,a);var f=r.alternate;f&&by(f,a)}function j4(r){if(r.tag===J){var a=vt,f=oa(r,a);if(f!==null){var m=Xr();er(f,r,a,m)}Lp(r,a)}}function G4(r){if(r.tag===J){var a=Ns,f=oa(r,a);if(f!==null){var m=Xr();er(f,r,a,m)}Lp(r,a)}}function H4(r){if(r.tag===J){var a=ko(r),f=oa(r,a);if(f!==null){var m=Xr();er(f,r,a,m)}Lp(r,a)}}function W4(r){var a=Mu(r);return a===null?null:a.stateNode}var Sy=function(r){return null};function Cy(r){return Sy(r)}var wy=function(r){return!1};function _y(r){return wy(r)}var Ey=null,Ry=null,Ty=null,Dy=null,Ly=null,ky=null,Ny=null,By=null,Py=null;{var My=function(r,a,f){var m=a[f],v=Qn(r)?r.slice():y({},r);return f+1===a.length?(Qn(v)?v.splice(m,1):delete v[m],v):(v[m]=My(r[m],a,f+1),v)},zy=function(r,a){return My(r,a,0)},Fy=function(r,a,f,m){var v=a[m],_=Qn(r)?r.slice():y({},r);if(m+1===a.length){var B=f[m];_[B]=_[v],Qn(_)?_.splice(v,1):delete _[v]}else _[v]=Fy(r[v],a,f,m+1);return _},Iy=function(r,a,f){if(a.length!==f.length){p("copyWithRename() expects paths of the same length");return}else for(var m=0;m<f.length-1;m++)if(a[m]!==f[m]){p("copyWithRename() expects paths to be the same except for the deepest key");return}return Fy(r,a,f,0)},Oy=function(r,a,f,m){if(f>=a.length)return m;var v=a[f],_=Qn(r)?r.slice():y({},r);return _[v]=Oy(r[v],a,f+1,m),_},Uy=function(r,a,f){return Oy(r,a,0,f)},Gm=function(r,a){for(var f=r.memoizedState;f!==null&&a>0;)f=f.next,a--;return f};Ey=function(r,a,f,m){var v=Gm(r,a);if(v!==null){var _=Uy(v.memoizedState,f,m);v.memoizedState=_,v.baseState=_,r.memoizedProps=y({},r.memoizedProps);var B=oa(r,vt);B!==null&&er(B,r,vt,dn)}},Ry=function(r,a,f){var m=Gm(r,a);if(m!==null){var v=zy(m.memoizedState,f);m.memoizedState=v,m.baseState=v,r.memoizedProps=y({},r.memoizedProps);var _=oa(r,vt);_!==null&&er(_,r,vt,dn)}},Ty=function(r,a,f,m){var v=Gm(r,a);if(v!==null){var _=Iy(v.memoizedState,f,m);v.memoizedState=_,v.baseState=_,r.memoizedProps=y({},r.memoizedProps);var B=oa(r,vt);B!==null&&er(B,r,vt,dn)}},Dy=function(r,a,f){r.pendingProps=Uy(r.memoizedProps,a,f),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var m=oa(r,vt);m!==null&&er(m,r,vt,dn)},Ly=function(r,a){r.pendingProps=zy(r.memoizedProps,a),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var f=oa(r,vt);f!==null&&er(f,r,vt,dn)},ky=function(r,a,f){r.pendingProps=Iy(r.memoizedProps,a,f),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var m=oa(r,vt);m!==null&&er(m,r,vt,dn)},Ny=function(r){var a=oa(r,vt);a!==null&&er(a,r,vt,dn)},By=function(r){Sy=r},Py=function(r){wy=r}}function X4(r){var a=vs(r);return a===null?null:a.stateNode}function Q4(r){return null}function Y4(){return Je}function V4(r){var a=r.findFiberByHostInstance,f=c.ReactCurrentDispatcher;return Pc({bundleType:r.bundleType,version:r.version,rendererPackageName:r.rendererPackageName,rendererConfig:r.rendererConfig,overrideHookState:Ey,overrideHookStateDeletePath:Ry,overrideHookStateRenamePath:Ty,overrideProps:Dy,overridePropsDeletePath:Ly,overridePropsRenamePath:ky,setErrorHandler:By,setSuspenseHandler:Py,scheduleUpdate:Ny,currentDispatcherRef:f,findHostInstanceByFiber:X4,findFiberByHostInstance:a||Q4,findHostInstancesForRefresh:y4,scheduleRefresh:g4,scheduleRoot:v4,setRefreshHandler:m4,getCurrentFiber:Y4,reconcilerVersion:B4})}return n.attemptContinuousHydration=G4,n.attemptDiscreteHydration=j4,n.attemptHydrationAtCurrentPriority=H4,n.attemptSynchronousHydration=U4,n.batchedUpdates=H3,n.createComponentSelector=y3,n.createContainer=F4,n.createHasPseudoClassSelector=x3,n.createHydrationContainer=I4,n.createPortal=P4,n.createRoleSelector=b3,n.createTestNameSelector=C3,n.createTextSelector=S3,n.deferredUpdates=G3,n.discreteUpdates=W3,n.findAllNodes=pp,n.findBoundingRects=E3,n.findHostInstance=M4,n.findHostInstanceWithNoPortals=W4,n.findHostInstanceWithWarning=z4,n.flushControlled=Q3,n.flushPassiveEffects=us,n.flushSync=wp,n.focusWithin=R3,n.getCurrentUpdatePriority=Er,n.getFindAllNodesFailureDescription=_3,n.getPublicRootInstance=O4,n.injectIntoDevTools=V4,n.isAlreadyRendering=X3,n.observeVisibleRects=D3,n.registerMutableSourceForHydration=B5,n.runWithPriority=dd,n.shouldError=Cy,n.shouldSuspend=_y,n.updateContainer=xy,n})),lg.exports}var M2;function D8(){return M2||(M2=1,process.env.NODE_ENV==="production"?Xp.exports=R8():Xp.exports=T8()),Xp.exports}var L8=D8();const k8=oA(L8);var Yp={exports:{}},Po={};/**
|
|
439
439
|
* @license React
|
|
440
440
|
* react-reconciler-constants.production.min.js
|
|
441
441
|
*
|
|
@@ -458,12 +458,12 @@ For more info see: https://github.com/konvajs/react-konva/issues/256
|
|
|
458
458
|
`,z8=`ReactKonva: You are using "zIndex" attribute for a Konva node.
|
|
459
459
|
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
|
|
460
460
|
For more info see: https://github.com/konvajs/react-konva/issues/194
|
|
461
|
-
`,F8={};function pA(t,e,n=F8){if(!U2&&"zIndex"in e&&(console.warn(z8),U2=!0),!j2&&e.draggable){var s=e.x!==void 0||e.y!==void 0,i=e.onDragEnd||e.onDragMove;s&&!i&&(console.warn(M8),j2=!0)}for(var c in n)if(!O2[c]){var d=c.slice(0,2)==="on",h=n[c]!==e[c];if(d&&h){var p=c.substr(2).toLowerCase();p.substr(0,7)==="content"&&(p="content"+p.substr(7,1).toUpperCase()+p.substr(8)),t.off(p,n[c])}var u=!e.hasOwnProperty(c);u&&t.setAttr(c,void 0)}var A=e._useStrictMode,y={},x=!1;const S={};for(var c in e)if(!O2[c]){var d=c.slice(0,2)==="on",C=n[c]!==e[c];if(d&&C){var p=c.substr(2).toLowerCase();p.substr(0,7)==="content"&&(p="content"+p.substr(7,1).toUpperCase()+p.substr(8)),e[c]&&(S[p]=e[c])}!d&&(e[c]!==n[c]||A&&e[c]!==t.getAttr(c))&&(x=!0,y[c]=e[c])}x&&(t.setAttrs(y),Qo(t));for(var p in S)t.on(p+Zg,S[p])}function Qo(t){if(!Qe.autoDrawEnabled){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}}var cg=Jg();const t5={},I8={};Ml.Node.prototype._applyProps=pA;function O8(t,e){if(typeof e=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${e}`);return}t.add(e),Qo(t)}function U8(t,e,n){let s=Ml[t];s||(console.error(`Konva has no node with the type ${t}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${t}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),s=Ml.Group);const i={},c={};for(var d in e){var h=d.slice(0,2)==="on";h?c[d]=e[d]:i[d]=e[d]}const p=new s(i);return pA(p,c),p}function j8(t,e,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${t}"`)}function G8(t,e,n){return!1}function H8(t){return t}function W8(){return null}function X8(){return null}function Q8(t,e,n,s){return I8}function Y8(){}function V8(t){}function q8(t,e){return!1}function K8(){return t5}function J8(){return t5}const Z8=setTimeout,$8=clearTimeout,e9=-1;function t9(t,e){return!1}const n9=!1,r9=!0,a9=!0;function i9(t,e){e.parent===t?e.moveToTop():t.add(e),Qo(t)}function s9(t,e){e.parent===t?e.moveToTop():t.add(e),Qo(t)}function n5(t,e,n){e._remove(),t.add(e),e.setZIndex(n.getZIndex()),Qo(t)}function o9(t,e,n){n5(t,e,n)}function l9(t,e){e.destroy(),e.off(Zg),Qo(t)}function c9(t,e){e.destroy(),e.off(Zg),Qo(t)}function u9(t,e,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function d9(t,e,n){}function f9(t,e,n,s,i){pA(t,i,s)}function h9(t){t.hide(),Qo(t)}function p9(t){}function A9(t,e){(e.visible==null||e.visible)&&t.show()}function m9(t,e){}function g9(t){}function v9(){}const y9=()=>e5.DefaultEventPriority,x9=Object.freeze(Object.defineProperty({__proto__:null,appendChild:i9,appendChildToContainer:s9,appendInitialChild:O8,cancelTimeout:$8,clearContainer:g9,commitMount:d9,commitTextUpdate:u9,commitUpdate:f9,createInstance:U8,createTextInstance:j8,detachDeletedInstance:v9,finalizeInitialChildren:G8,getChildHostContext:J8,getCurrentEventPriority:y9,getPublicInstance:H8,getRootHostContext:K8,hideInstance:h9,hideTextInstance:p9,idlePriority:cg.unstable_IdlePriority,insertBefore:n5,insertInContainerBefore:o9,isPrimaryRenderer:n9,noTimeout:e9,now:cg.unstable_now,prepareForCommit:W8,preparePortalMount:X8,prepareUpdate:Q8,removeChild:l9,removeChildFromContainer:c9,resetAfterCommit:Y8,resetTextContent:V8,run:cg.unstable_runWithPriority,scheduleTimeout:Z8,shouldDeprioritizeSubtree:q8,shouldSetTextContent:t9,supportsMutation:a9,unhideInstance:A9,unhideTextInstance:m9,warnsIfNotActing:r9},Symbol.toStringTag,{value:"Module"}));var b9=Object.defineProperty,S9=Object.defineProperties,C9=Object.getOwnPropertyDescriptors,G2=Object.getOwnPropertySymbols,w9=Object.prototype.hasOwnProperty,_9=Object.prototype.propertyIsEnumerable,H2=(t,e,n)=>e in t?b9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,W2=(t,e)=>{for(var n in e||(e={}))w9.call(e,n)&&H2(t,n,e[n]);if(G2)for(var n of G2(e))_9.call(e,n)&&H2(t,n,e[n]);return t},E9=(t,e)=>S9(t,C9(e)),X2,Q2;typeof window<"u"&&((X2=window.document)!=null&&X2.createElement||((Q2=window.navigator)==null?void 0:Q2.product)==="ReactNative")?_a.useLayoutEffect:_a.useEffect;function r5(t,e,n){if(!t)return;if(n(t)===!0)return t;let s=t.child;for(;s;){const i=r5(s,e,n);if(i)return i;s=s.sibling}}function a5(t){try{return Object.defineProperties(t,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return t}}const Y2=console.error;console.error=function(){const t=[...arguments].join("");if(t!=null&&t.startsWith("Warning:")&&t.includes("useContext")){console.error=Y2;return}return Y2.apply(this,arguments)};const $g=a5(_a.createContext(null));class i5 extends _a.Component{render(){return _a.createElement($g.Provider,{value:this._reactInternals},this.props.children)}}function R9(){const t=_a.useContext($g);if(t===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const e=_a.useId();return _a.useMemo(()=>{for(const s of[t,t==null?void 0:t.alternate]){if(!s)continue;const i=r5(s,!1,c=>{let d=c.memoizedState;for(;d;){if(d.memoizedState===e)return!0;d=d.next}});if(i)return i}},[t,e])}function T9(){const t=R9(),[e]=_a.useState(()=>new Map);e.clear();let n=t;for(;n;){if(n.type&&typeof n.type=="object"){const i=n.type._context===void 0&&n.type.Provider===n.type?n.type:n.type._context;i&&i!==$g&&!e.has(i)&&e.set(i,_a.useContext(a5(i)))}n=n.return}return e}function s5(){const t=T9();return _a.useMemo(()=>Array.from(t.keys()).reduce((e,n)=>s=>_a.createElement(e,null,_a.createElement(n.Provider,E9(W2({},s),{value:t.get(n)}))),e=>_a.createElement(i5,W2({},e))),[t])}function D9(t){const e=oe.useRef({});return oe.useLayoutEffect(()=>{e.current=t}),oe.useLayoutEffect(()=>()=>{e.current={}},[]),e.current}const L9=t=>{const e=oe.useRef(null),n=oe.useRef(null),s=oe.useRef(null),i=D9(t),c=s5(),d=h=>{const{forwardedRef:p}=t;p&&(typeof p=="function"?p(h):p.current=h)};return oe.useLayoutEffect(()=>(n.current=new Ml.Stage({width:t.width,height:t.height,container:e.current}),d(n.current),s.current=vf.createContainer(n.current,e5.LegacyRoot,!1,null),vf.updateContainer(oe.createElement(c,{},t.children),s.current),()=>{Ml.isBrowser&&(d(null),vf.updateContainer(null,s.current,null),n.current.destroy())}),[]),oe.useLayoutEffect(()=>{d(n.current),pA(n.current,t,i),vf.updateContainer(oe.createElement(c,{},t.children),s.current,null)}),oe.createElement("div",{ref:e,id:t.id,accessKey:t.accessKey,className:t.className,role:t.role,style:t.style,tabIndex:t.tabIndex,title:t.title})},o5="Layer",di="Group",Vr="Rect",ev="Ellipse",Uo="Line",tA="Image",Ks="Text",tv="Arrow",nv="Transformer",vf=k8(x9);vf.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:process.env.NODE_ENV!=="production"?1:0,version:oe.version,rendererPackageName:"react-konva"});const l5=oe.forwardRef((t,e)=>oe.createElement(i5,{},oe.createElement(L9,{...t,forwardedRef:e}))),Vp=960,qp=540,c5=(t,e,n)=>{if(!n.enabled)return{x:t.x,y:t.y,guides:[]};let s=t.x,i=t.y;const c=[],d=Math.max(n.threshold,15),h=t.x,p=t.x+t.width,u=t.x+t.width/2,A=t.y,y=t.y+t.height,x=t.y+t.height/2,S=Vp/2,C=qp/2;if(n.snapToCenter&&(Math.abs(u-S)<d?(s=S-t.width/2,c.push({type:"vertical",position:S,isCenter:!0})):Math.abs(h-S)<d?(s=S,c.push({type:"vertical",position:S,isCenter:!0})):Math.abs(p-S)<d&&(s=S-t.width,c.push({type:"vertical",position:S,isCenter:!0})),Math.abs(x-C)<d?(i=C-t.height/2,c.push({type:"horizontal",position:C,isCenter:!0})):Math.abs(A-C)<d?(i=C,c.push({type:"horizontal",position:C,isCenter:!0})):Math.abs(y-C)<d&&(i=C-t.height,c.push({type:"horizontal",position:C,isCenter:!0}))),n.snapToEdges&&(Math.abs(h)<d&&(s=0,c.push({type:"vertical",position:0})),Math.abs(p-Vp)<d&&(s=Vp-t.width,c.push({type:"vertical",position:Vp})),Math.abs(A)<d&&(i=0,c.push({type:"horizontal",position:0})),Math.abs(y-qp)<d&&(i=qp-t.height,c.push({type:"horizontal",position:qp}))),n.snapToElements)for(const R of e){const T=R.x,D=R.x+R.width,P=R.x+R.width/2,M=R.y,O=R.y+R.height,I=R.y+R.height/2;Math.abs(h-T)<d&&(s=T,c.push({type:"vertical",position:T})),Math.abs(p-D)<d&&(s=D-t.width,c.push({type:"vertical",position:D})),Math.abs(u-P)<d&&(s=P-t.width/2,c.push({type:"vertical",position:P})),Math.abs(A-M)<d&&(i=M,c.push({type:"horizontal",position:M})),Math.abs(y-O)<d&&(i=O-t.height,c.push({type:"horizontal",position:O})),Math.abs(x-I)<d&&(i=I-t.height/2,c.push({type:"horizontal",position:I}))}return{x:s,y:i,guides:c}};var vu={},V2;function k9(){if(V2)return vu;V2=1;var t=J2;if(process.env.NODE_ENV==="production")vu.createRoot=t.createRoot,vu.hydrateRoot=t.hydrateRoot;else{var e=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;vu.createRoot=function(n,s){e.usingClientEntryPoint=!0;try{return t.createRoot(n,s)}finally{e.usingClientEntryPoint=!1}},vu.hydrateRoot=function(n,s,i){e.usingClientEntryPoint=!0;try{return t.hydrateRoot(n,s,i)}finally{e.usingClientEntryPoint=!1}}}return vu}var N9=k9();const B9=oA(N9);var P9=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++)e.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(n[s[i]]=t[s[i]]);return n};const M9=t=>{const e=window.getComputedStyle(t).position;return!(e==="absolute"||e==="relative")};function z9(t=()=>{}){const e=oe.useRef(t);return e.current=t,oe.useCallback((...n)=>e.current.apply(null,n),[])}const zg=({children:t,groupProps:e,divProps:n,transform:s,transformFunc:i,parentNodeFunc:c})=>{const d=s5(),h=oe.useRef(null),[p]=oe.useState(()=>document.createElement("div")),u=oe.useMemo(()=>B9.createRoot(p),[p]),A=s??!0,y=z9(()=>{if(A&&h.current){let T=h.current.getAbsoluteTransform().decompose();i&&(T=i(T)),p.style.position="absolute",p.style.zIndex="10",p.style.top="0px",p.style.left="0px",p.style.transform=`translate(${T.x}px, ${T.y}px) rotate(${T.rotation}deg) scaleX(${T.scaleX}) scaleY(${T.scaleY})`,p.style.transformOrigin="top left"}else p.style.position="",p.style.zIndex="",p.style.top="",p.style.left="",p.style.transform="",p.style.transformOrigin="";const x=n||{},{style:S}=x,C=P9(x,["style"]);Object.assign(p.style,S),Object.assign(p,C)});return oe.useLayoutEffect(()=>{var x;const S=h.current;if(!S)return;const C=c?c({stage:S.getStage()}):(x=S.getStage())===null||x===void 0?void 0:x.container();if(C)return C.appendChild(p),A&&M9(C)&&(C.style.position="relative"),S.on("absoluteTransformChange",y),y(),()=>{var R;S.off("absoluteTransformChange",y),(R=p.parentNode)===null||R===void 0||R.removeChild(p)}},[A,c]),oe.useLayoutEffect(()=>{y()},[n,i]),oe.useLayoutEffect(()=>{queueMicrotask(()=>{J2.flushSync(()=>{u.render(oe.createElement(d,null,t))})})}),oe.useLayoutEffect(()=>()=>{setTimeout(()=>{u.unmount()})},[]),oe.createElement(di,Object.assign({ref:h},e))};var ug,q2;function F9(){if(q2)return ug;q2=1;var t=oe;return ug=function(n,s,i){const c=t.useRef("loading"),d=t.useRef(),[h,p]=t.useState(0),u=t.useRef(),A=t.useRef(),y=t.useRef();return(u.current!==n||A.current!==s||y.current!==i)&&(c.current="loading",d.current=void 0,u.current=n,A.current=s,y.current=i),t.useLayoutEffect(function(){if(!n)return;var x=document.createElement("img");function S(){x.decode().catch(()=>{}).finally(()=>{c.current="loaded",d.current=x,p(Math.random())})}function C(){c.current="failed",d.current=void 0,p(Math.random())}return x.addEventListener("load",S),x.addEventListener("error",C),s&&(x.crossOrigin=s),i&&(x.referrerPolicy=i),x.src=n,function(){x.removeEventListener("load",S),x.removeEventListener("error",C)}},[n,s,i]),[d.current,c.current]},ug}var I9=F9();const O9=oA(I9),u5=({element:t,isSelected:e,onSelect:n,onChange:s,onDragStart:i,onDragEnd:c})=>{const d=oe.useRef(null),h=oe.useRef(null),p=oe.useRef(null),[u,A]=oe.useState(!1),[y,x]=oe.useState(t.fontSize*2);oe.useEffect(()=>{var P;e&&!u&&p.current&&d.current&&(p.current.nodes([d.current]),(P=p.current.getLayer())==null||P.batchDraw())},[e,u]),oe.useEffect(()=>{h.current&&x(h.current.height())},[t.content,t.fontSize,t.width]);const S=oe.useCallback(()=>{A(!0)},[]),C=oe.useCallback(P=>{s({content:P}),A(!1)},[s]),R=P=>{const M=P.target;s({x:M.x()-M.offsetX(),y:M.y()-M.offsetY()},!0)},T=P=>{const M=P.target;s({x:M.x()-M.offsetX(),y:M.y()-M.offsetY()}),c==null||c()},D=()=>{const P=d.current;if(!P)return;const M=P.scaleX(),O=Math.max(50,t.width*M);P.scaleX(1),P.scaleY(1),P.offsetX(O/2),s({x:P.x()-O/2,y:P.y()-P.offsetY(),width:O,rotation:P.rotation()})};return w.jsxs(w.Fragment,{children:[w.jsx(di,{ref:d,x:t.x+t.width/2,y:t.y+y/2,offsetX:t.width/2,offsetY:y/2,rotation:t.rotation,draggable:!u,onClick:n,onTap:n,onDblClick:S,onDblTap:S,onDragStart:()=>i==null?void 0:i(),onDragMove:R,onDragEnd:T,onTransformStart:()=>i==null?void 0:i(),onTransformEnd:D,children:w.jsx(Ks,{ref:h,x:0,y:0,width:t.width,text:t.content,fontSize:t.fontSize,fontFamily:t.fontFamily,fontStyle:t.fontWeight==="700"||t.fontWeight==="800"?"bold":"normal",fill:t.fill,align:t.align,lineHeight:t.lineHeight||1.2,opacity:u?0:1})}),e&&!u&&w.jsx(nv,{ref:p,flipEnabled:!1,enabledAnchors:["middle-left","middle-right"],rotateEnabled:!0,rotateAnchorOffset:20,rotateAnchorCursor:"grab",anchorSize:10,anchorCornerRadius:5,anchorFill:"#ffffff",anchorStroke:"#5B6EF7",anchorStrokeWidth:2,borderStroke:"#5B6EF7",borderStrokeWidth:2,rotationSnaps:[0,15,30,45,60,75,90,105,120,135,150,165,180,195,210,225,240,255,270,285,300,315,330,345],rotationSnapTolerance:5,boundBoxFunc:(P,M)=>Math.abs(M.width)<50?P:M}),u&&w.jsx(zg,{groupProps:{x:t.x,y:t.y},divProps:{style:{opacity:1}},children:w.jsx(j9,{element:t,onComplete:C,onCancel:()=>A(!1)})})]})},U9=t=>{let e=t.replace("#","");e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const n=parseInt(e.substring(0,2),16),s=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);return(n*299+s*587+i*114)/1e3>180},j9=({element:t,onComplete:e,onCancel:n})=>{const s=oe.useRef(null),[i,c]=oe.useState(t.content),d=U9(t.fill)?"#1e293b":t.fill;oe.useEffect(()=>{const u=s.current;u&&requestAnimationFrame(()=>{u.focus(),u.select()})},[]);const h=u=>{u.key==="Escape"?n():u.key==="Enter"&&!u.shiftKey&&(u.preventDefault(),e(i))},p=()=>{setTimeout(()=>{e(i)},100)};return w.jsx("textarea",{ref:s,value:i,onChange:u=>c(u.target.value),onKeyDown:h,onBlur:p,style:{width:`${t.width}px`,minHeight:"60px",padding:"8px",fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,color:d,textAlign:t.align,border:"2px solid #5B6EF7",borderRadius:"8px",outline:"none",resize:"vertical",backgroundColor:"white",boxShadow:"0 4px 20px rgba(0,0,0,0.15)",lineHeight:t.lineHeight||1.2},placeholder:"텍스트를 입력하세요... (마크다운 지원: **굵게**, *기울임*)"})},d5=({element:t,isSelected:e,onSelect:n,onChange:s,onDragStart:i,onDragEnd:c,onReplaceWithImage:d})=>{const h=oe.useRef(null),p=oe.useRef(null),u=oe.useRef(null),[A,y]=oe.useState(!1);oe.useEffect(()=>{var q;e&&!A&&p.current&&h.current&&(p.current.nodes([h.current]),(q=p.current.getLayer())==null||q.batchDraw())},[e,A]);const x=q=>{const Y=q.target;s({x:Y.x()-Y.offsetX(),y:Y.y()-Y.offsetY()},!0)},S=q=>{const Y=q.target;s({x:Y.x()-Y.offsetX(),y:Y.y()-Y.offsetY()}),c==null||c()},C=()=>{const q=h.current;if(!q)return;const Y=q.scaleX(),X=q.scaleY(),he=Math.max(10,t.width*Y),G=Math.max(10,t.height*X);q.scaleX(1),q.scaleY(1),q.offsetX(he/2),q.offsetY(G/2),s({x:q.x()-he/2,y:q.y()-G/2,width:he,height:G,rotation:q.rotation()})},R=oe.useCallback(()=>{t.isImagePlaceholder&&u.current&&u.current.click()},[t.isImagePlaceholder]),T=oe.useCallback(q=>{var he;const Y=(he=q.target.files)==null?void 0:he[0];if(!Y||!d)return;const X=new FileReader;X.onload=G=>{var ne;const te=(ne=G.target)==null?void 0:ne.result,L=new window.Image;L.onload=()=>{const le=L.width/L.height,Ae=t.width/t.height;let re=0,ie=0,ae=L.width,H=L.height;le>Ae?(ae=L.height*Ae,re=(L.width-ae)/2):(H=L.width/Ae,ie=(L.height-H)/2),d({src:te,width:t.width,height:t.height,crop:{x:re,y:ie,width:ae,height:H}})},L.src=te},X.readAsDataURL(Y),q.target.value=""},[t.width,t.height,d]),D=oe.useCallback(()=>{t.isImagePlaceholder||t.shapeType==="line"||t.shapeType==="arrow"||y(!0)},[t.shapeType,t.isImagePlaceholder]),P=oe.useCallback(q=>{s({text:q}),y(!1)},[s]),M=()=>[t.width/2,0,t.width,t.height,0,t.height],O=()=>[0,0,t.width,t.height],I=()=>{const q={fill:t.fill,stroke:t.stroke,strokeWidth:t.strokeWidth};switch(t.shapeType){case"rect":return w.jsx(Vr,{width:t.width,height:t.height,cornerRadius:t.cornerRadius||0,...q});case"ellipse":return w.jsx(ev,{x:t.width/2,y:t.height/2,radiusX:t.width/2,radiusY:t.height/2,...q});case"triangle":return w.jsx(Uo,{points:M(),closed:!0,...q});case"line":return w.jsx(Uo,{points:O(),stroke:t.stroke,strokeWidth:t.strokeWidth});case"arrow":return w.jsx(tv,{points:O(),stroke:t.stroke,fill:t.stroke,strokeWidth:t.strokeWidth,pointerLength:10,pointerWidth:10});default:return null}},V=t.shapeType!=="line"&&t.shapeType!=="arrow",K=oe.useCallback(()=>{t.isImagePlaceholder&&R(),n()},[t.isImagePlaceholder,R,n]);return w.jsxs(w.Fragment,{children:[t.isImagePlaceholder&&w.jsx(zg,{groupProps:{x:0,y:0},divProps:{style:{display:"none"}},children:w.jsx("input",{ref:u,type:"file",accept:"image/*",onChange:T,style:{display:"none"}})}),w.jsxs(di,{ref:h,x:t.x+t.width/2,y:t.y+t.height/2,offsetX:t.width/2,offsetY:t.height/2,rotation:t.rotation,draggable:!A,onClick:K,onTap:K,onDblClick:D,onDblTap:D,onDragStart:()=>i==null?void 0:i(),onDragMove:x,onDragEnd:S,onTransformStart:()=>i==null?void 0:i(),onTransformEnd:C,style:{cursor:t.isImagePlaceholder?"pointer":"move"},children:[I(),V&&t.text&&!A&&w.jsx(Ks,{x:0,y:0,width:t.width,height:t.height,text:t.text,fontSize:t.textSize||16,fill:t.textColor||"#1e293b",align:"center",verticalAlign:"middle",listening:!1}),A&&w.jsx(zg,{groupProps:{x:0,y:0},divProps:{style:{opacity:1}},children:w.jsx(H9,{element:t,onComplete:P,onCancel:()=>y(!1)})})]}),e&&!A&&w.jsx(nv,{ref:p,flipEnabled:!1,rotateEnabled:!0,rotateAnchorOffset:20,rotateAnchorCursor:"grab",anchorSize:10,anchorCornerRadius:5,anchorFill:"#ffffff",anchorStroke:"#5B6EF7",anchorStrokeWidth:2,borderStroke:"#5B6EF7",borderStrokeWidth:2,rotationSnaps:[0,15,30,45,60,75,90,105,120,135,150,165,180,195,210,225,240,255,270,285,300,315,330,345],rotationSnapTolerance:5,boundBoxFunc:(q,Y)=>Math.abs(Y.width)<10||Math.abs(Y.height)<10?q:Y})]})},G9=t=>{let e=t.replace("#","");e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const n=parseInt(e.substring(0,2),16),s=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);return(n*299+s*587+i*114)/1e3>180},H9=({element:t,onComplete:e,onCancel:n})=>{const s=oe.useRef(null),[i,c]=oe.useState(t.text||""),d=t.textColor||"#1e293b",h=G9(d)?"#1e293b":d;oe.useEffect(()=>{s.current&&requestAnimationFrame(()=>{var A,y;(A=s.current)==null||A.focus(),(y=s.current)==null||y.select()})},[]);const p=A=>{A.key==="Escape"?n():A.key==="Enter"&&(A.preventDefault(),e(i))},u=()=>{setTimeout(()=>{e(i)},100)};return w.jsx("input",{ref:s,type:"text",value:i,onChange:A=>c(A.target.value),onKeyDown:p,onBlur:u,style:{width:`${t.width}px`,height:`${t.height}px`,padding:"8px",fontSize:`${t.textSize||16}px`,color:h,textAlign:"center",border:"2px solid #5B6EF7",borderRadius:t.shapeType==="ellipse"?"50%":"8px",outline:"none",backgroundColor:"rgba(255,255,255,0.9)",boxShadow:"0 4px 20px rgba(0,0,0,0.15)"},placeholder:"텍스트 입력..."})},f5=({element:t,isSelected:e,onSelect:n,onChange:s,onDragStart:i,onDragEnd:c})=>{const d=oe.useRef(null),h=oe.useRef(null),p=oe.useRef(null),[u,A]=oe.useState(null),[y,x]=oe.useState(!1),[S,C]=oe.useState({x:0,y:0}),[R,T]=oe.useState(1);oe.useEffect(()=>{const ae=new window.Image;ae.src=t.src,ae.onload=()=>{A(ae)}},[t.src]),oe.useEffect(()=>{var ae;e&&!y&&h.current&&d.current&&(h.current.nodes([d.current]),(ae=h.current.getLayer())==null||ae.batchDraw())},[e,y]),oe.useEffect(()=>{y&&(C({x:0,y:0}),T(1))},[y]);const D=oe.useCallback(ae=>{if(!t.crop||!u)return;const H=t.crop,$=R,Ee=Math.max(1,Math.min(3,ae)),Re=t.width/2,Ne=t.height/2,je=t.width/H.width*$,gt=t.height/H.height*$,ft=-H.x*je+S.x,ht=-H.y*gt+S.y,Lt=(Re-ft)/je,qe=(Ne-ht)/gt,Dt=t.width/H.width*Ee,ge=t.height/H.height*Ee,k=Re-Lt*Dt,ce=Ne-qe*ge,de=k+H.x*Dt,j=ce+H.y*ge,U=u.width*Dt,Z=u.height*ge,ye=t.width-U,Ce=0,me=t.height-Z,ze=0,Xe=Math.max(ye,Math.min(Ce,de)),Ie=Math.max(me,Math.min(ze,j));T(Ee),C({x:Xe,y:Ie})},[t.crop,t.width,t.height,u,R,S]),P=ae=>{const H=ae.target;s({x:H.x()-t.width/2,y:H.y()-t.height/2},!0)},M=ae=>{const H=ae.target;s({x:H.x()-t.width/2,y:H.y()-t.height/2}),c==null||c()},O=()=>{const ae=d.current;if(!ae)return;const H=ae.scaleX(),$=ae.scaleY(),Ee=Math.max(20,t.width*H),Re=Math.max(20,t.height*$);ae.scaleX(1),ae.scaleY(1),ae.offsetX(Ee/2),ae.offsetY(Re/2),s({x:ae.x()-Ee/2,y:ae.y()-Re/2,width:Ee,height:Re,rotation:ae.rotation()})},I=oe.useCallback(ae=>{const H=t.cornerRadius||0,$=t.width,Ee=t.height;if(H===0)ae.rect(0,0,$,Ee);else{const Re=Math.min(H,$/2,Ee/2);ae.beginPath(),ae.moveTo(Re,0),ae.lineTo($-Re,0),ae.arcTo($,0,$,Re,Re),ae.lineTo($,Ee-Re),ae.arcTo($,Ee,$-Re,Ee,Re),ae.lineTo(Re,Ee),ae.arcTo(0,Ee,0,Ee-Re,Re),ae.lineTo(0,Re),ae.arcTo(0,0,Re,0,Re),ae.closePath()}},[t.cornerRadius,t.width,t.height]),V=oe.useCallback(()=>{t.crop&&x(!0)},[t.crop]),K=oe.useCallback(ae=>{const H=ae.target,$=t.crop;if(!$||!u)return;const Ee=t.width/$.width*R,Re=t.height/$.height*R,Ne=u.width*Ee,je=u.height*Re,gt=-$.x*Ee,ft=-$.y*Re,ht=t.width-Ne,Lt=0,qe=t.height-je,Dt=0,ge=Math.max(ht,Math.min(Lt,H.x())),k=Math.max(qe,Math.min(Dt,H.y()));H.x(ge),H.y(k),C({x:ge-gt,y:k-ft})},[t.crop,t.width,t.height,u,R]),q=oe.useCallback(()=>{if(!t.crop||!u){x(!1);return}const ae=t.crop,H=ae.width/t.width/R,$=ae.height/t.height/R,Ee=ae.width/R,Re=ae.height/R,Ne=Math.max(0,Math.min(u.width-Ee,ae.x-S.x*H)),je=Math.max(0,Math.min(u.height-Re,ae.y-S.y*$));s({crop:{x:Ne,y:je,width:Ee,height:Re}}),x(!1),C({x:0,y:0}),T(1)},[t.crop,t.width,t.height,u,S,R,s]),Y=oe.useCallback(()=>{x(!1),C({x:0,y:0}),T(1)},[]),X=oe.useCallback(()=>{C({x:0,y:0}),T(1)},[]);if(oe.useEffect(()=>{if(!y)return;const ae=H=>{H.key==="Escape"?Y():H.key==="Enter"&&q()};return window.addEventListener("keydown",ae),()=>window.removeEventListener("keydown",ae)},[y,q,Y]),!u)return null;const he=t.crop,G=he?t.width/he.width:1,te=he?t.height/he.height:1,L=y?G*R:G,ne=y?te*R:te,le=u.width*L,Ae=u.height*ne,re=he?-he.x*L:0,ie=he?-he.y*ne:0;return w.jsxs(w.Fragment,{children:[y&&he&&w.jsxs(di,{x:t.x+t.width/2,y:t.y+t.height/2,offsetX:t.width/2,offsetY:t.height/2,rotation:t.rotation,children:[w.jsx(Vr,{x:re+S.x-500,y:ie+S.y-500,width:le+1e3,height:Ae+1e3,fill:"rgba(0,0,0,0.5)",listening:!1}),w.jsx(tA,{ref:p,image:u,x:re+S.x,y:ie+S.y,width:le,height:Ae,opacity:.7,draggable:!0,onDragMove:K}),w.jsx(di,{clipFunc:ae=>ae.rect(0,0,t.width,t.height),listening:!1,children:w.jsx(tA,{image:u,x:re+S.x,y:ie+S.y,width:le,height:Ae})}),w.jsx(Vr,{x:0,y:0,width:t.width,height:t.height,stroke:"#5B6EF7",strokeWidth:2,fill:"transparent",listening:!1}),[{x:0,y:0},{x:t.width,y:0},{x:0,y:t.height},{x:t.width,y:t.height}].map((ae,H)=>w.jsx(Vr,{x:ae.x-5,y:ae.y-5,width:10,height:10,fill:"#ffffff",stroke:"#5B6EF7",strokeWidth:2,cornerRadius:2,listening:!1},H))]}),!y&&w.jsx(di,{ref:d,x:t.x+t.width/2,y:t.y+t.height/2,offsetX:t.width/2,offsetY:t.height/2,rotation:t.rotation,draggable:!0,onClick:n,onTap:n,onDblClick:V,onDblTap:V,onDragStart:()=>i==null?void 0:i(),onDragMove:P,onDragEnd:M,onTransformStart:()=>i==null?void 0:i(),onTransformEnd:O,clipFunc:t.cornerRadius?I:void 0,children:w.jsx(tA,{image:u,x:0,y:0,width:t.width,height:t.height,crop:t.crop})}),y&&w.jsxs(di,{x:t.x,y:t.y-50,children:[w.jsx(Vr,{x:0,y:0,width:390,height:40,fill:"white",cornerRadius:8,shadowColor:"black",shadowBlur:10,shadowOpacity:.15}),w.jsxs(di,{x:10,y:5,onClick:()=>D(R-.25),onTap:()=>D(R-.25),children:[w.jsx(Vr,{width:30,height:30,fill:R<=1?"#e2e8f0":"#f1f5f9",cornerRadius:6}),w.jsx(Ks,{text:"-",x:0,y:0,width:30,height:30,align:"center",verticalAlign:"middle",fill:R<=1?"#94a3b8":"#64748b",fontSize:18,fontFamily:"Inter"})]}),w.jsx(Ks,{text:`${Math.round(R*100)}%`,x:45,y:5,width:50,height:30,align:"center",verticalAlign:"middle",fill:"#334155",fontSize:12,fontFamily:"Inter"}),w.jsxs(di,{x:100,y:5,onClick:()=>D(R+.25),onTap:()=>D(R+.25),children:[w.jsx(Vr,{width:30,height:30,fill:R>=3?"#e2e8f0":"#f1f5f9",cornerRadius:6}),w.jsx(Ks,{text:"+",x:0,y:0,width:30,height:30,align:"center",verticalAlign:"middle",fill:R>=3?"#94a3b8":"#64748b",fontSize:18,fontFamily:"Inter"})]}),w.jsxs(di,{x:140,y:5,onClick:X,onTap:X,children:[w.jsx(Vr,{width:50,height:30,fill:"#f1f5f9",cornerRadius:6}),w.jsx(Ks,{text:"↺",x:0,y:0,width:50,height:30,align:"center",verticalAlign:"middle",fill:"#64748b",fontSize:16,fontFamily:"Inter"})]}),w.jsxs(di,{x:200,y:5,onClick:q,onTap:q,children:[w.jsx(Vr,{width:85,height:30,fill:"#5B6EF7",cornerRadius:6}),w.jsx(Ks,{text:"완료",x:0,y:0,width:85,height:30,align:"center",verticalAlign:"middle",fill:"white",fontSize:13,fontFamily:"Noto Sans KR"})]}),w.jsxs(di,{x:295,y:5,onClick:Y,onTap:Y,children:[w.jsx(Vr,{width:85,height:30,fill:"#f1f5f9",cornerRadius:6}),w.jsx(Ks,{text:"취소",x:0,y:0,width:85,height:30,align:"center",verticalAlign:"middle",fill:"#64748b",fontSize:13,fontFamily:"Noto Sans KR"})]})]}),e&&!y&&w.jsx(nv,{ref:h,flipEnabled:!1,rotateEnabled:!0,rotateAnchorOffset:20,rotateAnchorCursor:"grab",anchorSize:10,anchorCornerRadius:5,anchorFill:"#ffffff",anchorStroke:"#5B6EF7",anchorStrokeWidth:2,borderStroke:"#5B6EF7",borderStrokeWidth:2,rotationSnaps:[0,15,30,45,60,75,90,105,120,135,150,165,180,195,210,225,240,255,270,285,300,315,330,345],rotationSnapTolerance:5,boundBoxFunc:(ae,H)=>Math.abs(H.width)<20||Math.abs(H.height)<20?ae:H})]})},yu=960,xu=540,h5=()=>{const t=oe.useRef(null),e=oe.useRef(null),[n,s]=oe.useState(1);oe.useEffect(()=>{const ge=()=>{if(!e.current)return;const ce=e.current.offsetWidth,de=e.current.offsetHeight,j=48,U=ce-j,Z=de-j,ye=U/yu,Ce=Z/xu,me=Math.min(ye,Ce);s(me)};ge();const k=new ResizeObserver(ge);return e.current&&k.observe(e.current),()=>k.disconnect()},[]);const i=Ve(ge=>ge.slides),c=Ve(ge=>ge.currentSlideIndex),d=Ve(ge=>ge.selectedElementId),h=Ve(ge=>ge.mode),p=Ve(ge=>ge.currentShapeType),u=Ve(ge=>ge.currentTextStyle),A=Ve(ge=>ge.currentFontFamily),y=Ve(ge=>ge.addElement),x=Ve(ge=>ge.updateElement),S=Ve(ge=>ge.deleteElement),C=Ve(ge=>ge.selectElement),R=Ve(ge=>ge.setMode),T=Ve(ge=>ge.snapSettings),D=Ve(ge=>ge.commitElementUpdate),P=Ve(ge=>ge.selectedElementIds),M=Ve(ge=>ge.selectElements),O=Ve(ge=>ge.clearSelection),I=i[c],[V,K]=oe.useState([]),[q,Y]=oe.useState(!1),[X,he]=oe.useState(null),[G,te]=oe.useState(!1),[L,ne]=oe.useState(null),[le,Ae]=oe.useState(!1),[re,ie]=oe.useState(null),[ae,H]=oe.useState("default"),$=oe.useCallback(ge=>{if(!d)return{isInZone:!1,element:null,corner:""};const k=I.elements.find(U=>U.id===d);if(!k)return{isInZone:!1,element:null,corner:""};const ce=[{name:"nw",x:k.x,y:k.y,checkX:-1,checkY:-1},{name:"ne",x:k.x+k.width,y:k.y,checkX:1,checkY:-1},{name:"sw",x:k.x,y:k.y+k.height,checkX:-1,checkY:1},{name:"se",x:k.x+k.width,y:k.y+k.height,checkX:1,checkY:1}],de=5,j=40;for(const U of ce){const Z=ge.x-U.x,ye=ge.y-U.y,Ce=Math.sqrt(Z*Z+ye*ye);if(Ce>=de&&Ce<=j){const me=U.checkX<0&&Z<0||U.checkX>0&&Z>0,ze=U.checkY<0&&ye<0||U.checkY>0&&ye>0;if(me&&ze)return{isInZone:!0,element:k,corner:U.name};if((me||ze)&&Ce<=25)return{isInZone:!0,element:k,corner:U.name}}}return{isInZone:!1,element:null,corner:""}},[d,I.elements]),Ee=oe.useCallback(ge=>{var j;const k=t.current;if(!k)return;const ce=k.getPointerPosition();if(!ce)return;if(h==="select"){const U=$(ce);if(U.isInZone&&U.element){D();const Z=U.element,ye=Z.x+Z.width/2,Ce=Z.y+Z.height/2,me=Math.atan2(ce.y-Ce,ce.x-ye)*(180/Math.PI);Ae(!0),ie({elementId:Z.id,centerX:ye,centerY:Ce,startAngle:me,initialRotation:Z.rotation||0});return}}ge.target===((j=ge.target.getStage())==null?void 0:j.findOne(".background"))&&(h==="select"?(te(!0),ne({startX:ce.x,startY:ce.y,currentX:ce.x,currentY:ce.y})):(h==="text"||h==="shape")&&(Y(!0),he({startX:ce.x,startY:ce.y,currentX:ce.x,currentY:ce.y})))},[h,O,$,D]),Re=oe.useCallback(ge=>{const k=t.current;if(!k)return;const ce=k.getPointerPosition();if(ce){if(le&&re){const j=Math.atan2(ce.y-re.centerY,ce.x-re.centerX)*(180/Math.PI)-re.startAngle;let U=re.initialRotation+j;const Z=15,ye=5,Ce=Math.round(U/Z)*Z;Math.abs(U-Ce)<ye&&(U=Ce),U=(U%360+360)%360,x(re.elementId,{rotation:U});return}if(h==="select"&&!G&&!q){const de=$(ce);de.isInZone?H({nw:"nwse-resize",ne:"nesw-resize",sw:"nesw-resize",se:"nwse-resize"}[de.corner]||"grab"):H("default")}if(G&&L){ne({...L,currentX:ce.x,currentY:ce.y});return}q&&X&&he({...X,currentX:ce.x,currentY:ce.y})}},[q,X,G,L,le,re,h,$,x]),Ne=oe.useCallback(ge=>{const k=Math.min(ge.startX,ge.currentX),ce=Math.min(ge.startY,ge.currentY),de=Math.abs(ge.currentX-ge.startX),j=Math.abs(ge.currentY-ge.startY);return de<5&&j<5?[]:I.elements.filter(U=>{const Z=U.x+U.width,ye=U.y+U.height,Ce=k+de,me=ce+j;return U.x<Ce&&Z>k&&U.y<me&&ye>ce}).map(U=>U.id)},[I.elements]),je=oe.useCallback(()=>{if(le){Ae(!1),ie(null),H("default");return}if(G&&L){const ye=Ne(L);ye.length>0?M(ye):O(),te(!1),ne(null);return}if(!q||!X)return;const ge=Math.min(X.startX,X.currentX),k=Math.min(X.startY,X.currentY),ce=Math.abs(X.currentX-X.startX),de=Math.abs(X.currentY-X.startY),j=20,U=Math.max(ce,j),Z=Math.max(de,j);if(h==="text"){const ye=Eu[u],Ce={id:fi(),type:"text",x:ge,y:k,width:U<100?u==="title"?600:300:U,height:Z<50?ye.fontSize*2:Z,rotation:0,content:u==="title"?"제목을 입력하세요":u==="subtitle"?"소제목을 입력하세요":"텍스트를 입력하세요",fontSize:ye.fontSize,fontFamily:A,fill:"#1e293b",align:u==="title"||u==="subtitle"?"center":"left",textStyle:u,fontWeight:ye.fontWeight,lineHeight:ye.lineHeight};y(Ce)}else if(h==="shape"){const ye={id:fi(),type:"shape",x:ge,y:k,width:U,height:Z,rotation:0,shapeType:p,fill:"#5B6EF7",stroke:"#4338ca",strokeWidth:2};y(ye)}Y(!1),he(null),R("select")},[q,X,h,p,u,A,y,R,G,L,Ne,M,O,le]),gt=()=>{if(!G||!L)return null;const ge=Math.min(L.startX,L.currentX),k=Math.min(L.startY,L.currentY),ce=Math.abs(L.currentX-L.startX),de=Math.abs(L.currentY-L.startY);return w.jsx(Vr,{x:ge,y:k,width:ce,height:de,fill:"rgba(91, 110, 247, 0.1)",stroke:"#5B6EF7",strokeWidth:1,dash:[4,4]})},ft=()=>{if(!q||!X)return null;const ge=Math.min(X.startX,X.currentX),k=Math.min(X.startY,X.currentY),ce=Math.abs(X.currentX-X.startX),de=Math.abs(X.currentY-X.startY);if(h==="text")return w.jsx(Vr,{x:ge,y:k,width:ce||100,height:de||40,fill:"rgba(91, 110, 247, 0.1)",stroke:"#5B6EF7",strokeWidth:1,dash:[5,5]});if(h==="shape"){const j={fill:"rgba(91, 110, 247, 0.3)",stroke:"#5B6EF7",strokeWidth:2};switch(p){case"rect":return w.jsx(Vr,{x:ge,y:k,width:ce,height:de,...j});case"ellipse":return w.jsx(ev,{x:ge+ce/2,y:k+de/2,radiusX:ce/2,radiusY:de/2,...j});case"triangle":return w.jsx(Uo,{points:[ge+ce/2,k,ge+ce,k+de,ge,k+de],closed:!0,...j});case"line":return w.jsx(Uo,{points:[X.startX,X.startY,X.currentX,X.currentY],stroke:"#5B6EF7",strokeWidth:2});case"arrow":return w.jsx(tv,{points:[X.startX,X.startY,X.currentX,X.currentY],stroke:"#5B6EF7",fill:"#5B6EF7",strokeWidth:2,pointerLength:10,pointerWidth:10});default:return null}}return null},ht=oe.useCallback((ge,k,ce=!1)=>{if(ce&&T.enabled&&"x"in k&&"y"in k){const de=I.elements.find(j=>j.id===ge);if(de){const j="width"in k?k.width:de.width,U="height"in k?k.height:de.height,Z=I.elements.filter(Ce=>Ce.id!==ge),ye=c5({x:k.x,y:k.y,width:j,height:U},Z,T);K(ye.guides),x(ge,{...k,x:ye.x,y:ye.y});return}}K([]),x(ge,k)},[x,T,I.elements]),Lt=oe.useCallback(()=>{K([])},[]),qe=oe.useCallback((ge,k)=>{const ce={id:fi(),type:"image",x:ge.x,y:ge.y,width:ge.width,height:ge.height,rotation:ge.rotation,src:k.src,crop:k.crop};S(ge.id),y(ce)},[S,y]),Dt=()=>V.length===0?null:V.map((ge,k)=>{const ce=ge.isCenter,de=ce?"#5B6EF7":"#ef4444",j=ce?2:1,U=ce?[8,4]:[4,4];return ge.type==="vertical"?w.jsx(Uo,{points:[ge.position,0,ge.position,xu],stroke:de,strokeWidth:j,dash:U},`guide-${k}`):w.jsx(Uo,{points:[0,ge.position,yu,ge.position],stroke:de,strokeWidth:j,dash:U},`guide-${k}`)});return w.jsx(z.Center,{ref:e,w:"100%",h:"100%",children:w.jsx(z.Box,{style:{width:yu*n,height:xu*n},children:w.jsx(z.Box,{bg:"white",style:{width:yu,height:xu,transform:`scale(${n})`,transformOrigin:"top left",borderRadius:"var(--mantine-radius-md)",overflow:"hidden",boxShadow:"0 20px 70px rgba(0, 0, 0, 0.12)"},children:w.jsx(l5,{ref:t,width:yu,height:xu,onMouseDown:Ee,onMouseMove:Re,onMouseUp:je,onMouseLeave:je,style:{cursor:h!=="select"?"crosshair":le?"grabbing":ae},children:w.jsxs(o5,{children:[w.jsx(Vr,{name:"background",x:0,y:0,width:yu,height:xu,fill:I.background}),I.elements.map(ge=>{const k=d===ge.id||P.includes(ge.id);return ge.type==="text"?w.jsx(u5,{element:ge,isSelected:k,onSelect:()=>C(ge.id),onChange:(ce,de)=>ht(ge.id,ce,de),onDragStart:D,onDragEnd:Lt},ge.id):ge.type==="shape"?w.jsx(d5,{element:ge,isSelected:k,onSelect:()=>C(ge.id),onChange:(ce,de)=>ht(ge.id,ce,de),onDragStart:D,onDragEnd:Lt,onReplaceWithImage:ce=>qe(ge,ce)},ge.id):ge.type==="image"?w.jsx(f5,{element:ge,isSelected:k,onSelect:()=>C(ge.id),onChange:(ce,de)=>ht(ge.id,ce,de),onDragStart:D,onDragEnd:Lt},ge.id):null}),Dt(),ft(),gt()]})})})})})},K2={position:"fixed",top:"50%",transform:"translateY(-50%)",zIndex:30,width:48,height:48,borderRadius:"50%",backgroundColor:"rgba(255, 255, 255, 0.8)",backdropFilter:"blur(12px)",border:"1px solid var(--devdive-border-light)",boxShadow:"0 10px 25px rgba(0, 0, 0, 0.1)"},p5=()=>{const t=Ve(h=>h.slides),e=Ve(h=>h.currentSlideIndex),n=Ve(h=>h.selectSlide),s=e>0,i=e<t.length-1,c=()=>{s&&n(e-1)},d=()=>{i&&n(e+1)};return w.jsxs(w.Fragment,{children:[w.jsx(z.Tooltip,{label:"이전 슬라이드",position:"right",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"xl",onClick:c,disabled:!s,style:{...K2,left:24},children:w.jsx("span",{className:"material-symbols-outlined",children:"chevron_left"})})}),w.jsx(z.Tooltip,{label:"다음 슬라이드",position:"left",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"xl",onClick:d,disabled:!i,style:{...K2,right:24},children:w.jsx("span",{className:"material-symbols-outlined",children:"chevron_right"})})})]})},sA=142,Fg=80,W9=960,nn=sA/W9,X9=({element:t,scale:e})=>{const[n]=O9(t.src);return n?w.jsx(tA,{image:n,x:t.x*e,y:t.y*e,width:t.width*e,height:t.height*e,rotation:t.rotation}):null},Q9=({slide:t})=>{const e=oe.useMemo(()=>t.elements.map(n=>{if(n.type==="text"){const s=n;return w.jsx(Ks,{x:s.x*nn,y:s.y*nn,width:s.width*nn,height:s.height*nn,text:a6(s.content),fontSize:s.fontSize*nn,fontFamily:s.fontFamily,fill:s.fill,align:s.align,rotation:s.rotation},n.id)}else if(n.type==="shape"){const s=n,i={x:s.x*nn,y:s.y*nn,fill:s.fill,stroke:s.stroke,strokeWidth:s.strokeWidth*nn,rotation:s.rotation};switch(s.shapeType){case"rect":return w.jsx(Vr,{width:s.width*nn,height:s.height*nn,...i},n.id);case"ellipse":return w.jsx(ev,{x:(s.x+s.width/2)*nn,y:(s.y+s.height/2)*nn,radiusX:s.width/2*nn,radiusY:s.height/2*nn,fill:s.fill,stroke:s.stroke,strokeWidth:s.strokeWidth*nn,rotation:s.rotation},n.id);case"triangle":return w.jsx(Uo,{points:[(s.x+s.width/2)*nn,s.y*nn,(s.x+s.width)*nn,(s.y+s.height)*nn,s.x*nn,(s.y+s.height)*nn],closed:!0,fill:s.fill,stroke:s.stroke,strokeWidth:s.strokeWidth*nn},n.id);case"line":return w.jsx(Uo,{points:[s.x*nn,s.y*nn,(s.x+s.width)*nn,(s.y+s.height)*nn],stroke:s.stroke,strokeWidth:s.strokeWidth*nn},n.id);case"arrow":return w.jsx(tv,{points:[s.x*nn,s.y*nn,(s.x+s.width)*nn,(s.y+s.height)*nn],stroke:s.stroke,fill:s.stroke,strokeWidth:s.strokeWidth*nn,pointerLength:5,pointerWidth:5},n.id);default:return null}}else if(n.type==="image")return w.jsx(X9,{element:n,scale:nn},n.id);return null}),[t.elements]);return w.jsx(l5,{width:sA,height:Fg,children:w.jsxs(o5,{children:[w.jsx(Vr,{x:0,y:0,width:sA,height:Fg,fill:t.background}),e]})})},A5=()=>{const t=Ve(p=>p.slides),e=Ve(p=>p.currentSlideIndex),n=Ve(p=>p.selectSlide),s=Ve(p=>p.addSlide),i=Ve(p=>p.deleteSlide),[c,d]=oe.useState(null),h=(p,u)=>{p.stopPropagation(),t.length>1&&i(u)};return w.jsx(z.Box,{h:128,bg:"white",px:"md",style:{borderTop:"1px solid var(--devdive-border-light)"},children:w.jsx(z.ScrollArea,{h:"100%",type:"auto",scrollbarSize:6,children:w.jsxs(z.Group,{gap:"md",h:128,align:"center",wrap:"nowrap",children:[t.map((p,u)=>w.jsxs(z.Box,{pos:"relative",style:{flexShrink:0},onMouseEnter:()=>d(u),onMouseLeave:()=>d(null),children:[w.jsxs(z.Badge,{size:"xs",color:e===u?"devdive":"gray",pos:"absolute",top:-8,left:8,style:{zIndex:10},children:["#",u+1]}),c===u&&t.length>1&&w.jsx(z.ActionIcon,{variant:"filled",color:"red",size:"xs",radius:"xl",pos:"absolute",top:-6,right:-6,style:{zIndex:20},onClick:A=>h(A,u),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:12},children:"close"})}),w.jsx(z.UnstyledButton,{onClick:()=>n(u),style:{borderRadius:"var(--mantine-radius-lg)",overflow:"hidden",border:e===u?"2px solid var(--devdive-primary)":"1px solid var(--devdive-border-light)",boxShadow:e===u?"0 0 0 4px rgba(91, 110, 247, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1)":void 0,transition:"all 150ms ease"},children:w.jsx(Q9,{slide:p})})]},p.id)),w.jsx(z.ActionIcon,{variant:"outline",color:"gray",size:Fg,w:sA,radius:"lg",onClick:s,style:{flexShrink:0,borderStyle:"dashed",borderWidth:2},children:w.jsxs(z.Box,{ta:"center",children:[w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:20},children:"add"}),w.jsx(z.Box,{fz:9,fw:700,tt:"uppercase",lts:"0.05em",children:"Add"})]})})]})})})},m5=()=>{const[t,e]=oe.useState(!1),n=Ve(T=>T.slides),s=Ve(T=>T.currentSlideIndex),i=Ve(T=>T.selectedElementId),c=Ve(T=>T.updateElement),d=Ve(T=>T.updateSlideBackground),h=Ve(T=>T.bringToFront),p=Ve(T=>T.sendToBack),u=Ve(T=>T.bringForward),A=Ve(T=>T.sendBackward),y=Ve(T=>T.copyElement),x=Ve(T=>T.commitElementUpdate),S=n[s],C=i?S.elements.find(T=>T.id===i):null;if(t)return w.jsx(z.Box,{w:40,bg:"white",py:"md",style:{borderLeft:"1px solid var(--devdive-border-light)"},children:w.jsx(z.Stack,{align:"center",children:w.jsx(z.Tooltip,{label:"속성 패널 펼치기",position:"left",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",onClick:()=>e(!1),children:w.jsx("span",{className:"material-symbols-outlined",children:"chevron_left"})})})})});if(!C)return w.jsxs(z.Box,{w:256,p:"md",bg:"white",style:{borderLeft:"1px solid var(--devdive-border-light)",overflowY:"auto"},children:[w.jsxs(z.Group,{justify:"space-between",mb:"md",children:[w.jsxs(z.Group,{gap:"xs",children:[w.jsx("span",{className:"material-symbols-outlined",style:{color:"var(--devdive-primary)",fontSize:18},children:"palette"}),w.jsx(z.Text,{size:"sm",fw:700,children:"슬라이드 설정"})]}),w.jsx(z.Tooltip,{label:"패널 접기",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"sm",onClick:()=>e(!0),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"chevron_right"})})})]}),w.jsx(_f,{color:S.background,onChange:T=>d(T),label:"배경 색상"}),w.jsxs(z.Box,{mt:"xl",pt:"md",ta:"center",c:"dimmed",style:{borderTop:"1px solid var(--devdive-border-light)"},children:[w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:32,marginBottom:4},children:"touch_app"}),w.jsxs(z.Text,{size:"xs",children:["요소를 선택하면",w.jsx("br",{}),"속성을 편집할 수 있습니다"]}),w.jsxs(z.Text,{size:"xs",c:"dimmed",mt:"sm",children:["하단 입력창에서 AI로",w.jsx("br",{}),"슬라이드 내용을 수정하세요"]})]})]});const R=T=>{c(i,T)};return w.jsxs(z.Box,{w:256,p:"md",bg:"white",style:{borderLeft:"1px solid var(--devdive-border-light)",overflowY:"auto"},children:[w.jsxs(z.Group,{justify:"space-between",mb:"md",children:[w.jsxs(z.Group,{gap:"xs",children:[w.jsx("span",{className:"material-symbols-outlined",style:{color:"var(--devdive-primary)",fontSize:18},children:"tune"}),w.jsx(z.Text,{size:"sm",fw:700,children:"속성"})]}),w.jsx(z.Tooltip,{label:"패널 접기",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"sm",onClick:()=>e(!0),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"chevron_right"})})})]}),w.jsxs(z.Box,{mb:"md",pb:"md",style:{borderBottom:"1px solid var(--devdive-border-light)"},children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"레이어 순서"}),w.jsxs(z.Group,{gap:4,children:[w.jsx(z.Tooltip,{label:"맨 뒤로 (Ctrl+[)",children:w.jsx(z.ActionIcon,{variant:"light",color:"gray",onClick:p,flex:1,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"vertical_align_bottom"})})}),w.jsx(z.Tooltip,{label:"한 단계 뒤로",children:w.jsx(z.ActionIcon,{variant:"light",color:"gray",onClick:A,flex:1,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"arrow_downward"})})}),w.jsx(z.Tooltip,{label:"한 단계 앞으로",children:w.jsx(z.ActionIcon,{variant:"light",color:"gray",onClick:u,flex:1,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"arrow_upward"})})}),w.jsx(z.Tooltip,{label:"맨 앞으로 (Ctrl+])",children:w.jsx(z.ActionIcon,{variant:"light",color:"gray",onClick:h,flex:1,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"vertical_align_top"})})})]}),w.jsx(z.Button,{variant:"light",color:"gray",size:"xs",fullWidth:!0,mt:"xs",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"content_copy"}),onClick:y,children:"복사"})]}),w.jsx(Y9,{element:C,onUpdate:R,onStartEdit:x}),C.type==="text"&&w.jsx(V9,{element:C,onUpdate:R,onStartEdit:x}),C.type==="shape"&&w.jsx(q9,{element:C,onUpdate:R,onStartEdit:x}),C.type==="image"&&w.jsx(K9,{element:C,onUpdate:R,onStartEdit:x})]})},Y9=({element:t,onUpdate:e,onStartEdit:n})=>{const[s,i]=oe.useState(Math.round(t.width)),[c,d]=oe.useState(Math.round(t.height)),[h,p]=oe.useState(!0),u=t.width/t.height;oe.useEffect(()=>{i(Math.round(t.width)),d(Math.round(t.height))},[t.width,t.height]);const A=x=>{const S=Number(x);if(i(S),h){const C=Math.round(S/u);d(C),e({width:S,height:C})}else e({width:S})},y=x=>{const S=Number(x);if(d(S),h){const C=Math.round(S*u);i(C),e({width:C,height:S})}else e({height:S})};return w.jsxs(z.Box,{mb:"md",pb:"md",style:{borderBottom:"1px solid var(--devdive-border-light)"},children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"크기"}),w.jsxs(z.Group,{gap:"xs",align:"flex-end",children:[w.jsxs(z.Box,{flex:1,children:[w.jsx(z.Text,{size:"xs",c:"dimmed",mb:2,children:"너비"}),w.jsx(z.NumberInput,{value:s,onFocus:n,onChange:A,size:"xs",min:10})]}),w.jsx(z.Tooltip,{label:h?"비율 잠금 해제":"비율 잠금",children:w.jsx(z.ActionIcon,{variant:h?"light":"subtle",color:h?"devdive":"gray",onClick:()=>p(!h),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:h?"link":"link_off"})})}),w.jsxs(z.Box,{flex:1,children:[w.jsx(z.Text,{size:"xs",c:"dimmed",mb:2,children:"높이"}),w.jsx(z.NumberInput,{value:c,onFocus:n,onChange:y,size:"xs",min:10})]})]})]})},_f=({color:t,onChange:e,label:n,onStartEdit:s})=>{const[i,c]=oe.useState(!1),[d,h]=oe.useState(t);oe.useEffect(()=>{h(t)},[t]);const p=["#5B6EF7","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#8b5cf6","#ec4899","#1e293b","#64748b","#e2e8f0","#ffffff"];return w.jsxs(z.Box,{mb:"sm",children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:n}),w.jsxs(z.Group,{gap:"xs",children:[w.jsxs(z.Popover,{opened:i,onChange:c,position:"bottom-start",radius:"lg",shadow:"xl",children:[w.jsx(z.Popover.Target,{children:w.jsx(z.ActionIcon,{variant:"outline",size:"lg",onClick:()=>{i||s==null||s(),c(!i)},style:{backgroundColor:d,borderColor:"var(--devdive-border-light)"}})}),w.jsx(z.Popover.Dropdown,{p:"sm",children:w.jsxs(z.Stack,{gap:"sm",children:[w.jsx(xx,{color:d,onChange:u=>{h(u),e(u)}}),w.jsx(z.Box,{pt:"sm",style:{borderTop:"1px solid var(--devdive-border-light)"},children:w.jsx(z.SimpleGrid,{cols:4,spacing:6,children:p.map(u=>w.jsx(z.ActionIcon,{size:"sm",variant:"outline",onClick:()=>{h(u),e(u)},style:{backgroundColor:u,borderColor:"var(--devdive-border-light)"}},u))})})]})})]}),w.jsx(z.NumberInput,{value:d,onChange:u=>{const A=String(u);h(A),/^#[0-9A-Fa-f]{6}$/.test(A)&&e(A)},hideControls:!0,size:"xs",flex:1,styles:{input:{fontFamily:"monospace"}}})]})]})},V9=({element:t,onUpdate:e,onStartEdit:n})=>w.jsxs(z.Stack,{gap:"md",children:[w.jsx(_f,{color:t.fill,onChange:s=>e({fill:s}),label:"텍스트 색상",onStartEdit:n}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"폰트 크기"}),w.jsx(z.NumberInput,{value:t.fontSize,onFocus:n,onChange:s=>e({fontSize:Number(s)}),size:"xs",min:8,max:200})]}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"정렬"}),w.jsx(z.SegmentedControl,{value:t.align,onChange:s=>{n(),e({align:s})},fullWidth:!0,size:"xs",data:[{value:"left",label:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"format_align_left"})},{value:"center",label:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"format_align_center"})},{value:"right",label:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"format_align_right"})}]})]})]}),q9=({element:t,onUpdate:e,onStartEdit:n})=>{const s=t.shapeType!=="line"&&t.shapeType!=="arrow";return w.jsxs(z.Stack,{gap:"md",children:[w.jsx(_f,{color:t.fill,onChange:i=>e({fill:i}),label:"채우기 색상",onStartEdit:n}),w.jsx(_f,{color:t.stroke,onChange:i=>e({stroke:i}),label:"외곽선 색상",onStartEdit:n}),w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:["외곽선 두께: ",t.strokeWidth,"px"]}),w.jsx(z.Slider,{value:t.strokeWidth,onChange:i=>e({strokeWidth:i}),onChangeEnd:n,min:0,max:20,color:"devdive",size:"sm"})]}),t.shapeType==="rect"&&w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:["모서리 곡률: ",t.cornerRadius||0,"px"]}),w.jsx(z.Slider,{value:t.cornerRadius||0,onChange:i=>e({cornerRadius:i}),onChangeEnd:n,min:0,max:Math.min(t.width,t.height)/2,color:"devdive",size:"sm"}),w.jsx(z.Group,{gap:4,mt:"xs",children:[0,8,16,24,999].map(i=>w.jsx(z.Button,{variant:(t.cornerRadius||0)===i?"filled":"light",color:(t.cornerRadius||0)===i?"devdive":"gray",size:"xs",flex:1,px:4,onClick:()=>{n(),e({cornerRadius:i===999?Math.min(t.width,t.height)/2:i})},children:i===999?"원형":i},i))})]}),s&&w.jsxs(z.Box,{pt:"md",style:{borderTop:"1px solid var(--devdive-border-light)"},children:[w.jsxs(z.Group,{gap:"xs",mb:"xs",children:[w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"text_fields"}),w.jsx(z.Text,{size:"xs",fw:600,children:"도형 텍스트"})]}),w.jsx(z.Text,{size:"xs",c:"dimmed",mb:"sm",children:"더블클릭으로 텍스트 편집"}),w.jsx(_f,{color:t.textColor||"#1e293b",onChange:i=>e({textColor:i}),label:"텍스트 색상",onStartEdit:n}),w.jsxs(z.Box,{mb:"sm",children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"텍스트 크기"}),w.jsx(z.NumberInput,{value:t.textSize||16,onFocus:n,onChange:i=>e({textSize:Number(i)}),size:"xs",min:8,max:72})]}),t.text&&w.jsxs(z.Box,{p:"xs",bg:"gray.0",style:{borderRadius:"var(--mantine-radius-md)"},children:[w.jsx(z.Text,{size:"xs",c:"dimmed",mb:2,children:"현재 텍스트"}),w.jsx(z.Text,{size:"sm",truncate:!0,children:t.text})]})]})]})},K9=({element:t,onUpdate:e,onStartEdit:n})=>{const[s,i]=oe.useState(100),c=t.width,d=t.height,h=p=>{i(p);const u=p/100;e({width:Math.round(c*u),height:Math.round(d*u)})};return w.jsxs(z.Stack,{gap:"md",children:[w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"미리보기"}),w.jsx(z.Box,{h:96,bg:"gray.1",style:{borderRadius:"var(--mantine-radius-md)",border:"1px solid var(--devdive-border-light)",overflow:"hidden"},children:w.jsx("img",{src:t.src,alt:"preview",style:{width:"100%",height:"100%",objectFit:"contain"}})})]}),w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:["크기 비율: ",s,"%"]}),w.jsx(z.Slider,{value:s,onChange:h,onChangeEnd:n,min:10,max:200,color:"devdive",size:"sm"}),w.jsx(z.Group,{gap:4,mt:"xs",children:[50,75,100,125,150].map(p=>w.jsxs(z.Button,{variant:s===p?"filled":"light",color:s===p?"devdive":"gray",size:"xs",flex:1,px:4,onClick:()=>{n(),h(p)},children:[p,"%"]},p))})]}),w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:["모서리 곡률: ",t.cornerRadius||0,"px"]}),w.jsx(z.Slider,{value:t.cornerRadius||0,onChange:p=>e({cornerRadius:p}),onChangeEnd:n,min:0,max:Math.min(t.width,t.height)/2,color:"devdive",size:"sm"}),w.jsx(z.Group,{gap:4,mt:"xs",children:[0,8,16,24,999].map(p=>w.jsx(z.Button,{variant:(t.cornerRadius||0)===p?"filled":"light",color:(t.cornerRadius||0)===p?"devdive":"gray",size:"xs",flex:1,px:4,onClick:()=>{n(),e({cornerRadius:p===999?Math.min(t.width,t.height)/2:p})},children:p===999?"원형":p},p))})]}),w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:["회전: ",Math.round(t.rotation||0),"°"]}),w.jsx(z.Slider,{value:t.rotation||0,onChange:p=>e({rotation:p}),onChangeEnd:n,min:0,max:360,color:"devdive",size:"sm"})]})]})},J9=()=>{const[t,e]=oe.useState(!1),[n,s]=oe.useState([]),[i,c]=oe.useState(""),[d,h]=oe.useState(!1),[p,u]=oe.useState([]),[A,y]=oe.useState(-1),x=oe.useRef(null),S=oe.useRef(null),{generateSlideContent:C}=cA(),R=Ve(X=>X.slides),T=Ve(X=>X.currentSlideIndex),D=Ve(X=>X.updateElement),P=R[T];oe.useEffect(()=>{x.current&&t&&x.current.scrollTo({top:x.current.scrollHeight,behavior:"smooth"})},[n,t]),oe.useEffect(()=>{if(P){const X={id:`snapshot-initial-${T}`,timestamp:new Date,elements:JSON.parse(JSON.stringify(P.elements)),messageId:"initial"};u([X]),y(0),s([]),e(!1)}},[T]);const M=oe.useCallback(()=>{setTimeout(()=>{var G;const X=(G=Ve.getState().slides[T])==null?void 0:G.elements;if(!X)return;const he={id:`snapshot-after-${Date.now()}`,timestamp:new Date,elements:JSON.parse(JSON.stringify(X)),messageId:"after-change"};u(te=>[...te.slice(0,A+1),he]),y(te=>te+1)},50)},[T,A]),O=oe.useCallback(()=>{if(A<=0)return;const X=A-1,he=p[X];if(!he)return;he.elements.forEach(te=>{D(te.id,{...te})}),y(X);const G={id:`undo-${Date.now()}`,role:"assistant",content:"이전 상태로 되돌렸습니다.",timestamp:new Date};s(te=>[...te,G])},[A,p,D]),I=oe.useCallback(()=>{if(A>=p.length-1)return;const X=A+1,he=p[X];if(!he)return;he.elements.forEach(te=>{D(te.id,{...te})}),y(X);const G={id:`redo-${Date.now()}`,role:"assistant",content:"변경사항을 다시 적용했습니다.",timestamp:new Date};s(te=>[...te,G])},[A,p,D]),V=async()=>{var he;if(!i.trim()||d)return;t||e(!0);const X={id:`user-${Date.now()}`,role:"user",content:i.trim(),timestamp:new Date};s(G=>[...G,X]),c(""),h(!0);try{const G=P.elements.filter(ie=>ie.type==="text"),te=await C({topic:i.trim(),slideIndex:T,totalSlides:R.length,layout:"content",purpose:i.trim(),style:"사용자 요청에 맞게 수정",language:"ko"}),L=`assistant-${Date.now()}`;let ne=!1;const le=[];if(te.title&&G.length>0){const ie=G.find(ae=>ae.textStyle==="title");ie&&(D(ie.id,{content:te.title}),le.push(`제목: "${te.title}"`),ne=!0)}if(te.subtitle){const ie=G.find(ae=>ae.textStyle==="subtitle");ie&&(D(ie.id,{content:te.subtitle}),le.push(`부제목: "${te.subtitle}"`),ne=!0)}if(te.bulletPoints&&te.bulletPoints.length>0){const ie=G.filter(ae=>ae.textStyle==="body");te.bulletPoints.forEach((ae,H)=>{ie[H]&&(D(ie[H].id,{content:ae}),ne=!0)}),te.bulletPoints.length>0&&le.push(`불릿포인트 ${te.bulletPoints.length}개 수정`)}ne&&M();const Ae=ne?`수정 완료!
|
|
462
|
-
${
|
|
463
|
-
`)}`:"적용할 텍스트 요소를 찾지 못했습니다.",
|
|
461
|
+
`,F8={};function pA(t,e,n=F8){if(!U2&&"zIndex"in e&&(console.warn(z8),U2=!0),!j2&&e.draggable){var s=e.x!==void 0||e.y!==void 0,i=e.onDragEnd||e.onDragMove;s&&!i&&(console.warn(M8),j2=!0)}for(var c in n)if(!O2[c]){var d=c.slice(0,2)==="on",h=n[c]!==e[c];if(d&&h){var p=c.substr(2).toLowerCase();p.substr(0,7)==="content"&&(p="content"+p.substr(7,1).toUpperCase()+p.substr(8)),t.off(p,n[c])}var u=!e.hasOwnProperty(c);u&&t.setAttr(c,void 0)}var A=e._useStrictMode,y={},x=!1;const S={};for(var c in e)if(!O2[c]){var d=c.slice(0,2)==="on",C=n[c]!==e[c];if(d&&C){var p=c.substr(2).toLowerCase();p.substr(0,7)==="content"&&(p="content"+p.substr(7,1).toUpperCase()+p.substr(8)),e[c]&&(S[p]=e[c])}!d&&(e[c]!==n[c]||A&&e[c]!==t.getAttr(c))&&(x=!0,y[c]=e[c])}x&&(t.setAttrs(y),Qo(t));for(var p in S)t.on(p+Zg,S[p])}function Qo(t){if(!Qe.autoDrawEnabled){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}}var cg=Jg();const t5={},I8={};Ml.Node.prototype._applyProps=pA;function O8(t,e){if(typeof e=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${e}`);return}t.add(e),Qo(t)}function U8(t,e,n){let s=Ml[t];s||(console.error(`Konva has no node with the type ${t}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${t}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),s=Ml.Group);const i={},c={};for(var d in e){var h=d.slice(0,2)==="on";h?c[d]=e[d]:i[d]=e[d]}const p=new s(i);return pA(p,c),p}function j8(t,e,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${t}"`)}function G8(t,e,n){return!1}function H8(t){return t}function W8(){return null}function X8(){return null}function Q8(t,e,n,s){return I8}function Y8(){}function V8(t){}function q8(t,e){return!1}function K8(){return t5}function J8(){return t5}const Z8=setTimeout,$8=clearTimeout,e9=-1;function t9(t,e){return!1}const n9=!1,r9=!0,a9=!0;function i9(t,e){e.parent===t?e.moveToTop():t.add(e),Qo(t)}function s9(t,e){e.parent===t?e.moveToTop():t.add(e),Qo(t)}function n5(t,e,n){e._remove(),t.add(e),e.setZIndex(n.getZIndex()),Qo(t)}function o9(t,e,n){n5(t,e,n)}function l9(t,e){e.destroy(),e.off(Zg),Qo(t)}function c9(t,e){e.destroy(),e.off(Zg),Qo(t)}function u9(t,e,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function d9(t,e,n){}function f9(t,e,n,s,i){pA(t,i,s)}function h9(t){t.hide(),Qo(t)}function p9(t){}function A9(t,e){(e.visible==null||e.visible)&&t.show()}function m9(t,e){}function g9(t){}function v9(){}const y9=()=>e5.DefaultEventPriority,x9=Object.freeze(Object.defineProperty({__proto__:null,appendChild:i9,appendChildToContainer:s9,appendInitialChild:O8,cancelTimeout:$8,clearContainer:g9,commitMount:d9,commitTextUpdate:u9,commitUpdate:f9,createInstance:U8,createTextInstance:j8,detachDeletedInstance:v9,finalizeInitialChildren:G8,getChildHostContext:J8,getCurrentEventPriority:y9,getPublicInstance:H8,getRootHostContext:K8,hideInstance:h9,hideTextInstance:p9,idlePriority:cg.unstable_IdlePriority,insertBefore:n5,insertInContainerBefore:o9,isPrimaryRenderer:n9,noTimeout:e9,now:cg.unstable_now,prepareForCommit:W8,preparePortalMount:X8,prepareUpdate:Q8,removeChild:l9,removeChildFromContainer:c9,resetAfterCommit:Y8,resetTextContent:V8,run:cg.unstable_runWithPriority,scheduleTimeout:Z8,shouldDeprioritizeSubtree:q8,shouldSetTextContent:t9,supportsMutation:a9,unhideInstance:A9,unhideTextInstance:m9,warnsIfNotActing:r9},Symbol.toStringTag,{value:"Module"}));var b9=Object.defineProperty,S9=Object.defineProperties,C9=Object.getOwnPropertyDescriptors,G2=Object.getOwnPropertySymbols,w9=Object.prototype.hasOwnProperty,_9=Object.prototype.propertyIsEnumerable,H2=(t,e,n)=>e in t?b9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,W2=(t,e)=>{for(var n in e||(e={}))w9.call(e,n)&&H2(t,n,e[n]);if(G2)for(var n of G2(e))_9.call(e,n)&&H2(t,n,e[n]);return t},E9=(t,e)=>S9(t,C9(e)),X2,Q2;typeof window<"u"&&((X2=window.document)!=null&&X2.createElement||((Q2=window.navigator)==null?void 0:Q2.product)==="ReactNative")?_a.useLayoutEffect:_a.useEffect;function r5(t,e,n){if(!t)return;if(n(t)===!0)return t;let s=t.child;for(;s;){const i=r5(s,e,n);if(i)return i;s=s.sibling}}function a5(t){try{return Object.defineProperties(t,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return t}}const Y2=console.error;console.error=function(){const t=[...arguments].join("");if(t!=null&&t.startsWith("Warning:")&&t.includes("useContext")){console.error=Y2;return}return Y2.apply(this,arguments)};const $g=a5(_a.createContext(null));class i5 extends _a.Component{render(){return _a.createElement($g.Provider,{value:this._reactInternals},this.props.children)}}function R9(){const t=_a.useContext($g);if(t===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const e=_a.useId();return _a.useMemo(()=>{for(const s of[t,t==null?void 0:t.alternate]){if(!s)continue;const i=r5(s,!1,c=>{let d=c.memoizedState;for(;d;){if(d.memoizedState===e)return!0;d=d.next}});if(i)return i}},[t,e])}function T9(){const t=R9(),[e]=_a.useState(()=>new Map);e.clear();let n=t;for(;n;){if(n.type&&typeof n.type=="object"){const i=n.type._context===void 0&&n.type.Provider===n.type?n.type:n.type._context;i&&i!==$g&&!e.has(i)&&e.set(i,_a.useContext(a5(i)))}n=n.return}return e}function s5(){const t=T9();return _a.useMemo(()=>Array.from(t.keys()).reduce((e,n)=>s=>_a.createElement(e,null,_a.createElement(n.Provider,E9(W2({},s),{value:t.get(n)}))),e=>_a.createElement(i5,W2({},e))),[t])}function D9(t){const e=oe.useRef({});return oe.useLayoutEffect(()=>{e.current=t}),oe.useLayoutEffect(()=>()=>{e.current={}},[]),e.current}const L9=t=>{const e=oe.useRef(null),n=oe.useRef(null),s=oe.useRef(null),i=D9(t),c=s5(),d=h=>{const{forwardedRef:p}=t;p&&(typeof p=="function"?p(h):p.current=h)};return oe.useLayoutEffect(()=>(n.current=new Ml.Stage({width:t.width,height:t.height,container:e.current}),d(n.current),s.current=vf.createContainer(n.current,e5.LegacyRoot,!1,null),vf.updateContainer(oe.createElement(c,{},t.children),s.current),()=>{Ml.isBrowser&&(d(null),vf.updateContainer(null,s.current,null),n.current.destroy())}),[]),oe.useLayoutEffect(()=>{d(n.current),pA(n.current,t,i),vf.updateContainer(oe.createElement(c,{},t.children),s.current,null)}),oe.createElement("div",{ref:e,id:t.id,accessKey:t.accessKey,className:t.className,role:t.role,style:t.style,tabIndex:t.tabIndex,title:t.title})},o5="Layer",di="Group",Vr="Rect",ev="Ellipse",Uo="Line",tA="Image",Ks="Text",tv="Arrow",nv="Transformer",vf=k8(x9);vf.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:process.env.NODE_ENV!=="production"?1:0,version:oe.version,rendererPackageName:"react-konva"});const l5=oe.forwardRef((t,e)=>oe.createElement(i5,{},oe.createElement(L9,{...t,forwardedRef:e}))),Vp=960,qp=540,c5=(t,e,n)=>{if(!n.enabled)return{x:t.x,y:t.y,guides:[]};let s=t.x,i=t.y;const c=[],d=Math.max(n.threshold,15),h=t.x,p=t.x+t.width,u=t.x+t.width/2,A=t.y,y=t.y+t.height,x=t.y+t.height/2,S=Vp/2,C=qp/2;if(n.snapToCenter&&(Math.abs(u-S)<d?(s=S-t.width/2,c.push({type:"vertical",position:S,isCenter:!0})):Math.abs(h-S)<d?(s=S,c.push({type:"vertical",position:S,isCenter:!0})):Math.abs(p-S)<d&&(s=S-t.width,c.push({type:"vertical",position:S,isCenter:!0})),Math.abs(x-C)<d?(i=C-t.height/2,c.push({type:"horizontal",position:C,isCenter:!0})):Math.abs(A-C)<d?(i=C,c.push({type:"horizontal",position:C,isCenter:!0})):Math.abs(y-C)<d&&(i=C-t.height,c.push({type:"horizontal",position:C,isCenter:!0}))),n.snapToEdges&&(Math.abs(h)<d&&(s=0,c.push({type:"vertical",position:0})),Math.abs(p-Vp)<d&&(s=Vp-t.width,c.push({type:"vertical",position:Vp})),Math.abs(A)<d&&(i=0,c.push({type:"horizontal",position:0})),Math.abs(y-qp)<d&&(i=qp-t.height,c.push({type:"horizontal",position:qp}))),n.snapToElements)for(const R of e){const T=R.x,D=R.x+R.width,P=R.x+R.width/2,M=R.y,O=R.y+R.height,I=R.y+R.height/2;Math.abs(h-T)<d&&(s=T,c.push({type:"vertical",position:T})),Math.abs(p-D)<d&&(s=D-t.width,c.push({type:"vertical",position:D})),Math.abs(u-P)<d&&(s=P-t.width/2,c.push({type:"vertical",position:P})),Math.abs(A-M)<d&&(i=M,c.push({type:"horizontal",position:M})),Math.abs(y-O)<d&&(i=O-t.height,c.push({type:"horizontal",position:O})),Math.abs(x-I)<d&&(i=I-t.height/2,c.push({type:"horizontal",position:I}))}return{x:s,y:i,guides:c}};var vu={},V2;function k9(){if(V2)return vu;V2=1;var t=J2;if(process.env.NODE_ENV==="production")vu.createRoot=t.createRoot,vu.hydrateRoot=t.hydrateRoot;else{var e=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;vu.createRoot=function(n,s){e.usingClientEntryPoint=!0;try{return t.createRoot(n,s)}finally{e.usingClientEntryPoint=!1}},vu.hydrateRoot=function(n,s,i){e.usingClientEntryPoint=!0;try{return t.hydrateRoot(n,s,i)}finally{e.usingClientEntryPoint=!1}}}return vu}var N9=k9();const B9=oA(N9);var P9=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++)e.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(n[s[i]]=t[s[i]]);return n};const M9=t=>{const e=window.getComputedStyle(t).position;return!(e==="absolute"||e==="relative")};function z9(t=()=>{}){const e=oe.useRef(t);return e.current=t,oe.useCallback((...n)=>e.current.apply(null,n),[])}const zg=({children:t,groupProps:e,divProps:n,transform:s,transformFunc:i,parentNodeFunc:c})=>{const d=s5(),h=oe.useRef(null),[p]=oe.useState(()=>document.createElement("div")),u=oe.useMemo(()=>B9.createRoot(p),[p]),A=s??!0,y=z9(()=>{if(A&&h.current){let T=h.current.getAbsoluteTransform().decompose();i&&(T=i(T)),p.style.position="absolute",p.style.zIndex="10",p.style.top="0px",p.style.left="0px",p.style.transform=`translate(${T.x}px, ${T.y}px) rotate(${T.rotation}deg) scaleX(${T.scaleX}) scaleY(${T.scaleY})`,p.style.transformOrigin="top left"}else p.style.position="",p.style.zIndex="",p.style.top="",p.style.left="",p.style.transform="",p.style.transformOrigin="";const x=n||{},{style:S}=x,C=P9(x,["style"]);Object.assign(p.style,S),Object.assign(p,C)});return oe.useLayoutEffect(()=>{var x;const S=h.current;if(!S)return;const C=c?c({stage:S.getStage()}):(x=S.getStage())===null||x===void 0?void 0:x.container();if(C)return C.appendChild(p),A&&M9(C)&&(C.style.position="relative"),S.on("absoluteTransformChange",y),y(),()=>{var R;S.off("absoluteTransformChange",y),(R=p.parentNode)===null||R===void 0||R.removeChild(p)}},[A,c]),oe.useLayoutEffect(()=>{y()},[n,i]),oe.useLayoutEffect(()=>{queueMicrotask(()=>{J2.flushSync(()=>{u.render(oe.createElement(d,null,t))})})}),oe.useLayoutEffect(()=>()=>{setTimeout(()=>{u.unmount()})},[]),oe.createElement(di,Object.assign({ref:h},e))};var ug,q2;function F9(){if(q2)return ug;q2=1;var t=oe;return ug=function(n,s,i){const c=t.useRef("loading"),d=t.useRef(),[h,p]=t.useState(0),u=t.useRef(),A=t.useRef(),y=t.useRef();return(u.current!==n||A.current!==s||y.current!==i)&&(c.current="loading",d.current=void 0,u.current=n,A.current=s,y.current=i),t.useLayoutEffect(function(){if(!n)return;var x=document.createElement("img");function S(){x.decode().catch(()=>{}).finally(()=>{c.current="loaded",d.current=x,p(Math.random())})}function C(){c.current="failed",d.current=void 0,p(Math.random())}return x.addEventListener("load",S),x.addEventListener("error",C),s&&(x.crossOrigin=s),i&&(x.referrerPolicy=i),x.src=n,function(){x.removeEventListener("load",S),x.removeEventListener("error",C)}},[n,s,i]),[d.current,c.current]},ug}var I9=F9();const O9=oA(I9),u5=({element:t,isSelected:e,onSelect:n,onChange:s,onDragStart:i,onDragEnd:c})=>{const d=oe.useRef(null),h=oe.useRef(null),p=oe.useRef(null),[u,A]=oe.useState(!1),[y,x]=oe.useState(t.fontSize*2);oe.useEffect(()=>{var P;e&&!u&&p.current&&d.current&&(p.current.nodes([d.current]),(P=p.current.getLayer())==null||P.batchDraw())},[e,u]),oe.useEffect(()=>{h.current&&x(h.current.height())},[t.content,t.fontSize,t.width]);const S=oe.useCallback(()=>{A(!0)},[]),C=oe.useCallback(P=>{s({content:P}),A(!1)},[s]),R=P=>{const M=P.target;s({x:M.x()-M.offsetX(),y:M.y()-M.offsetY()},!0)},T=P=>{const M=P.target;s({x:M.x()-M.offsetX(),y:M.y()-M.offsetY()}),c==null||c()},D=()=>{const P=d.current;if(!P)return;const M=P.scaleX(),O=Math.max(50,t.width*M);P.scaleX(1),P.scaleY(1),P.offsetX(O/2),s({x:P.x()-O/2,y:P.y()-P.offsetY(),width:O,rotation:P.rotation()})};return w.jsxs(w.Fragment,{children:[w.jsx(di,{ref:d,x:t.x+t.width/2,y:t.y+y/2,offsetX:t.width/2,offsetY:y/2,rotation:t.rotation,draggable:!u,onClick:n,onTap:n,onDblClick:S,onDblTap:S,onDragStart:()=>i==null?void 0:i(),onDragMove:R,onDragEnd:T,onTransformStart:()=>i==null?void 0:i(),onTransformEnd:D,children:w.jsx(Ks,{ref:h,x:0,y:0,width:t.width,text:t.content,fontSize:t.fontSize,fontFamily:t.fontFamily,fontStyle:t.fontWeight==="700"||t.fontWeight==="800"?"bold":"normal",fill:t.fill,align:t.align,lineHeight:t.lineHeight||1.2,opacity:u?0:1})}),e&&!u&&w.jsx(nv,{ref:p,flipEnabled:!1,enabledAnchors:["middle-left","middle-right"],rotateEnabled:!0,rotateAnchorOffset:20,rotateAnchorCursor:"grab",anchorSize:10,anchorCornerRadius:5,anchorFill:"#ffffff",anchorStroke:"#5B6EF7",anchorStrokeWidth:2,borderStroke:"#5B6EF7",borderStrokeWidth:2,rotationSnaps:[0,15,30,45,60,75,90,105,120,135,150,165,180,195,210,225,240,255,270,285,300,315,330,345],rotationSnapTolerance:5,boundBoxFunc:(P,M)=>Math.abs(M.width)<50?P:M}),u&&w.jsx(zg,{groupProps:{x:t.x,y:t.y},divProps:{style:{opacity:1}},children:w.jsx(j9,{element:t,onComplete:C,onCancel:()=>A(!1)})})]})},U9=t=>{let e=t.replace("#","");e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const n=parseInt(e.substring(0,2),16),s=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);return(n*299+s*587+i*114)/1e3>180},j9=({element:t,onComplete:e,onCancel:n})=>{const s=oe.useRef(null),[i,c]=oe.useState(t.content),d=U9(t.fill)?"#1e293b":t.fill;oe.useEffect(()=>{const u=s.current;u&&requestAnimationFrame(()=>{u.focus(),u.select()})},[]);const h=u=>{u.key==="Escape"?n():u.key==="Enter"&&!u.shiftKey&&(u.preventDefault(),e(i))},p=()=>{setTimeout(()=>{e(i)},100)};return w.jsx("textarea",{ref:s,value:i,onChange:u=>c(u.target.value),onKeyDown:h,onBlur:p,style:{width:`${t.width}px`,minHeight:"60px",padding:"8px",fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,color:d,textAlign:t.align,border:"2px solid #5B6EF7",borderRadius:"8px",outline:"none",resize:"vertical",backgroundColor:"white",boxShadow:"0 4px 20px rgba(0,0,0,0.15)",lineHeight:t.lineHeight||1.2},placeholder:"텍스트를 입력하세요... (마크다운 지원: **굵게**, *기울임*)"})},d5=({element:t,isSelected:e,onSelect:n,onChange:s,onDragStart:i,onDragEnd:c,onReplaceWithImage:d})=>{const h=oe.useRef(null),p=oe.useRef(null),u=oe.useRef(null),[A,y]=oe.useState(!1);oe.useEffect(()=>{var q;e&&!A&&p.current&&h.current&&(p.current.nodes([h.current]),(q=p.current.getLayer())==null||q.batchDraw())},[e,A]);const x=q=>{const Q=q.target;s({x:Q.x()-Q.offsetX(),y:Q.y()-Q.offsetY()},!0)},S=q=>{const Q=q.target;s({x:Q.x()-Q.offsetX(),y:Q.y()-Q.offsetY()}),c==null||c()},C=()=>{const q=h.current;if(!q)return;const Q=q.scaleX(),V=q.scaleY(),ge=Math.max(10,t.width*Q),W=Math.max(10,t.height*V);q.scaleX(1),q.scaleY(1),q.offsetX(ge/2),q.offsetY(W/2),s({x:q.x()-ge/2,y:q.y()-W/2,width:ge,height:W,rotation:q.rotation()})},R=oe.useCallback(()=>{t.isImagePlaceholder&&u.current&&u.current.click()},[t.isImagePlaceholder]),T=oe.useCallback(q=>{var ge;const Q=(ge=q.target.files)==null?void 0:ge[0];if(!Q||!d)return;const V=new FileReader;V.onload=W=>{var ne;const se=(ne=W.target)==null?void 0:ne.result,L=new window.Image;L.onload=()=>{const le=L.width/L.height,pe=t.width/t.height;let J=0,ae=0,re=L.width,U=L.height;le>pe?(re=L.height*pe,J=(L.width-re)/2):(U=L.width/pe,ae=(L.height-U)/2),d({src:se,width:t.width,height:t.height,crop:{x:J,y:ae,width:re,height:U}})},L.src=se},V.readAsDataURL(Q),q.target.value=""},[t.width,t.height,d]),D=oe.useCallback(()=>{t.isImagePlaceholder||t.shapeType==="line"||t.shapeType==="arrow"||y(!0)},[t.shapeType,t.isImagePlaceholder]),P=oe.useCallback(q=>{s({text:q}),y(!1)},[s]),M=()=>[t.width/2,0,t.width,t.height,0,t.height],O=()=>[0,0,t.width,t.height],I=()=>{const q={fill:t.fill,stroke:t.stroke,strokeWidth:t.strokeWidth};switch(t.shapeType){case"rect":return w.jsx(Vr,{width:t.width,height:t.height,cornerRadius:t.cornerRadius||0,...q});case"ellipse":return w.jsx(ev,{x:t.width/2,y:t.height/2,radiusX:t.width/2,radiusY:t.height/2,...q});case"triangle":return w.jsx(Uo,{points:M(),closed:!0,...q});case"line":return w.jsx(Uo,{points:O(),stroke:t.stroke,strokeWidth:t.strokeWidth});case"arrow":return w.jsx(tv,{points:O(),stroke:t.stroke,fill:t.stroke,strokeWidth:t.strokeWidth,pointerLength:10,pointerWidth:10});default:return null}},Y=t.shapeType!=="line"&&t.shapeType!=="arrow",K=oe.useCallback(()=>{t.isImagePlaceholder&&R(),n()},[t.isImagePlaceholder,R,n]);return w.jsxs(w.Fragment,{children:[t.isImagePlaceholder&&w.jsx(zg,{groupProps:{x:0,y:0},divProps:{style:{display:"none"}},children:w.jsx("input",{ref:u,type:"file",accept:"image/*",onChange:T,style:{display:"none"}})}),w.jsxs(di,{ref:h,x:t.x+t.width/2,y:t.y+t.height/2,offsetX:t.width/2,offsetY:t.height/2,rotation:t.rotation,draggable:!A,onClick:K,onTap:K,onDblClick:D,onDblTap:D,onDragStart:()=>i==null?void 0:i(),onDragMove:x,onDragEnd:S,onTransformStart:()=>i==null?void 0:i(),onTransformEnd:C,style:{cursor:t.isImagePlaceholder?"pointer":"move"},children:[I(),Y&&t.text&&!A&&w.jsx(Ks,{x:0,y:0,width:t.width,height:t.height,text:t.text,fontSize:t.textSize||16,fill:t.textColor||"#1e293b",align:"center",verticalAlign:"middle",listening:!1}),A&&w.jsx(zg,{groupProps:{x:0,y:0},divProps:{style:{opacity:1}},children:w.jsx(H9,{element:t,onComplete:P,onCancel:()=>y(!1)})})]}),e&&!A&&w.jsx(nv,{ref:p,flipEnabled:!1,rotateEnabled:!0,rotateAnchorOffset:20,rotateAnchorCursor:"grab",anchorSize:10,anchorCornerRadius:5,anchorFill:"#ffffff",anchorStroke:"#5B6EF7",anchorStrokeWidth:2,borderStroke:"#5B6EF7",borderStrokeWidth:2,rotationSnaps:[0,15,30,45,60,75,90,105,120,135,150,165,180,195,210,225,240,255,270,285,300,315,330,345],rotationSnapTolerance:5,boundBoxFunc:(q,Q)=>Math.abs(Q.width)<10||Math.abs(Q.height)<10?q:Q})]})},G9=t=>{let e=t.replace("#","");e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const n=parseInt(e.substring(0,2),16),s=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);return(n*299+s*587+i*114)/1e3>180},H9=({element:t,onComplete:e,onCancel:n})=>{const s=oe.useRef(null),[i,c]=oe.useState(t.text||""),d=t.textColor||"#1e293b",h=G9(d)?"#1e293b":d;oe.useEffect(()=>{s.current&&requestAnimationFrame(()=>{var A,y;(A=s.current)==null||A.focus(),(y=s.current)==null||y.select()})},[]);const p=A=>{A.key==="Escape"?n():A.key==="Enter"&&(A.preventDefault(),e(i))},u=()=>{setTimeout(()=>{e(i)},100)};return w.jsx("input",{ref:s,type:"text",value:i,onChange:A=>c(A.target.value),onKeyDown:p,onBlur:u,style:{width:`${t.width}px`,height:`${t.height}px`,padding:"8px",fontSize:`${t.textSize||16}px`,color:h,textAlign:"center",border:"2px solid #5B6EF7",borderRadius:t.shapeType==="ellipse"?"50%":"8px",outline:"none",backgroundColor:"rgba(255,255,255,0.9)",boxShadow:"0 4px 20px rgba(0,0,0,0.15)"},placeholder:"텍스트 입력..."})},f5=({element:t,isSelected:e,onSelect:n,onChange:s,onDragStart:i,onDragEnd:c})=>{const d=oe.useRef(null),h=oe.useRef(null),p=oe.useRef(null),[u,A]=oe.useState(null),[y,x]=oe.useState(!1),[S,C]=oe.useState({x:0,y:0}),[R,T]=oe.useState(1);oe.useEffect(()=>{const re=new window.Image;re.src=t.src,re.onload=()=>{A(re)}},[t.src]),oe.useEffect(()=>{var re;e&&!y&&h.current&&d.current&&(h.current.nodes([d.current]),(re=h.current.getLayer())==null||re.batchDraw())},[e,y]),oe.useEffect(()=>{y&&(C({x:0,y:0}),T(1))},[y]);const D=oe.useCallback(re=>{if(!t.crop||!u)return;const U=t.crop,ee=R,Ee=Math.max(1,Math.min(3,re)),Re=t.width/2,Ne=t.height/2,Ue=t.width/U.width*ee,ot=t.height/U.height*ee,lt=-U.x*Ue+S.x,pt=-U.y*ot+S.y,Lt=(Re-lt)/Ue,qe=(Ne-pt)/ot,Dt=t.width/U.width*Ee,me=t.height/U.height*Ee,k=Re-Lt*Dt,ce=Ne-qe*me,de=k+U.x*Dt,G=ce+U.y*me,j=u.width*Dt,$=u.height*me,ye=t.width-j,Ce=0,Ae=t.height-$,ze=0,Xe=Math.max(ye,Math.min(Ce,de)),Ie=Math.max(Ae,Math.min(ze,G));T(Ee),C({x:Xe,y:Ie})},[t.crop,t.width,t.height,u,R,S]),P=re=>{const U=re.target;s({x:U.x()-t.width/2,y:U.y()-t.height/2},!0)},M=re=>{const U=re.target;s({x:U.x()-t.width/2,y:U.y()-t.height/2}),c==null||c()},O=()=>{const re=d.current;if(!re)return;const U=re.scaleX(),ee=re.scaleY(),Ee=Math.max(20,t.width*U),Re=Math.max(20,t.height*ee);re.scaleX(1),re.scaleY(1),re.offsetX(Ee/2),re.offsetY(Re/2),s({x:re.x()-Ee/2,y:re.y()-Re/2,width:Ee,height:Re,rotation:re.rotation()})},I=oe.useCallback(re=>{const U=t.cornerRadius||0,ee=t.width,Ee=t.height;if(U===0)re.rect(0,0,ee,Ee);else{const Re=Math.min(U,ee/2,Ee/2);re.beginPath(),re.moveTo(Re,0),re.lineTo(ee-Re,0),re.arcTo(ee,0,ee,Re,Re),re.lineTo(ee,Ee-Re),re.arcTo(ee,Ee,ee-Re,Ee,Re),re.lineTo(Re,Ee),re.arcTo(0,Ee,0,Ee-Re,Re),re.lineTo(0,Re),re.arcTo(0,0,Re,0,Re),re.closePath()}},[t.cornerRadius,t.width,t.height]),Y=oe.useCallback(()=>{t.crop&&x(!0)},[t.crop]),K=oe.useCallback(re=>{const U=re.target,ee=t.crop;if(!ee||!u)return;const Ee=t.width/ee.width*R,Re=t.height/ee.height*R,Ne=u.width*Ee,Ue=u.height*Re,ot=-ee.x*Ee,lt=-ee.y*Re,pt=t.width-Ne,Lt=0,qe=t.height-Ue,Dt=0,me=Math.max(pt,Math.min(Lt,U.x())),k=Math.max(qe,Math.min(Dt,U.y()));U.x(me),U.y(k),C({x:me-ot,y:k-lt})},[t.crop,t.width,t.height,u,R]),q=oe.useCallback(()=>{if(!t.crop||!u){x(!1);return}const re=t.crop,U=re.width/t.width/R,ee=re.height/t.height/R,Ee=re.width/R,Re=re.height/R,Ne=Math.max(0,Math.min(u.width-Ee,re.x-S.x*U)),Ue=Math.max(0,Math.min(u.height-Re,re.y-S.y*ee));s({crop:{x:Ne,y:Ue,width:Ee,height:Re}}),x(!1),C({x:0,y:0}),T(1)},[t.crop,t.width,t.height,u,S,R,s]),Q=oe.useCallback(()=>{x(!1),C({x:0,y:0}),T(1)},[]),V=oe.useCallback(()=>{C({x:0,y:0}),T(1)},[]);if(oe.useEffect(()=>{if(!y)return;const re=U=>{U.key==="Escape"?Q():U.key==="Enter"&&q()};return window.addEventListener("keydown",re),()=>window.removeEventListener("keydown",re)},[y,q,Q]),!u)return null;const ge=t.crop,W=ge?t.width/ge.width:1,se=ge?t.height/ge.height:1,L=y?W*R:W,ne=y?se*R:se,le=u.width*L,pe=u.height*ne,J=ge?-ge.x*L:0,ae=ge?-ge.y*ne:0;return w.jsxs(w.Fragment,{children:[y&&ge&&w.jsxs(di,{x:t.x+t.width/2,y:t.y+t.height/2,offsetX:t.width/2,offsetY:t.height/2,rotation:t.rotation,children:[w.jsx(Vr,{x:J+S.x-500,y:ae+S.y-500,width:le+1e3,height:pe+1e3,fill:"rgba(0,0,0,0.5)",listening:!1}),w.jsx(tA,{ref:p,image:u,x:J+S.x,y:ae+S.y,width:le,height:pe,opacity:.7,draggable:!0,onDragMove:K}),w.jsx(di,{clipFunc:re=>re.rect(0,0,t.width,t.height),listening:!1,children:w.jsx(tA,{image:u,x:J+S.x,y:ae+S.y,width:le,height:pe})}),w.jsx(Vr,{x:0,y:0,width:t.width,height:t.height,stroke:"#5B6EF7",strokeWidth:2,fill:"transparent",listening:!1}),[{x:0,y:0},{x:t.width,y:0},{x:0,y:t.height},{x:t.width,y:t.height}].map((re,U)=>w.jsx(Vr,{x:re.x-5,y:re.y-5,width:10,height:10,fill:"#ffffff",stroke:"#5B6EF7",strokeWidth:2,cornerRadius:2,listening:!1},U))]}),!y&&w.jsx(di,{ref:d,x:t.x+t.width/2,y:t.y+t.height/2,offsetX:t.width/2,offsetY:t.height/2,rotation:t.rotation,draggable:!0,onClick:n,onTap:n,onDblClick:Y,onDblTap:Y,onDragStart:()=>i==null?void 0:i(),onDragMove:P,onDragEnd:M,onTransformStart:()=>i==null?void 0:i(),onTransformEnd:O,clipFunc:t.cornerRadius?I:void 0,children:w.jsx(tA,{image:u,x:0,y:0,width:t.width,height:t.height,crop:t.crop})}),y&&w.jsxs(di,{x:t.x,y:t.y-50,children:[w.jsx(Vr,{x:0,y:0,width:390,height:40,fill:"white",cornerRadius:8,shadowColor:"black",shadowBlur:10,shadowOpacity:.15}),w.jsxs(di,{x:10,y:5,onClick:()=>D(R-.25),onTap:()=>D(R-.25),children:[w.jsx(Vr,{width:30,height:30,fill:R<=1?"#e2e8f0":"#f1f5f9",cornerRadius:6}),w.jsx(Ks,{text:"-",x:0,y:0,width:30,height:30,align:"center",verticalAlign:"middle",fill:R<=1?"#94a3b8":"#64748b",fontSize:18,fontFamily:"Inter"})]}),w.jsx(Ks,{text:`${Math.round(R*100)}%`,x:45,y:5,width:50,height:30,align:"center",verticalAlign:"middle",fill:"#334155",fontSize:12,fontFamily:"Inter"}),w.jsxs(di,{x:100,y:5,onClick:()=>D(R+.25),onTap:()=>D(R+.25),children:[w.jsx(Vr,{width:30,height:30,fill:R>=3?"#e2e8f0":"#f1f5f9",cornerRadius:6}),w.jsx(Ks,{text:"+",x:0,y:0,width:30,height:30,align:"center",verticalAlign:"middle",fill:R>=3?"#94a3b8":"#64748b",fontSize:18,fontFamily:"Inter"})]}),w.jsxs(di,{x:140,y:5,onClick:V,onTap:V,children:[w.jsx(Vr,{width:50,height:30,fill:"#f1f5f9",cornerRadius:6}),w.jsx(Ks,{text:"↺",x:0,y:0,width:50,height:30,align:"center",verticalAlign:"middle",fill:"#64748b",fontSize:16,fontFamily:"Inter"})]}),w.jsxs(di,{x:200,y:5,onClick:q,onTap:q,children:[w.jsx(Vr,{width:85,height:30,fill:"#5B6EF7",cornerRadius:6}),w.jsx(Ks,{text:"완료",x:0,y:0,width:85,height:30,align:"center",verticalAlign:"middle",fill:"white",fontSize:13,fontFamily:"Noto Sans KR"})]}),w.jsxs(di,{x:295,y:5,onClick:Q,onTap:Q,children:[w.jsx(Vr,{width:85,height:30,fill:"#f1f5f9",cornerRadius:6}),w.jsx(Ks,{text:"취소",x:0,y:0,width:85,height:30,align:"center",verticalAlign:"middle",fill:"#64748b",fontSize:13,fontFamily:"Noto Sans KR"})]})]}),e&&!y&&w.jsx(nv,{ref:h,flipEnabled:!1,rotateEnabled:!0,rotateAnchorOffset:20,rotateAnchorCursor:"grab",anchorSize:10,anchorCornerRadius:5,anchorFill:"#ffffff",anchorStroke:"#5B6EF7",anchorStrokeWidth:2,borderStroke:"#5B6EF7",borderStrokeWidth:2,rotationSnaps:[0,15,30,45,60,75,90,105,120,135,150,165,180,195,210,225,240,255,270,285,300,315,330,345],rotationSnapTolerance:5,boundBoxFunc:(re,U)=>Math.abs(U.width)<20||Math.abs(U.height)<20?re:U})]})},yu=960,xu=540,h5=()=>{const t=oe.useRef(null),e=oe.useRef(null),[n,s]=oe.useState(1);oe.useEffect(()=>{const me=()=>{if(!e.current)return;const ce=e.current.offsetWidth,de=e.current.offsetHeight,G=48,j=ce-G,$=de-G,ye=j/yu,Ce=$/xu,Ae=Math.min(ye,Ce);s(Ae)};me();const k=new ResizeObserver(me);return e.current&&k.observe(e.current),()=>k.disconnect()},[]);const i=Ve(me=>me.slides),c=Ve(me=>me.currentSlideIndex),d=Ve(me=>me.selectedElementId),h=Ve(me=>me.mode),p=Ve(me=>me.currentShapeType),u=Ve(me=>me.currentTextStyle),A=Ve(me=>me.currentFontFamily),y=Ve(me=>me.addElement),x=Ve(me=>me.updateElement),S=Ve(me=>me.deleteElement),C=Ve(me=>me.selectElement),R=Ve(me=>me.setMode),T=Ve(me=>me.snapSettings),D=Ve(me=>me.commitElementUpdate),P=Ve(me=>me.selectedElementIds),M=Ve(me=>me.selectElements),O=Ve(me=>me.clearSelection),I=i[c],[Y,K]=oe.useState([]),[q,Q]=oe.useState(!1),[V,ge]=oe.useState(null),[W,se]=oe.useState(!1),[L,ne]=oe.useState(null),[le,pe]=oe.useState(!1),[J,ae]=oe.useState(null),[re,U]=oe.useState("default"),ee=oe.useCallback(me=>{if(!d)return{isInZone:!1,element:null,corner:""};const k=I.elements.find(j=>j.id===d);if(!k)return{isInZone:!1,element:null,corner:""};const ce=[{name:"nw",x:k.x,y:k.y,checkX:-1,checkY:-1},{name:"ne",x:k.x+k.width,y:k.y,checkX:1,checkY:-1},{name:"sw",x:k.x,y:k.y+k.height,checkX:-1,checkY:1},{name:"se",x:k.x+k.width,y:k.y+k.height,checkX:1,checkY:1}],de=5,G=40;for(const j of ce){const $=me.x-j.x,ye=me.y-j.y,Ce=Math.sqrt($*$+ye*ye);if(Ce>=de&&Ce<=G){const Ae=j.checkX<0&&$<0||j.checkX>0&&$>0,ze=j.checkY<0&&ye<0||j.checkY>0&&ye>0;if(Ae&&ze)return{isInZone:!0,element:k,corner:j.name};if((Ae||ze)&&Ce<=25)return{isInZone:!0,element:k,corner:j.name}}}return{isInZone:!1,element:null,corner:""}},[d,I.elements]),Ee=oe.useCallback(me=>{var G;const k=t.current;if(!k)return;const ce=k.getPointerPosition();if(!ce)return;if(h==="select"){const j=ee(ce);if(j.isInZone&&j.element){D();const $=j.element,ye=$.x+$.width/2,Ce=$.y+$.height/2,Ae=Math.atan2(ce.y-Ce,ce.x-ye)*(180/Math.PI);pe(!0),ae({elementId:$.id,centerX:ye,centerY:Ce,startAngle:Ae,initialRotation:$.rotation||0});return}}me.target===((G=me.target.getStage())==null?void 0:G.findOne(".background"))&&(h==="select"?(se(!0),ne({startX:ce.x,startY:ce.y,currentX:ce.x,currentY:ce.y})):(h==="text"||h==="shape")&&(Q(!0),ge({startX:ce.x,startY:ce.y,currentX:ce.x,currentY:ce.y})))},[h,O,ee,D]),Re=oe.useCallback(me=>{const k=t.current;if(!k)return;const ce=k.getPointerPosition();if(ce){if(le&&J){const G=Math.atan2(ce.y-J.centerY,ce.x-J.centerX)*(180/Math.PI)-J.startAngle;let j=J.initialRotation+G;const $=15,ye=5,Ce=Math.round(j/$)*$;Math.abs(j-Ce)<ye&&(j=Ce),j=(j%360+360)%360,x(J.elementId,{rotation:j});return}if(h==="select"&&!W&&!q){const de=ee(ce);de.isInZone?U({nw:"nwse-resize",ne:"nesw-resize",sw:"nesw-resize",se:"nwse-resize"}[de.corner]||"grab"):U("default")}if(W&&L){ne({...L,currentX:ce.x,currentY:ce.y});return}q&&V&&ge({...V,currentX:ce.x,currentY:ce.y})}},[q,V,W,L,le,J,h,ee,x]),Ne=oe.useCallback(me=>{const k=Math.min(me.startX,me.currentX),ce=Math.min(me.startY,me.currentY),de=Math.abs(me.currentX-me.startX),G=Math.abs(me.currentY-me.startY);return de<5&&G<5?[]:I.elements.filter(j=>{const $=j.x+j.width,ye=j.y+j.height,Ce=k+de,Ae=ce+G;return j.x<Ce&&$>k&&j.y<Ae&&ye>ce}).map(j=>j.id)},[I.elements]),Ue=oe.useCallback(()=>{if(le){pe(!1),ae(null),U("default");return}if(W&&L){const ye=Ne(L);ye.length>0?M(ye):O(),se(!1),ne(null);return}if(!q||!V)return;const me=Math.min(V.startX,V.currentX),k=Math.min(V.startY,V.currentY),ce=Math.abs(V.currentX-V.startX),de=Math.abs(V.currentY-V.startY),G=20,j=Math.max(ce,G),$=Math.max(de,G);if(h==="text"){const ye=Eu[u],Ce={id:fi(),type:"text",x:me,y:k,width:j<100?u==="title"?600:300:j,height:$<50?ye.fontSize*2:$,rotation:0,content:u==="title"?"제목을 입력하세요":u==="subtitle"?"소제목을 입력하세요":"텍스트를 입력하세요",fontSize:ye.fontSize,fontFamily:A,fill:"#1e293b",align:u==="title"||u==="subtitle"?"center":"left",textStyle:u,fontWeight:ye.fontWeight,lineHeight:ye.lineHeight};y(Ce)}else if(h==="shape"){const ye={id:fi(),type:"shape",x:me,y:k,width:j,height:$,rotation:0,shapeType:p,fill:"#5B6EF7",stroke:"#4338ca",strokeWidth:2};y(ye)}Q(!1),ge(null),R("select")},[q,V,h,p,u,A,y,R,W,L,Ne,M,O,le]),ot=()=>{if(!W||!L)return null;const me=Math.min(L.startX,L.currentX),k=Math.min(L.startY,L.currentY),ce=Math.abs(L.currentX-L.startX),de=Math.abs(L.currentY-L.startY);return w.jsx(Vr,{x:me,y:k,width:ce,height:de,fill:"rgba(91, 110, 247, 0.1)",stroke:"#5B6EF7",strokeWidth:1,dash:[4,4]})},lt=()=>{if(!q||!V)return null;const me=Math.min(V.startX,V.currentX),k=Math.min(V.startY,V.currentY),ce=Math.abs(V.currentX-V.startX),de=Math.abs(V.currentY-V.startY);if(h==="text")return w.jsx(Vr,{x:me,y:k,width:ce||100,height:de||40,fill:"rgba(91, 110, 247, 0.1)",stroke:"#5B6EF7",strokeWidth:1,dash:[5,5]});if(h==="shape"){const G={fill:"rgba(91, 110, 247, 0.3)",stroke:"#5B6EF7",strokeWidth:2};switch(p){case"rect":return w.jsx(Vr,{x:me,y:k,width:ce,height:de,...G});case"ellipse":return w.jsx(ev,{x:me+ce/2,y:k+de/2,radiusX:ce/2,radiusY:de/2,...G});case"triangle":return w.jsx(Uo,{points:[me+ce/2,k,me+ce,k+de,me,k+de],closed:!0,...G});case"line":return w.jsx(Uo,{points:[V.startX,V.startY,V.currentX,V.currentY],stroke:"#5B6EF7",strokeWidth:2});case"arrow":return w.jsx(tv,{points:[V.startX,V.startY,V.currentX,V.currentY],stroke:"#5B6EF7",fill:"#5B6EF7",strokeWidth:2,pointerLength:10,pointerWidth:10});default:return null}}return null},pt=oe.useCallback((me,k,ce=!1)=>{if(ce&&T.enabled&&"x"in k&&"y"in k){const de=I.elements.find(G=>G.id===me);if(de){const G="width"in k?k.width:de.width,j="height"in k?k.height:de.height,$=I.elements.filter(Ce=>Ce.id!==me),ye=c5({x:k.x,y:k.y,width:G,height:j},$,T);K(ye.guides),x(me,{...k,x:ye.x,y:ye.y});return}}K([]),x(me,k)},[x,T,I.elements]),Lt=oe.useCallback(()=>{K([])},[]),qe=oe.useCallback((me,k)=>{const ce={id:fi(),type:"image",x:me.x,y:me.y,width:me.width,height:me.height,rotation:me.rotation,src:k.src,crop:k.crop};S(me.id),y(ce)},[S,y]),Dt=()=>Y.length===0?null:Y.map((me,k)=>{const ce=me.isCenter,de=ce?"#5B6EF7":"#ef4444",G=ce?2:1,j=ce?[8,4]:[4,4];return me.type==="vertical"?w.jsx(Uo,{points:[me.position,0,me.position,xu],stroke:de,strokeWidth:G,dash:j},`guide-${k}`):w.jsx(Uo,{points:[0,me.position,yu,me.position],stroke:de,strokeWidth:G,dash:j},`guide-${k}`)});return w.jsx(z.Center,{ref:e,w:"100%",h:"100%",children:w.jsx(z.Box,{style:{width:yu*n,height:xu*n},children:w.jsx(z.Box,{bg:"white",style:{width:yu,height:xu,transform:`scale(${n})`,transformOrigin:"top left",borderRadius:"var(--mantine-radius-md)",overflow:"hidden",boxShadow:"0 20px 70px rgba(0, 0, 0, 0.12)"},children:w.jsx(l5,{ref:t,width:yu,height:xu,onMouseDown:Ee,onMouseMove:Re,onMouseUp:Ue,onMouseLeave:Ue,style:{cursor:h!=="select"?"crosshair":le?"grabbing":re},children:w.jsxs(o5,{children:[w.jsx(Vr,{name:"background",x:0,y:0,width:yu,height:xu,fill:I.background}),I.elements.map(me=>{const k=d===me.id||P.includes(me.id);return me.type==="text"?w.jsx(u5,{element:me,isSelected:k,onSelect:()=>C(me.id),onChange:(ce,de)=>pt(me.id,ce,de),onDragStart:D,onDragEnd:Lt},me.id):me.type==="shape"?w.jsx(d5,{element:me,isSelected:k,onSelect:()=>C(me.id),onChange:(ce,de)=>pt(me.id,ce,de),onDragStart:D,onDragEnd:Lt,onReplaceWithImage:ce=>qe(me,ce)},me.id):me.type==="image"?w.jsx(f5,{element:me,isSelected:k,onSelect:()=>C(me.id),onChange:(ce,de)=>pt(me.id,ce,de),onDragStart:D,onDragEnd:Lt},me.id):null}),Dt(),lt(),ot()]})})})})})},K2={position:"fixed",top:"50%",transform:"translateY(-50%)",zIndex:30,width:48,height:48,borderRadius:"50%",backgroundColor:"rgba(255, 255, 255, 0.8)",backdropFilter:"blur(12px)",border:"1px solid var(--devdive-border-light)",boxShadow:"0 10px 25px rgba(0, 0, 0, 0.1)"},p5=()=>{const t=Ve(h=>h.slides),e=Ve(h=>h.currentSlideIndex),n=Ve(h=>h.selectSlide),s=e>0,i=e<t.length-1,c=()=>{s&&n(e-1)},d=()=>{i&&n(e+1)};return w.jsxs(w.Fragment,{children:[w.jsx(z.Tooltip,{label:"이전 슬라이드",position:"right",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"xl",onClick:c,disabled:!s,style:{...K2,left:24},children:w.jsx("span",{className:"material-symbols-outlined",children:"chevron_left"})})}),w.jsx(z.Tooltip,{label:"다음 슬라이드",position:"left",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"xl",onClick:d,disabled:!i,style:{...K2,right:24},children:w.jsx("span",{className:"material-symbols-outlined",children:"chevron_right"})})})]})},sA=142,Fg=80,W9=960,nn=sA/W9,X9=({element:t,scale:e})=>{const[n]=O9(t.src);return n?w.jsx(tA,{image:n,x:t.x*e,y:t.y*e,width:t.width*e,height:t.height*e,rotation:t.rotation}):null},Q9=({slide:t})=>{const e=oe.useMemo(()=>t.elements.map(n=>{if(n.type==="text"){const s=n;return w.jsx(Ks,{x:s.x*nn,y:s.y*nn,width:s.width*nn,height:s.height*nn,text:a6(s.content),fontSize:s.fontSize*nn,fontFamily:s.fontFamily,fill:s.fill,align:s.align,rotation:s.rotation},n.id)}else if(n.type==="shape"){const s=n,i={x:s.x*nn,y:s.y*nn,fill:s.fill,stroke:s.stroke,strokeWidth:s.strokeWidth*nn,rotation:s.rotation};switch(s.shapeType){case"rect":return w.jsx(Vr,{width:s.width*nn,height:s.height*nn,...i},n.id);case"ellipse":return w.jsx(ev,{x:(s.x+s.width/2)*nn,y:(s.y+s.height/2)*nn,radiusX:s.width/2*nn,radiusY:s.height/2*nn,fill:s.fill,stroke:s.stroke,strokeWidth:s.strokeWidth*nn,rotation:s.rotation},n.id);case"triangle":return w.jsx(Uo,{points:[(s.x+s.width/2)*nn,s.y*nn,(s.x+s.width)*nn,(s.y+s.height)*nn,s.x*nn,(s.y+s.height)*nn],closed:!0,fill:s.fill,stroke:s.stroke,strokeWidth:s.strokeWidth*nn},n.id);case"line":return w.jsx(Uo,{points:[s.x*nn,s.y*nn,(s.x+s.width)*nn,(s.y+s.height)*nn],stroke:s.stroke,strokeWidth:s.strokeWidth*nn},n.id);case"arrow":return w.jsx(tv,{points:[s.x*nn,s.y*nn,(s.x+s.width)*nn,(s.y+s.height)*nn],stroke:s.stroke,fill:s.stroke,strokeWidth:s.strokeWidth*nn,pointerLength:5,pointerWidth:5},n.id);default:return null}}else if(n.type==="image")return w.jsx(X9,{element:n,scale:nn},n.id);return null}),[t.elements]);return w.jsx(l5,{width:sA,height:Fg,children:w.jsxs(o5,{children:[w.jsx(Vr,{x:0,y:0,width:sA,height:Fg,fill:t.background}),e]})})},A5=()=>{const t=Ve(p=>p.slides),e=Ve(p=>p.currentSlideIndex),n=Ve(p=>p.selectSlide),s=Ve(p=>p.addSlide),i=Ve(p=>p.deleteSlide),[c,d]=oe.useState(null),h=(p,u)=>{p.stopPropagation(),t.length>1&&i(u)};return w.jsx(z.Box,{h:128,bg:"white",px:"md",style:{borderTop:"1px solid var(--devdive-border-light)"},children:w.jsx(z.ScrollArea,{h:"100%",type:"auto",scrollbarSize:6,children:w.jsxs(z.Group,{gap:"md",h:128,align:"center",wrap:"nowrap",children:[t.map((p,u)=>w.jsxs(z.Box,{pos:"relative",style:{flexShrink:0},onMouseEnter:()=>d(u),onMouseLeave:()=>d(null),children:[w.jsxs(z.Badge,{size:"xs",color:e===u?"devdive":"gray",pos:"absolute",top:-8,left:8,style:{zIndex:10},children:["#",u+1]}),c===u&&t.length>1&&w.jsx(z.ActionIcon,{variant:"filled",color:"red",size:"xs",radius:"xl",pos:"absolute",top:-6,right:-6,style:{zIndex:20},onClick:A=>h(A,u),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:12},children:"close"})}),w.jsx(z.UnstyledButton,{onClick:()=>n(u),style:{borderRadius:"var(--mantine-radius-lg)",overflow:"hidden",border:e===u?"2px solid var(--devdive-primary)":"1px solid var(--devdive-border-light)",boxShadow:e===u?"0 0 0 4px rgba(91, 110, 247, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1)":void 0,transition:"all 150ms ease"},children:w.jsx(Q9,{slide:p})})]},p.id)),w.jsx(z.ActionIcon,{variant:"outline",color:"gray",size:Fg,w:sA,radius:"lg",onClick:s,style:{flexShrink:0,borderStyle:"dashed",borderWidth:2},children:w.jsxs(z.Box,{ta:"center",children:[w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:20},children:"add"}),w.jsx(z.Box,{fz:9,fw:700,tt:"uppercase",lts:"0.05em",children:"Add"})]})})]})})})},m5=()=>{const[t,e]=oe.useState(!1),n=Ve(T=>T.slides),s=Ve(T=>T.currentSlideIndex),i=Ve(T=>T.selectedElementId),c=Ve(T=>T.updateElement),d=Ve(T=>T.updateSlideBackground),h=Ve(T=>T.bringToFront),p=Ve(T=>T.sendToBack),u=Ve(T=>T.bringForward),A=Ve(T=>T.sendBackward),y=Ve(T=>T.copyElement),x=Ve(T=>T.commitElementUpdate),S=n[s],C=i?S.elements.find(T=>T.id===i):null;if(t)return w.jsx(z.Box,{w:40,bg:"white",py:"md",style:{borderLeft:"1px solid var(--devdive-border-light)"},children:w.jsx(z.Stack,{align:"center",children:w.jsx(z.Tooltip,{label:"속성 패널 펼치기",position:"left",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",onClick:()=>e(!1),children:w.jsx("span",{className:"material-symbols-outlined",children:"chevron_left"})})})})});if(!C)return w.jsxs(z.Box,{w:256,p:"md",bg:"white",style:{borderLeft:"1px solid var(--devdive-border-light)",overflowY:"auto"},children:[w.jsxs(z.Group,{justify:"space-between",mb:"md",children:[w.jsxs(z.Group,{gap:"xs",children:[w.jsx("span",{className:"material-symbols-outlined",style:{color:"var(--devdive-primary)",fontSize:18},children:"palette"}),w.jsx(z.Text,{size:"sm",fw:700,children:"슬라이드 설정"})]}),w.jsx(z.Tooltip,{label:"패널 접기",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"sm",onClick:()=>e(!0),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"chevron_right"})})})]}),w.jsx(_f,{color:S.background,onChange:T=>d(T),label:"배경 색상"}),w.jsxs(z.Box,{mt:"xl",pt:"md",ta:"center",c:"dimmed",style:{borderTop:"1px solid var(--devdive-border-light)"},children:[w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:32,marginBottom:4},children:"touch_app"}),w.jsxs(z.Text,{size:"xs",children:["요소를 선택하면",w.jsx("br",{}),"속성을 편집할 수 있습니다"]}),w.jsxs(z.Text,{size:"xs",c:"dimmed",mt:"sm",children:["하단 입력창에서 AI로",w.jsx("br",{}),"슬라이드 내용을 수정하세요"]})]})]});const R=T=>{c(i,T)};return w.jsxs(z.Box,{w:256,p:"md",bg:"white",style:{borderLeft:"1px solid var(--devdive-border-light)",overflowY:"auto"},children:[w.jsxs(z.Group,{justify:"space-between",mb:"md",children:[w.jsxs(z.Group,{gap:"xs",children:[w.jsx("span",{className:"material-symbols-outlined",style:{color:"var(--devdive-primary)",fontSize:18},children:"tune"}),w.jsx(z.Text,{size:"sm",fw:700,children:"속성"})]}),w.jsx(z.Tooltip,{label:"패널 접기",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"sm",onClick:()=>e(!0),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"chevron_right"})})})]}),w.jsxs(z.Box,{mb:"md",pb:"md",style:{borderBottom:"1px solid var(--devdive-border-light)"},children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"레이어 순서"}),w.jsxs(z.Group,{gap:4,children:[w.jsx(z.Tooltip,{label:"맨 뒤로 (Ctrl+[)",children:w.jsx(z.ActionIcon,{variant:"light",color:"gray",onClick:p,flex:1,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"vertical_align_bottom"})})}),w.jsx(z.Tooltip,{label:"한 단계 뒤로",children:w.jsx(z.ActionIcon,{variant:"light",color:"gray",onClick:A,flex:1,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"arrow_downward"})})}),w.jsx(z.Tooltip,{label:"한 단계 앞으로",children:w.jsx(z.ActionIcon,{variant:"light",color:"gray",onClick:u,flex:1,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"arrow_upward"})})}),w.jsx(z.Tooltip,{label:"맨 앞으로 (Ctrl+])",children:w.jsx(z.ActionIcon,{variant:"light",color:"gray",onClick:h,flex:1,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"vertical_align_top"})})})]}),w.jsx(z.Button,{variant:"light",color:"gray",size:"xs",fullWidth:!0,mt:"xs",leftSection:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"content_copy"}),onClick:y,children:"복사"})]}),w.jsx(Y9,{element:C,onUpdate:R,onStartEdit:x}),C.type==="text"&&w.jsx(V9,{element:C,onUpdate:R,onStartEdit:x}),C.type==="shape"&&w.jsx(q9,{element:C,onUpdate:R,onStartEdit:x}),C.type==="image"&&w.jsx(K9,{element:C,onUpdate:R,onStartEdit:x})]})},Y9=({element:t,onUpdate:e,onStartEdit:n})=>{const[s,i]=oe.useState(Math.round(t.width)),[c,d]=oe.useState(Math.round(t.height)),[h,p]=oe.useState(!0),u=t.width/t.height;oe.useEffect(()=>{i(Math.round(t.width)),d(Math.round(t.height))},[t.width,t.height]);const A=x=>{const S=Number(x);if(i(S),h){const C=Math.round(S/u);d(C),e({width:S,height:C})}else e({width:S})},y=x=>{const S=Number(x);if(d(S),h){const C=Math.round(S*u);i(C),e({width:C,height:S})}else e({height:S})};return w.jsxs(z.Box,{mb:"md",pb:"md",style:{borderBottom:"1px solid var(--devdive-border-light)"},children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"크기"}),w.jsxs(z.Group,{gap:"xs",align:"flex-end",children:[w.jsxs(z.Box,{flex:1,children:[w.jsx(z.Text,{size:"xs",c:"dimmed",mb:2,children:"너비"}),w.jsx(z.NumberInput,{value:s,onFocus:n,onChange:A,size:"xs",min:10})]}),w.jsx(z.Tooltip,{label:h?"비율 잠금 해제":"비율 잠금",children:w.jsx(z.ActionIcon,{variant:h?"light":"subtle",color:h?"devdive":"gray",onClick:()=>p(!h),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:h?"link":"link_off"})})}),w.jsxs(z.Box,{flex:1,children:[w.jsx(z.Text,{size:"xs",c:"dimmed",mb:2,children:"높이"}),w.jsx(z.NumberInput,{value:c,onFocus:n,onChange:y,size:"xs",min:10})]})]})]})},_f=({color:t,onChange:e,label:n,onStartEdit:s})=>{const[i,c]=oe.useState(!1),[d,h]=oe.useState(t);oe.useEffect(()=>{h(t)},[t]);const p=["#5B6EF7","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#8b5cf6","#ec4899","#1e293b","#64748b","#e2e8f0","#ffffff"];return w.jsxs(z.Box,{mb:"sm",children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:n}),w.jsxs(z.Group,{gap:"xs",children:[w.jsxs(z.Popover,{opened:i,onChange:c,position:"bottom-start",radius:"lg",shadow:"xl",children:[w.jsx(z.Popover.Target,{children:w.jsx(z.ActionIcon,{variant:"outline",size:"lg",onClick:()=>{i||s==null||s(),c(!i)},style:{backgroundColor:d,borderColor:"var(--devdive-border-light)"}})}),w.jsx(z.Popover.Dropdown,{p:"sm",children:w.jsxs(z.Stack,{gap:"sm",children:[w.jsx(xx,{color:d,onChange:u=>{h(u),e(u)}}),w.jsx(z.Box,{pt:"sm",style:{borderTop:"1px solid var(--devdive-border-light)"},children:w.jsx(z.SimpleGrid,{cols:4,spacing:6,children:p.map(u=>w.jsx(z.ActionIcon,{size:"sm",variant:"outline",onClick:()=>{h(u),e(u)},style:{backgroundColor:u,borderColor:"var(--devdive-border-light)"}},u))})})]})})]}),w.jsx(z.NumberInput,{value:d,onChange:u=>{const A=String(u);h(A),/^#[0-9A-Fa-f]{6}$/.test(A)&&e(A)},hideControls:!0,size:"xs",flex:1,styles:{input:{fontFamily:"monospace"}}})]})]})},V9=({element:t,onUpdate:e,onStartEdit:n})=>w.jsxs(z.Stack,{gap:"md",children:[w.jsx(_f,{color:t.fill,onChange:s=>e({fill:s}),label:"텍스트 색상",onStartEdit:n}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"폰트 크기"}),w.jsx(z.NumberInput,{value:t.fontSize,onFocus:n,onChange:s=>e({fontSize:Number(s)}),size:"xs",min:8,max:200})]}),w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"정렬"}),w.jsx(z.SegmentedControl,{value:t.align,onChange:s=>{n(),e({align:s})},fullWidth:!0,size:"xs",data:[{value:"left",label:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"format_align_left"})},{value:"center",label:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"format_align_center"})},{value:"right",label:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"format_align_right"})}]})]})]}),q9=({element:t,onUpdate:e,onStartEdit:n})=>{const s=t.shapeType!=="line"&&t.shapeType!=="arrow";return w.jsxs(z.Stack,{gap:"md",children:[w.jsx(_f,{color:t.fill,onChange:i=>e({fill:i}),label:"채우기 색상",onStartEdit:n}),w.jsx(_f,{color:t.stroke,onChange:i=>e({stroke:i}),label:"외곽선 색상",onStartEdit:n}),w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:["외곽선 두께: ",t.strokeWidth,"px"]}),w.jsx(z.Slider,{value:t.strokeWidth,onChange:i=>e({strokeWidth:i}),onChangeEnd:n,min:0,max:20,color:"devdive",size:"sm"})]}),t.shapeType==="rect"&&w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:["모서리 곡률: ",t.cornerRadius||0,"px"]}),w.jsx(z.Slider,{value:t.cornerRadius||0,onChange:i=>e({cornerRadius:i}),onChangeEnd:n,min:0,max:Math.min(t.width,t.height)/2,color:"devdive",size:"sm"}),w.jsx(z.Group,{gap:4,mt:"xs",children:[0,8,16,24,999].map(i=>w.jsx(z.Button,{variant:(t.cornerRadius||0)===i?"filled":"light",color:(t.cornerRadius||0)===i?"devdive":"gray",size:"xs",flex:1,px:4,onClick:()=>{n(),e({cornerRadius:i===999?Math.min(t.width,t.height)/2:i})},children:i===999?"원형":i},i))})]}),s&&w.jsxs(z.Box,{pt:"md",style:{borderTop:"1px solid var(--devdive-border-light)"},children:[w.jsxs(z.Group,{gap:"xs",mb:"xs",children:[w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"text_fields"}),w.jsx(z.Text,{size:"xs",fw:600,children:"도형 텍스트"})]}),w.jsx(z.Text,{size:"xs",c:"dimmed",mb:"sm",children:"더블클릭으로 텍스트 편집"}),w.jsx(_f,{color:t.textColor||"#1e293b",onChange:i=>e({textColor:i}),label:"텍스트 색상",onStartEdit:n}),w.jsxs(z.Box,{mb:"sm",children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"텍스트 크기"}),w.jsx(z.NumberInput,{value:t.textSize||16,onFocus:n,onChange:i=>e({textSize:Number(i)}),size:"xs",min:8,max:72})]}),t.text&&w.jsxs(z.Box,{p:"xs",bg:"gray.0",style:{borderRadius:"var(--mantine-radius-md)"},children:[w.jsx(z.Text,{size:"xs",c:"dimmed",mb:2,children:"현재 텍스트"}),w.jsx(z.Text,{size:"sm",truncate:!0,children:t.text})]})]})]})},K9=({element:t,onUpdate:e,onStartEdit:n})=>{const[s,i]=oe.useState(100),c=t.width,d=t.height,h=p=>{i(p);const u=p/100;e({width:Math.round(c*u),height:Math.round(d*u)})};return w.jsxs(z.Stack,{gap:"md",children:[w.jsxs(z.Box,{children:[w.jsx(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:"미리보기"}),w.jsx(z.Box,{h:96,bg:"gray.1",style:{borderRadius:"var(--mantine-radius-md)",border:"1px solid var(--devdive-border-light)",overflow:"hidden"},children:w.jsx("img",{src:t.src,alt:"preview",style:{width:"100%",height:"100%",objectFit:"contain"}})})]}),w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:["크기 비율: ",s,"%"]}),w.jsx(z.Slider,{value:s,onChange:h,onChangeEnd:n,min:10,max:200,color:"devdive",size:"sm"}),w.jsx(z.Group,{gap:4,mt:"xs",children:[50,75,100,125,150].map(p=>w.jsxs(z.Button,{variant:s===p?"filled":"light",color:s===p?"devdive":"gray",size:"xs",flex:1,px:4,onClick:()=>{n(),h(p)},children:[p,"%"]},p))})]}),w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:["모서리 곡률: ",t.cornerRadius||0,"px"]}),w.jsx(z.Slider,{value:t.cornerRadius||0,onChange:p=>e({cornerRadius:p}),onChangeEnd:n,min:0,max:Math.min(t.width,t.height)/2,color:"devdive",size:"sm"}),w.jsx(z.Group,{gap:4,mt:"xs",children:[0,8,16,24,999].map(p=>w.jsx(z.Button,{variant:(t.cornerRadius||0)===p?"filled":"light",color:(t.cornerRadius||0)===p?"devdive":"gray",size:"xs",flex:1,px:4,onClick:()=>{n(),e({cornerRadius:p===999?Math.min(t.width,t.height)/2:p})},children:p===999?"원형":p},p))})]}),w.jsxs(z.Box,{children:[w.jsxs(z.Text,{size:"xs",fw:500,c:"dimmed",mb:"xs",children:["회전: ",Math.round(t.rotation||0),"°"]}),w.jsx(z.Slider,{value:t.rotation||0,onChange:p=>e({rotation:p}),onChangeEnd:n,min:0,max:360,color:"devdive",size:"sm"})]})]})},J9=()=>{const[t,e]=oe.useState(!1),[n,s]=oe.useState([]),[i,c]=oe.useState(""),[d,h]=oe.useState(!1),[p,u]=oe.useState([]),[A,y]=oe.useState(-1),[x,S]=oe.useState({x:0,y:0}),[C,R]=oe.useState(!1),T=oe.useRef({x:0,y:0,posX:0,posY:0}),D=oe.useRef(null),P=oe.useRef(null),M=oe.useRef(null),{generateSlideContent:O}=cA(),I=Ve(J=>J.slides),Y=Ve(J=>J.currentSlideIndex),K=Ve(J=>J.updateElement),q=I[Y];oe.useEffect(()=>{D.current&&t&&D.current.scrollTo({top:D.current.scrollHeight,behavior:"smooth"})},[n,t]),oe.useEffect(()=>{if(q){const J={id:`snapshot-initial-${Y}`,timestamp:new Date,elements:JSON.parse(JSON.stringify(q.elements)),messageId:"initial"};u([J]),y(0),s([]),e(!1)}},[Y]);const Q=oe.useCallback(()=>{setTimeout(()=>{var re;const J=(re=Ve.getState().slides[Y])==null?void 0:re.elements;if(!J)return;const ae={id:`snapshot-after-${Date.now()}`,timestamp:new Date,elements:JSON.parse(JSON.stringify(J)),messageId:"after-change"};u(U=>[...U.slice(0,A+1),ae]),y(U=>U+1)},50)},[Y,A]),V=oe.useCallback(()=>{if(A<=0)return;const J=A-1,ae=p[J];if(!ae)return;ae.elements.forEach(U=>{K(U.id,{...U})}),y(J);const re={id:`undo-${Date.now()}`,role:"assistant",content:"이전 상태로 되돌렸습니다.",timestamp:new Date};s(U=>[...U,re])},[A,p,K]),ge=oe.useCallback(()=>{if(A>=p.length-1)return;const J=A+1,ae=p[J];if(!ae)return;ae.elements.forEach(U=>{K(U.id,{...U})}),y(J);const re={id:`redo-${Date.now()}`,role:"assistant",content:"변경사항을 다시 적용했습니다.",timestamp:new Date};s(U=>[...U,re])},[A,p,K]),W=async()=>{var ae;if(!i.trim()||d)return;t||e(!0);const J={id:`user-${Date.now()}`,role:"user",content:i.trim(),timestamp:new Date};s(re=>[...re,J]),c(""),h(!0);try{const re=q.elements.filter(ot=>ot.type==="text"),U=await O({topic:i.trim(),slideIndex:Y,totalSlides:I.length,layout:"content",purpose:i.trim(),style:"사용자 요청에 맞게 수정",language:"ko"}),ee=`assistant-${Date.now()}`;let Ee=!1;const Re=[];if(U.title&&re.length>0){const ot=re.find(lt=>lt.textStyle==="title");ot&&(K(ot.id,{content:U.title}),Re.push(`제목: "${U.title}"`),Ee=!0)}if(U.subtitle){const ot=re.find(lt=>lt.textStyle==="subtitle");ot&&(K(ot.id,{content:U.subtitle}),Re.push(`부제목: "${U.subtitle}"`),Ee=!0)}if(U.bulletPoints&&U.bulletPoints.length>0){const ot=re.filter(lt=>lt.textStyle==="body");U.bulletPoints.forEach((lt,pt)=>{ot[pt]&&(K(ot[pt].id,{content:lt}),Ee=!0)}),U.bulletPoints.length>0&&Re.push(`불릿포인트 ${U.bulletPoints.length}개 수정`)}Ee&&Q();const Ne=Ee?`수정 완료!
|
|
462
|
+
${Re.join(`
|
|
463
|
+
`)}`:"적용할 텍스트 요소를 찾지 못했습니다.",Ue={id:ee,role:"assistant",content:Ne,timestamp:new Date};s(ot=>[...ot,Ue])}catch(re){console.error("AI 편집 실패:",re);const U={id:`error-${Date.now()}`,role:"assistant",content:"오류가 발생했습니다. 다시 시도해주세요.",timestamp:new Date};s(ee=>[...ee,U])}finally{h(!1),(ae=P.current)==null||ae.focus()}},se=J=>{J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),W())},L=oe.useCallback(J=>{J.preventDefault(),R(!0),T.current={x:J.clientX,y:J.clientY,posX:x.x,posY:x.y}},[x]);oe.useEffect(()=>{if(!C)return;const J=re=>{const U=re.clientX-T.current.x,ee=re.clientY-T.current.y;S({x:T.current.posX+U,y:T.current.posY-ee})},ae=()=>{R(!1)};return document.addEventListener("mousemove",J),document.addEventListener("mouseup",ae),()=>{document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",ae)}},[C]);const ne=oe.useCallback(()=>{S({x:0,y:0})},[]),le=A>0,pe=A<p.length-1;return w.jsxs(z.Box,{ref:M,pos:"absolute",bottom:140+x.y,left:"50%",style:{transform:`translateX(calc(-50% + ${x.x}px))`,zIndex:100,width:"100%",maxWidth:600,pointerEvents:"none",transition:C?"none":"bottom 0.1s, transform 0.1s"},children:[w.jsx(z.Collapse,{in:t&&n.length>0,children:w.jsxs(z.Paper,{shadow:"xl",radius:"lg",mb:"xs",style:{pointerEvents:"auto",maxHeight:300,overflow:"hidden",border:"1px solid var(--devdive-border-light)"},children:[w.jsx(z.Box,{px:"sm",py:"xs",bg:"gray.0",style:{borderBottom:"1px solid var(--devdive-border-light)"},children:w.jsxs(z.Group,{justify:"space-between",children:[w.jsxs(z.Group,{gap:"xs",children:[w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:16,color:"var(--devdive-primary)"},children:"auto_awesome"}),w.jsx(z.Text,{size:"xs",fw:600,children:"AI 편집 히스토리"})]}),w.jsxs(z.Group,{gap:4,children:[w.jsx(z.Tooltip,{label:"되돌리기",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"xs",disabled:!le,onClick:V,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"undo"})})}),w.jsx(z.Tooltip,{label:"다시실행",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"xs",disabled:!pe,onClick:ge,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"redo"})})}),w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"xs",onClick:()=>e(!1),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"expand_more"})})]})]})}),w.jsx(z.ScrollArea,{h:200,px:"sm",py:"xs",viewportRef:D,children:w.jsxs(z.Stack,{gap:"xs",children:[n.map(J=>w.jsx(Z9,{message:J},J.id)),d&&w.jsx(z.Box,{children:w.jsx(z.Paper,{px:"xs",py:4,radius:"md",bg:"gray.1",style:{display:"inline-block"},children:w.jsxs(z.Group,{gap:"xs",children:[w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:14,color:"var(--devdive-primary)",animation:"spin 1s linear infinite"},children:"progress_activity"}),w.jsx(z.Text,{size:"xs",c:"dimmed",children:"생성 중..."})]})})})]})})]})}),w.jsx(z.Paper,{shadow:"xl",radius:"xl",px:"md",py:"xs",style:{pointerEvents:"auto",border:"1px solid var(--devdive-border-light)"},children:w.jsxs(z.Group,{gap:"sm",children:[w.jsx(z.Tooltip,{label:"드래그하여 이동 (더블클릭: 초기화)",children:w.jsx(z.Box,{onMouseDown:L,onDoubleClick:ne,style:{cursor:C?"grabbing":"grab",display:"flex",alignItems:"center",padding:"4px 0",flexShrink:0},children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18,color:"var(--mantine-color-gray-5)"},children:"drag_indicator"})})}),w.jsx(z.Box,{w:32,h:32,bg:"linear-gradient(135deg, #5B6EF7 0%, #3b82f6 100%)",style:{borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18,color:"white"},children:"auto_awesome"})}),w.jsx(z.TextInput,{ref:P,flex:1,placeholder:"슬라이드 내용을 어떻게 수정할까요? (예: 제목을 더 간결하게)",value:i,onChange:J=>c(J.currentTarget.value),onKeyDown:se,disabled:d,variant:"unstyled",size:"sm",styles:{input:{fontSize:14}}}),n.length>0&&w.jsx(z.Tooltip,{label:t?"채팅 접기":"채팅 보기",children:w.jsx(z.ActionIcon,{variant:"subtle",color:"gray",size:"sm",onClick:()=>e(!t),children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:t?"expand_more":"expand_less"})})}),w.jsx(z.ActionIcon,{variant:"filled",color:"devdive",size:"lg",radius:"xl",disabled:!i.trim()||d,onClick:W,children:w.jsx("span",{className:"material-symbols-outlined",style:{fontSize:18},children:"send"})})]})}),w.jsx("style",{children:`
|
|
464
464
|
@keyframes spin {
|
|
465
465
|
from { transform: rotate(0deg); }
|
|
466
466
|
to { transform: rotate(360deg); }
|
|
467
467
|
}
|
|
468
|
-
`})]})},Z9=({message:t})=>{const e=t.role==="user";return w.jsx(z.Box,{style:{textAlign:e?"right":"left"},children:w.jsx(z.Paper,{px:"xs",py:4,radius:"md",bg:e?"var(--devdive-primary)":"gray.1",c:e?"white":"inherit",style:{maxWidth:"85%",display:"inline-block"},children:w.jsx(z.Text,{size:"xs",style:{whiteSpace:"pre-wrap",lineHeight:1.4},children:t.content})})})},$9=()=>{const t=Ve(p=>p.copyElement),e=Ve(p=>p.pasteElement),n=Ve(p=>p.deleteElement),s=Ve(p=>p.selectedElementId),i=Ve(p=>p.bringToFront),c=Ve(p=>p.sendToBack),d=Ve(p=>p.undo),h=Ve(p=>p.redo);oe.useEffect(()=>{const p=u=>{const A=u.target;if(A.tagName==="INPUT"||A.tagName==="TEXTAREA")return;const y=u.ctrlKey||u.metaKey;y&&u.key==="c"&&(u.preventDefault(),t()),y&&u.key==="v"&&(u.preventDefault(),e()),(u.key==="Delete"||u.key==="Backspace")&&s&&(u.preventDefault(),n(s)),y&&u.key==="]"&&(u.preventDefault(),i()),y&&u.key==="["&&(u.preventDefault(),c()),y&&u.key==="z"&&!u.shiftKey&&(u.preventDefault(),d()),(y&&u.key==="z"&&u.shiftKey||y&&u.key==="y")&&(u.preventDefault(),h())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[t,e,n,s,i,c,d,h])},e7=()=>($9(),w.jsxs(z.Flex,{direction:"column",h:"
|
|
468
|
+
`})]})},Z9=({message:t})=>{const e=t.role==="user";return w.jsx(z.Box,{style:{textAlign:e?"right":"left"},children:w.jsx(z.Paper,{px:"xs",py:4,radius:"md",bg:e?"var(--devdive-primary)":"gray.1",c:e?"white":"inherit",style:{maxWidth:"85%",display:"inline-block"},children:w.jsx(z.Text,{size:"xs",style:{whiteSpace:"pre-wrap",lineHeight:1.4},children:t.content})})})},$9=()=>{const t=Ve(p=>p.copyElement),e=Ve(p=>p.pasteElement),n=Ve(p=>p.deleteElement),s=Ve(p=>p.selectedElementId),i=Ve(p=>p.bringToFront),c=Ve(p=>p.sendToBack),d=Ve(p=>p.undo),h=Ve(p=>p.redo);oe.useEffect(()=>{const p=u=>{const A=u.target;if(A.tagName==="INPUT"||A.tagName==="TEXTAREA")return;const y=u.ctrlKey||u.metaKey;y&&u.key==="c"&&(u.preventDefault(),t()),y&&u.key==="v"&&(u.preventDefault(),e()),(u.key==="Delete"||u.key==="Backspace")&&s&&(u.preventDefault(),n(s)),y&&u.key==="]"&&(u.preventDefault(),i()),y&&u.key==="["&&(u.preventDefault(),c()),y&&u.key==="z"&&!u.shiftKey&&(u.preventDefault(),d()),(y&&u.key==="z"&&u.shiftKey||y&&u.key==="y")&&(u.preventDefault(),h())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[t,e,n,s,i,c,d,h])},e7=()=>($9(),w.jsxs(z.Flex,{direction:"column",h:"100%",c:"slate.8",children:[w.jsx(Ax,{}),w.jsxs(z.Flex,{flex:1,style:{overflow:"hidden"},children:[w.jsxs(z.Box,{component:"main",flex:1,pos:"relative",className:"dot-grid",style:{display:"flex",flexDirection:"column",overflow:"hidden"},children:[w.jsx(bx,{}),w.jsx(z.Box,{flex:1,style:{overflow:"hidden"},children:w.jsx(h5,{})}),w.jsx(p5,{}),w.jsx(J9,{})]}),w.jsx(m5,{})]}),w.jsx(A5,{})]}));exports.Editor=e7;exports.FloatingToolbar=bx;exports.Header=Ax;exports.ImageNode=f5;exports.LAYOUT_TEMPLATES=Ig;exports.PropertiesPanel=m5;exports.ShapeNode=d5;exports.SlideCanvas=h5;exports.SlideNavigation=p5;exports.SlideThumbnails=A5;exports.TEXT_STYLE_PRESETS=Eu;exports.THEME_PRESETS=fs;exports.TemplateGallery=hx;exports.TextNode=u5;exports.calculateSnap=c5;exports.devdiveTheme=eS;exports.generateId=fi;exports.generatePptx=fx;exports.getLayoutTemplate=fg;exports.themeVars=tS;exports.useEditorStore=Ve;
|
|
469
469
|
//# sourceMappingURL=devdive-slide.cjs.js.map
|