@nocobase/app 1.7.0-beta.8 → 1.8.0-beta.1
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/client/501.72b99d17.async.js +1 -0
- package/dist/client/5977.08716e4e.async.js +58 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/npm._at_ant-design.47a729f3.async.js +141 -0
- package/dist/client/npm._at_budibase.b1200847.async.js +36 -0
- package/dist/client/npm._at_dnd-kit.ebb2cc42.async.js +5 -0
- package/dist/client/npm._at_formily.f71b1c62.async.js +96 -0
- package/dist/client/npm._at_rc-component.5f4cc5e2.async.js +8 -0
- package/dist/client/{npm.ahooks.4b44f0c8.async.js → npm.ahooks.c5b165dc.async.js} +1 -1
- package/dist/client/npm.antd.1b1bd213.async.js +464 -0
- package/dist/client/npm.dayjs.45ed1676.async.js +1 -0
- package/dist/client/{npm.dompurify.d5071c22.async.js → npm.dompurify.2ca7a7c6.async.js} +1 -1
- package/dist/client/{npm.highlight.js.83fe0142.async.js → npm.highlight.js.f727dfe3.async.js} +1 -1
- package/dist/client/{npm.lodash.0ff318b3.async.js → npm.lodash.5dcc1c5e.async.js} +2 -2
- package/dist/client/{npm.mermaid.721cd79c.async.js → npm.mermaid.b398414f.async.js} +114 -114
- package/dist/client/npm.rc-cascader.cf6ec555.async.js +4 -0
- package/dist/client/npm.rc-image.d550fa79.async.js +1 -0
- package/dist/client/npm.rc-menu.da4ef0ce.async.js +1 -0
- package/dist/client/npm.rc-picker.89eafb74.async.js +22 -0
- package/dist/client/npm.rc-select.44fb85b4.async.js +3 -0
- package/dist/client/npm.rc-slider.d2d511ab.async.js +1 -0
- package/dist/client/npm.rc-table.c5aa8a0d.async.js +22 -0
- package/dist/client/npm.rc-tree-select.5597dcbf.async.js +5 -0
- package/dist/client/npm.rc-tree.49888c60.async.js +1 -0
- package/dist/client/npm.sanitize-html.506a0a55.async.js +34 -0
- package/dist/client/npm.uuid.15e7bb90.async.js +1 -0
- package/dist/client/p__index.e8f58a9f.async.js +1665 -0
- package/dist/client/umi.a7d2d1d2.js +63 -0
- package/package.json +6 -6
- package/dist/client/4750.667c5051.async.js +0 -69
- package/dist/client/501.e8db2401.async.js +0 -1
- package/dist/client/npm._at_ant-design.5ba41bf5.async.js +0 -139
- package/dist/client/npm._at_budibase.4c85e362.async.js +0 -36
- package/dist/client/npm._at_dnd-kit.2fac5dde.async.js +0 -9
- package/dist/client/npm._at_formily.07fa921d.async.js +0 -96
- package/dist/client/npm._at_rc-component.43f95f42.async.js +0 -5
- package/dist/client/npm.antd.483a9a61.async.js +0 -440
- package/dist/client/npm.dayjs.0a5fd152.async.js +0 -1
- package/dist/client/npm.rc-cascader.04b47add.async.js +0 -1
- package/dist/client/npm.rc-menu.adf5ade6.async.js +0 -1
- package/dist/client/npm.rc-picker.9e629062.async.js +0 -1
- package/dist/client/npm.rc-select.7c36e54e.async.js +0 -3
- package/dist/client/npm.rc-table.a153e021.async.js +0 -1
- package/dist/client/npm.rc-tree.f61b7d87.async.js +0 -1
- package/dist/client/npm.sanitize-html.4386b2d9.async.js +0 -34
- package/dist/client/p__index.664cb0f3.async.js +0 -1586
- package/dist/client/umi.31a3c863.js +0 -60
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[527],{11700:function(N,v,f){"use strict";var c=f(77218);N.exports=function(u,a){typeof u=="string"?u=[u]:Array.isArray(u)||(a=u,u=null),a=a||{};var e=a.handlebars||a.hbs||f(96750);if(N.exports.handlebars=e,u)u.forEach(function(r){e.registerHelper(c[r])});else for(const r in c){const t=c[r];e.registerHelper(t)}return e.helpers};for(const s in c){const u=c[s];N.exports[s]=function(a){a=a||{};var e=a.handlebars||a.hbs||f(96750);return N.exports.handlebars=e,e.registerHelper(u),u}}N.exports.utils=f(18849)},19886:function(N,v,f){"use strict";var c=f(6057),s=N.exports;const u=f(29946),a=f(54358);s.after=function(e,r){return c.isUndefined(e)?"":(e=c.result(e),Array.isArray(e)?e.slice(r):"")},s.arrayify=function(e){return c.isUndefined(e)?[]:e?Array.isArray(e)?e:[e]:[]},s.before=function(e,r){return c.isUndefined(e)?"":(e=c.result(e),Array.isArray(e)?e.slice(0,r-1):"")},s.eachIndex=function(e,r){var t="";if(c.isUndefined(e))return"";if(e=c.result(e),Array.isArray(e))for(var n=0;n<e.length;n++)t+=r.fn({item:e[n],index:n});return t},s.filter=function(e,r,t){if(c.isUndefined(e))return t.inverse(this);if(e=c.result(e),Array.isArray(e)){var n="",i=[],l=t.hash&&(t.hash.property||t.hash.prop);if(l?i=e.filter(function(b){return r===u(b,l)}):i=e.filter(function(b){return r===b}),i&&i.length>0){for(var d=0;d<i.length;d++)n+=t.fn(i[d]);return n}}return t.inverse(this)},s.first=function(e,r){return c.isUndefined(e)?[]:(e=c.result(e),Array.isArray(e)?isNaN(r)?e[0]:e.slice(0,r):[])},s.forEach=function(e,r){if(c.isUndefined(e))return r.inverse(this);if(e=c.result(e),Array.isArray(e)){for(var t=a(r,r.hash),n=e.length,i="",l=-1;++l<n;){var d=e[l];t.index=l,d.index=l+1,d.total=n,d.isFirst=l===0,d.isLast=l===n-1,i+=r.fn(d,{data:t})}return i}return r.inverse(this)},s.inArray=function(e,r,t){return c.isUndefined(e)?"":(e=c.result(e),Array.isArray(e)?c.value(c.indexOf(e,r)>-1,this,t):"")},s.isArray=function(e){return Array.isArray(e)},s.itemAt=function(e,r){if(c.isUndefined(e))return null;if(e=c.result(e),Array.isArray(e)){if(r=isNaN(r)?0:+r,r<0)return e[e.length+r];if(r<e.length)return e[r]}return null},s.join=function(e,r){return c.isUndefined(e)?"":typeof e=="string"?e:(e=c.result(e),Array.isArray(e)?(r=c.isString(r)?r:", ",e.join(r)):"")},s.equalsLength=function(e,r,t){c.isOptions(r)&&(t=r,r=0);var n=s.length(e);return c.value(n===r,this,t)},s.last=function(e,r){return c.isUndefined(e)||!Array.isArray(e)&&typeof value!="string"?"":isNaN(r)?e[e.length-1]:e.slice(-Math.abs(r))},s.length=function(e){return c.isUndefined(e)?0:(c.isObject(e)&&!c.isOptions(e)&&(e=Object.keys(e)),typeof e=="string"&&e.startsWith("[")&&e.endsWith("]")?e.split(",").length:typeof e=="string"||Array.isArray(e)?e.length:0)},s.lengthEqual=s.equalsLength,s.map=function(e,r){if(c.isUndefined(e)||!Array.isArray(e))return"";var t=e.length,n=new Array(t),i=-1;if(typeof r!="function")return e;for(;++i<t;)n[i]=r(e[i],i,e);return n},s.pluck=function(e,r){if(c.isUndefined(e))return"";if(e=c.result(e),Array.isArray(e)){for(var t=[],n=0;n<e.length;n++){var i=u(e[n],r);typeof i<"u"&&t.push(i)}return t}return""},s.reverse=function(e){return c.isUndefined(e)?"":(e=c.result(e),Array.isArray(e)?[...e].reverse():e&&typeof e=="string"?e.split("").reverse().join(""):"")},s.some=function(e,r,t){if(c.isUndefined(e))return t.inverse(this);if(e=c.result(e),Array.isArray(e)){for(var n=0;n<e.length;n++)if(r(e[n],n,e))return t.fn(this)}return t.inverse(this)},s.sort=function(e,r){return c.isUndefined(e)?"":(e=c.result(e),Array.isArray(e)?u(r,"hash.reverse")?[...e].sort().reverse():[...e].sort():"")},s.sortBy=function(e,r,t){if(c.isUndefined(e))return"";if(e=c.result(e),Array.isArray(e)){var n=[].slice.call(arguments);return n.pop(),!c.isString(r)&&typeof r!="function"?[...e].sort():typeof r=="function"?[...e].sort(r):[...e].sort((i,l)=>i[r]>l[r]?1:-1)}return""},s.withAfter=function(e,r,t){if(c.isUndefined(e))return"";if(e=c.result(e),Array.isArray(e)){e=e.slice(r);for(var n="",i=0;i<e.length;i++)n+=t.fn(e[i]);return n}return""},s.withBefore=function(e,r,t){if(c.isUndefined(e))return"";if(e=c.result(e),Array.isArray(e)){e=e.slice(0,-r);for(var n="",i=0;i<e.length;i++)n+=t.fn(e[i]);return n}return""},s.withFirst=function(e,r,t){if(c.isUndefined(e))return"";if(e=c.result(e),Array.isArray(e)){if(c.isUndefined(r)||(r=parseFloat(c.result(r))),c.isUndefined(r))return t=r,t.fn(e[0]);e=e.slice(0,r);for(var n="",i=0;i<e.length;i++)n+=t.fn(e[i]);return n}return""},s.withGroup=function(e,r,t){if(c.isUndefined(e))return"";var n="";if(e=c.result(e),Array.isArray(e)&&e.length>0){for(var i=[],l=0;l<e.length;l++)l>0&&l%r===0&&(n+=t.fn(i),i=[]),i.push(e[l]);n+=t.fn(i)}return n},s.withLast=function(e,r,t){if(c.isUndefined(e))return"";if(e=c.result(e),Array.isArray(e)){if(c.isUndefined(r)||(r=parseFloat(c.result(r))),c.isUndefined(r))return t=r,t.fn(e[e.length-1]);e=e.slice(-r);for(var n=e.length,i=-1,l="";++i<n;)l+=t.fn(e[i]);return l}return""},s.withSort=function(e,r,t){if(c.isUndefined(e))return"";if(e=c.result(e),Array.isArray(e)){var n="";if(c.isUndefined(r)){t=r,e=[...e].sort(),u(t,"hash.reverse")&&(e=e.reverse());for(var i=0,l=e.length;i<l;i++)n+=t.fn(e[i]);return n}e=[...e].sort(function(o,y){return o=u(o,r),y=u(y,r),o>y?1:o<y?-1:0}),u(t,"hash.reverse")&&(e=e.reverse());for(var d=e.length,b=-1;++b<d;)n+=t.fn(e[b]);return n}return""},s.unique=function(e,r){return c.isUndefined(e)?"":(e=c.result(e),Array.isArray(e)?e.filter(function(t,n,i){return i.indexOf(t)===n}):"")}},94841:function(N,v,f){"use strict";var c=f(59816),s=f(94612);const u=f(13319),a=f(12533);var e=N.exports;e.embed=function(t,n){n=typeof n!="string"?s.extname(t).slice(1):n;var i=c.readFileSync(t,"utf8");return(n==="markdown"||n==="md")&&(n="markdown",i=i.split("`").join("`")),u(i,n).trim()+`
|
|
2
|
-
`},e.gist=function(r){return a("script",{src:"https://gist.github.com/"+r+".js"})},e.jsfiddle=function(t){var n=Object.assign({},t&&t.hash);if(typeof n.id>"u")throw new Error("jsfiddle helper expects an `id`");return n.id="http://jsfiddle.net/"+n.id,n.width=n.width||"100%",n.height=n.height||"300",n.skin=n.skin||"/presentation/",n.tabs=(n.tabs||"result,js,html,css")+n.skin,n.src=n.id+"/embedded/"+n.tabs,n.allowfullscreen=n.allowfullscreen||"allowfullscreen",n.frameborder=n.frameborder||"0",delete n.tabs,delete n.skin,delete n.id,a("iframe",n)}},4361:function(N,v,f){"use strict";var c=f(6057),s=f(32975),u=f(19886),a=u.forEach,e=s.forOwn,r=N.exports;r.isEmpty=function(t,n){if(!c.isOptions(n))return n=t,c.fn(!0,this,n);if(Array.isArray(t)&&!t.length)return c.fn(!0,this,n);var i=Object.keys(t),l=typeof t=="object"&&!i.length;return c.value(l,this,n)},r.iterate=function(t,n){return Array.isArray(t)?a.apply(null,arguments):c.isObject(t)?e.apply(null,arguments):n.inverse(this)}},20954:function(N,v,f){"use strict";var c=f(13501),s=f(6057),u=f(18849);const a=f(3503),e=f(72219);var r=N.exports;r.and=function(){for(var t=arguments.length-1,n=arguments[t],i=!0,l=0;l<t;l++)if(!arguments[l]){i=!1;break}return s.value(i,this,n)},r.compare=function(t,n,i,l){if(arguments.length<4)throw new Error("handlebars Helper {{compare}} expects 4 arguments");var d;switch(n){case"==":d=t==i;break;case"===":d=t===i;break;case"!=":d=t!=i;break;case"!==":d=t!==i;break;case"<":d=t<i;break;case">":d=t>i;break;case"<=":d=t<=i;break;case">=":d=t>=i;break;case"typeof":d=typeof t===i;break;default:throw new Error("helper {{compare}}: invalid operator: `"+n+"`")}return s.value(d,this,l)},r.contains=function(t,n,i,l){typeof i=="object"&&(l=i,i=void 0);var d=u.contains(t,n,i);return s.value(d,this,l)},r.default=function(){for(var t=0;t<arguments.length-1;t++)if(arguments[t]!=null)return arguments[t];return""},r.eq=function(t,n,i){return arguments.length===2&&(i=n,n=i.hash.compare),s.value(t===n,this,i)},r.gt=function(t,n,i){return arguments.length===2&&(i=n,n=i.hash.compare),s.value(t>n,this,i)},r.gte=function(t,n,i){return arguments.length===2&&(i=n,n=i.hash.compare),s.value(t>=n,this,i)},r.has=function(t,n,i){return s.isOptions(t)&&(i=t,n=null,t=null),s.isOptions(n)&&(i=n,n=null),t===null?s.value(!1,this,i):arguments.length===2?s.value(c(this,t),this,i):(Array.isArray(t)||s.isString(t))&&s.isString(n)&&t.indexOf(n)>-1?s.fn(!0,this,i):s.isObject(t)&&s.isString(n)&&n in t?s.fn(!0,this,i):s.inverse(!1,this,i)},r.isFalsey=function(t,n){return s.value(a(t),this,n)},r.isTruthy=function(t,n){return s.value(!a(t),this,n)},r.ifEven=function(t,n){return s.value(!e(t),this,n)},r.ifNth=function(t,n,i){var l=!isNaN(t)&&!isNaN(n)&&n%t===0;return s.value(l,this,i)},r.ifOdd=function(t,n){return s.value(e(t),this,n)},r.is=function(t,n,i){return arguments.length===2&&(i=n,n=i.hash.compare),s.value(t==n,this,i)},r.isnt=function(t,n,i){return arguments.length===2&&(i=n,n=i.hash.compare),s.value(t!=n,this,i)},r.lt=function(t,n,i){return arguments.length===2&&(i=n,n=i.hash.compare),s.value(t<n,this,i)},r.lte=function(t,n,i){return arguments.length===2&&(i=n,n=i.hash.compare),s.value(t<=n,this,i)},r.neither=function(t,n,i){return s.value(!t&&!n,this,i)},r.not=function(t,n){return s.value(!t,this,n)},r.or=function(){for(var t=arguments.length-1,n=arguments[t],i=!1,l=0;l<t;l++)if(arguments[l]){i=!0;break}return s.value(i,this,n)},r.unlessEq=function(t,n,i){return s.isOptions(n)&&(i=n,n=i.hash.compare),s.value(t!==n,this,i)},r.unlessGt=function(t,n,i){return s.isOptions(n)&&(i=n,n=i.hash.compare),s.value(t<=n,this,i)},r.unlessLt=function(t,n,i){return s.isOptions(n)&&(i=n,n=i.hash.compare),s.value(t>=n,this,i)},r.unlessGteq=function(t,n,i){return s.isOptions(n)&&(i=n,n=i.hash.compare),s.value(t<n,this,i)},r.unlessLteq=function(t,n,i){return s.isOptions(n)&&(i=n,n=i.hash.compare),s.value(t>n,this,i)}},11691:function(N,v,f){"use strict";var c=f(94612),s=f(6057),u=f(59251),a=u.parseAttributes,e=N.exports;const r=f(12533);e.attr=function(t){var n=a(t&&t.hash||{});return n.trim()?" "+n:""},e.css=function(t,n){arguments.length<2&&(n=t,t=[]);var i=s.arrayify(t),l="";return this&&this.options&&(l=this.options.assets||""),n.hash.href&&(i=s.arrayify(n.hash.href)),i.map(function(d){var b=c.extname(d),o=d;return/(^\/\/)|(:\/\/)/.test(d)||(o=c.posix.join(l,d)),b===".less"?`<link type="text/css" rel="stylesheet/less" href="${o}">`:`<link type="text/css" rel="stylesheet" href="${o}">`}).join(`
|
|
3
|
-
`)},e.js=function(t){if(typeof t=="object"&&t.hash){var n=a(t.hash);return`<script${n?" "+n:""}><\/script>`}return typeof t=="string"?`<script src="${t}"><\/script>`:(t=s.arrayify(t),t.map(function(i){return c.extname(i)===".coffee"?r("script",{type:"text/coffeescript",src:i}):r("script",{src:i})}).join(`
|
|
4
|
-
`))},e.sanitize=function(t){return u.sanitize(t)},e.ul=function(t,n){return"<ul "+a(n.hash)+">"+t.map(function(i){return typeof i!="string"&&(i=n.fn(i)),"<li>"+i+"</li>"}).join(`
|
|
5
|
-
`)+"</ul>"},e.ol=function(t,n){return"<ol "+a(n.hash)+">"+t.map(function(i){return typeof i!="string"&&(i=n.fn(i)),"<li>"+i+"</li>"}).join(`
|
|
6
|
-
`)+"</ol>"},e.thumbnailImage=function(t){var n="",i="",l=t.full||!1,d={alt:t.alt,src:t.thumbnail,width:t.size.width,height:t.size.height},b={id:"image-"+t.id},o={href:l,rel:"thumbnail"};return t.classes&&(t.classes.image&&(d.class=t.classes.image.join(" ")),t.classes.figure&&(b.class=t.classes.figure.join(" ")),t.classes.link&&(o.class=t.classes.link.join(" "))),n+="<figure "+a(b)+`>
|
|
7
|
-
`,i+="<img "+a(d)+`>
|
|
8
|
-
`,l?n+="<a "+a(o)+`>
|
|
9
|
-
`+i+`</a>
|
|
10
|
-
`:n+=i,t.caption&&(n+="<figcaption>"+t.caption+`</figcaption>
|
|
11
|
-
`),n+="</figure>",n}},86205:function(N,v,f){"use strict";var c=f(6057),s=N.exports;const u=f(29946);s.i18n=function(a,e,r){if(c.isOptions(e)&&(r=e,e={}),!c.isString(a))throw new Error('{{i18n}} helper expected "key" to be a string');var t=c.options(this,e,r),n=Object.assign({},this,t),i=n.language||n.lang;if(typeof i!="string")throw new TypeError('{{i18n}} helper expected "language" to be a string');var l=n[i];if(typeof l>"u")throw new Error('{{i18n}} helper cannot find language "'+i+'"');var d=u(l,a);if(typeof d>"u")throw new Error('{{i18n}} helper cannot find property "'+a+'" for language "'+i+'"');return d}},77218:function(N,v,f){"use strict";N.exports={array:f(19886),code:f(94841),collection:f(4361),comparison:f(20954),html:f(11691),i18n:f(86205),inflection:f(74914),match:f(20952),math:f(36231),misc:f(71469),number:f(29389),object:f(32975),path:f(52951),regex:f(34996),string:f(27845),url:f(21769),uuid:f(95936)}},74914:function(N,v,f){"use strict";var c=f(6057),s=N.exports;s.inflect=function(u,a,e,r){var t=u>1||u===0?e:a;return r===!0?String(u)+" "+t:t},s.ordinalize=function(u){var a=Math.abs(Math.round(u)),e=String(u),r=a%100;if(c.indexOf([11,12,13],r)>=0)return e+"th";switch(a%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}}},22194:function(N){const v=`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor. Maecenas nisl est, ultrices nec congue eget, auctor vitae massa. Fusce luctus vestibulum augue ut aliquet. Mauris ante ligula, facilisis sed ornare eu, lobortis in odio. Praesent convallis urna a lacus interdum ut hendrerit risus congue. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta.
|
|
12
|
-
|
|
13
|
-
Crase tempor malesuada magna a vehicula. Nam sollicitudin vel turpis id fermentum. Ut sit amet nisl ac nulla vulputate ultrices vitae vitae urna. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum. Nulla at nulla justo, eget luctus tortor. Nulla facilisi. Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio.
|
|
14
|
-
|
|
15
|
-
Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Praesent id justo in neque elementum ultrices. Sed malesuada augue eu sapien sodales congue. Nam ut dui. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Proin vel ante a orci tempus eleifend ut et magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus luctus urna sed urna ultricies ac tempor dui sagittis. In condimentum facilisis porta. Sed nec diam eu diam mattis viverra. Nulla fringilla, orci ac euismod semper, magna diam porttitor mauris, quis sollicitudin sapien justo in libero. Vestibulum mollis mauris enim. Morbi euismod magna ac lorem rutrum elementum. Donec viverra auctor lobortis. Pellentesque eu est a nulla placerat dignissim. Morbi a enim in magna semper bibendum. Etiam scelerisque, nunc ac egestas consequat, odio nibh euismod nulla, eget auctor orci nibh vel nisi. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus fermentum nibh in augue. Praesent a lacus at urna congue rutrum. Nulla enim eros, porttitor eu, tempus id, varius non, nibh. Vestibulum imperdiet nibh vel magna lacinia ultrices. Sed id ligula quis est convallis tempor.
|
|
16
|
-
|
|
17
|
-
Aliquam erat volutpat. Integer aliquam ultrices nunc. Ut lectus dui, tincidunt ac, scelerisque ac, ultrices vitae, risus. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur vehicula nisi a magna. Sed nec libero. Phasellus nonummy magna. Sed et libero nec ligula blandit fringilla. Ut pretium tempus gravida. Proin lacinia justo vel ipsum varius eget auctor est iaculis.
|
|
18
|
-
|
|
19
|
-
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce luctus vestibulum augue ut aliquet. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta.
|
|
20
|
-
|
|
21
|
-
Nam dui erat, auctor a, dignissim quis. Aenean dignissim pellentesque felis. Sed gravida ante at nunc dictum placerat. Donec placerat nisl magna, et faucibus arcu condimentum sed. Curabitur et eros ac orci vehicula vestibulum sit amet at nunc. Maecenas non diam cursus, tincidunt nisi vitae, hendrerit enim. Donec vulputate felis id felis dapibus fermentum.
|
|
22
|
-
|
|
23
|
-
Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Praesent id justo in neque elementum ultrices. Sed malesuada augue eu sapien sodales congue. Nam ut dui. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.
|
|
24
|
-
|
|
25
|
-
Pellentesque sit amet mauris eget lectus commodo viverra. Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio. Cras ultricies ligula sed magna dictum porta. Curabitur aliquet quam id dui posuere blandit. Nulla porttitor accumsan tincidunt. Donec sollicitudin molestie malesuada. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Sed porttitor lectus nibh. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.
|
|
26
|
-
|
|
27
|
-
Cras ultricies ligula sed magna dictum porta. Donec rutrum congue leo eget malesuada. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Donec rutrum congue leo eget malesuada. Vivamus suscipit tortor eget felis porttitor volutpat. Nulla porttitor accumsan tincidunt.
|
|
28
|
-
|
|
29
|
-
Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit.
|
|
30
|
-
|
|
31
|
-
Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus.
|
|
32
|
-
|
|
33
|
-
Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.`;N.exports=v},20952:function(N,v,f){"use strict";var c=f(6057),s=N.exports;const u=f(19498);s.match=function(a,e,r,t){var n=c.options(this,r,t);return typeof e=="string"&&(e=e.split(/, */)),u(a,e,n)},s.isMatch=function(a,e,r,t){var n=c.options(this,r,t);return u.isMatch(a,e,n)},s.mm=function(){return console.log("the {{mm}} helper is depcrecated and will be removed"),console.log("in handlebars-helpers v1.0.0, please use the {{match}}"),console.log("helper instead."),s.match.apply(this,arguments)}},36231:function(N,v,f){"use strict";var c=f(18849),s=N.exports;s.abs=function(u){if(isNaN(u))throw new TypeError("expected a number");return Math.abs(u)},s.add=function(u,a){return!isNaN(u)&&!isNaN(a)?Number(u)+Number(a):typeof u=="string"&&typeof a=="string"?u+a:""},s.avg=function(){const u=[].concat.apply([],arguments);return u.pop(),s.sum(u)/u.length},s.ceil=function(u){if(isNaN(u))throw new TypeError("expected a number");return Math.ceil(u)},s.divide=function(u,a){if(isNaN(u))throw new TypeError("expected the first argument to be a number");if(isNaN(a))throw new TypeError("expected the second argument to be a number");return Number(u)/Number(a)},s.floor=function(u){if(isNaN(u))throw new TypeError("expected a number");return Math.floor(u)},s.minus=function(u,a){if(isNaN(u))throw new TypeError("expected the first argument to be a number");if(isNaN(a))throw new TypeError("expected the second argument to be a number");return Number(u)-Number(a)},s.modulo=function(u,a){if(isNaN(u))throw new TypeError("expected the first argument to be a number");if(isNaN(a))throw new TypeError("expected the second argument to be a number");return Number(u)%Number(a)},s.multiply=function(u,a){if(isNaN(u))throw new TypeError("expected the first argument to be a number");if(isNaN(a))throw new TypeError("expected the second argument to be a number");return Number(u)*Number(a)},s.plus=function(u,a){if(isNaN(u))throw new TypeError("expected the first argument to be a number");if(isNaN(a))throw new TypeError("expected the second argument to be a number");return Number(u)+Number(a)},s.random=function(u,a){if(isNaN(u))throw new TypeError("expected minimum to be a number");if(isNaN(a))throw new TypeError("expected maximum to be a number");return c.random(u,a)},s.remainder=function(u,a){return u%a},s.round=function(u){if(isNaN(u))throw new TypeError("expected a number");return Math.round(u)},s.subtract=function(u,a){if(isNaN(u))throw new TypeError("expected the first argument to be a number");if(isNaN(a))throw new TypeError("expected the second argument to be a number");return Number(u)-Number(a)},s.sum=function(){for(var u=[].concat.apply([],arguments),a=u.length,e=0;a--;)isNaN(u[a])||(e+=Number(u[a]));return e}},71469:function(N,v,f){"use strict";var c=f(6057),s=N.exports;const u=f(29946),a=f(54358);s.frame=function(e,r){typeof e=="object"&&e.hash&&(r=e,e=r.data);var t=a(e);return typeof r!="object"&&(r={}),t.extend(r.hash),r.fn(this,{data:t})},s.option=function(e,r,t){return u(c.options(this,r,t),e)},s.noop=function(e){return e.fn(this)},s.typeOf=function(e){return typeof e},s.withHash=function(e){return e.hash&&Object.keys(e.hash).length?e.fn(e.hash):e.inverse(this)}},29389:function(N,v,f){"use strict";var c=f(6057),s=N.exports;s.bytes=function(u,a,e){if(u==null||isNaN(u)&&(u=u.length,!u))return"0 B";isNaN(a)&&(a=2);var r=["B","kB","MB","GB","TB","PB","EB","ZB","YB"];a=Math.pow(10,a),u=Number(u);for(var t=r.length-1;t-->=0;){var n=Math.pow(10,t*3);if(n<=u+1){u=Math.round(u*a/n)/a,u+=" "+r[t];break}}return u},s.addCommas=function(u){return u.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")},s.phoneNumber=function(u){return u=u.toString(),"("+u.substr(0,3)+") "+u.substr(3,3)+"-"+u.substr(6,4)},s.toAbbr=function(u,a){isNaN(u)&&(u=0),c.isUndefined(a)&&(a=2),u=Number(u),a=Math.pow(10,a);for(var e=["k","m","b","t","q"],r=e.length-1;r>=0;){var t=Math.pow(10,(r+1)*3);if(t<=u+1){u=Math.round(u*a/t)/a,u+=e[r];break}r--}return u},s.toExponential=function(u,a){return isNaN(u)&&(u=0),c.isUndefined(a)&&(a=0),Number(u).toExponential(a)},s.toFixed=function(u,a){return isNaN(u)&&(u=0),isNaN(a)&&(a=0),Number(u).toFixed(a)},s.toFloat=function(u){return parseFloat(u)},s.toInt=function(u){return parseInt(u,10)},s.toPrecision=function(u,a){return isNaN(u)&&(u=0),isNaN(a)&&(a=1),Number(u).toPrecision(a)}},32975:function(N,v,f){"use strict";var c=Object.hasOwnProperty,s=f(6057),u=f(19886),a=N.exports;const e=f(29946),r=f(69391),t=f(54358);a.extend=function(){var n=[].slice.call(arguments),i={};s.isOptions(n[n.length-1])&&(i=n.pop().hash,n.push(i));for(var l={},d=0;d<n.length;d++){var b=n[d];if(s.isObject(b))for(var o=Object.keys(b),y=0;y<o.length;y++){var m=o[y];l[m]=b[m]}}return l},a.forIn=function(n,i){if(!s.isOptions(i))return n.inverse(this);var l=t(i,i.hash),d="";for(var b in n)l.key=b,d+=i.fn(n[b],{data:l});return d},a.forOwn=function(n,i){if(!s.isOptions(i))return n.inverse(this);var l=t(i,i.hash),d="";for(var b in n)n.hasOwnProperty(b)&&(l.key=b,d+=i.fn(n[b],{data:l}));return d},a.toPath=function(){for(var n=[],i=0;i<arguments.length;i++)(typeof arguments[i]=="string"||typeof arguments[i]=="number")&&n.push(arguments[i]);return n.join(".")},a.get=function(n,i,l){var d=e(i,n);return l&&l.fn?d?l.fn(d):l.inverse(i):d},a.getObject=function(n,i){return r(i,n)},a.hasOwn=function(n,i){return c.call(n,i)},a.isObject=function(n){return typeof n=="object"},a.JSONparse=function(n,i){return JSON.parse(n)},a.JSONstringify=function(n,i){return isNaN(i)&&(i=0),JSON.stringify(n,null,i)},a.merge=function(n){var i=[].slice.call(arguments),l={};return s.isOptions(i[i.length-1])&&(l=i.pop().hash,i.push(l)),Object.assign.apply(null,i)},a.parseJSON=a.JSONparse,a.pick=function(n,i,l){for(var d=u.arrayify(n),b=d.length,o=-1,y={};++o<b;)y=a.extend({},y,r(i,d[o]));return l.fn?Object.keys(y).length?l.fn(y):l.inverse(i):y},a.stringify=a.JSONstringify},52951:function(N,v,f){"use strict";var c=f(34155),s=f(6057),u=f(94612);const a=f(45824);var e=N.exports;e.absolute=function(r,t){t=t||{data:{}};var n=s.options(this,t),i=Object.assign({},t.data.root,n),l=i.cwd||c.cwd();return u.resolve(l,r)},e.dirname=function(r,t){if(typeof r!="string")throw new TypeError(s.expectedType("filepath","string",r));return u.dirname(r)},e.relative=function(r,t){if(typeof r!="string")throw new TypeError(s.expectedType("first path","string",r));if(typeof t!="string")throw new TypeError(s.expectedType("second path","string",t));return a(r,t)},e.basename=function(r){if(typeof r!="string")throw new TypeError(s.expectedType("filepath","string",r));return u.basename(r)},e.stem=function(r){if(typeof r!="string")throw new TypeError(s.expectedType("filepath","string",r));return u.basename(r,u.extname(r))},e.extname=function(r){if(typeof r!="string")throw new TypeError(s.expectedType("filepath","string",r));return u.extname(r)},e.resolve=function(r){var t=[].slice.call(arguments),n=s.options(this,t.pop()),i=u.resolve(n.cwd||c.cwd());return t.unshift(i),u.resolve.apply(u,t)},e.segments=function(r,t,n){if(typeof r!="string")throw new TypeError(s.expectedType("filepath","string",r));var i=r.split(/[\\\/]+/);return i.slice(t,n).join("/")}},34996:function(N,v,f){"use strict";var c=f(6057),s=N.exports;const u=f(26401);s.toRegex=function(a,e,r){var t=c.options({},e,r);return new RegExp(a,t.flags)},s.test=function(a,e){if(typeof a!="string")return!1;if(u(e)!=="regexp")throw new TypeError("expected a regular expression");return e.test(a)}},27845:function(N,v,f){"use strict";var c=f(6057),s=f(18849),u=N.exports;let a=f(22194);u.append=function(e,r){return typeof e=="string"&&typeof r=="string"?e+r:e},u.camelcase=function(e){return typeof e!="string"?"":s.changecase(e,function(r){return r.toUpperCase()})},u.capitalize=function(e){return typeof e!="string"?"":e.charAt(0).toUpperCase()+e.slice(1)},u.capitalizeAll=function(e){if(typeof e!="string")return"";if(c.isString(e))return e.replace(/\w\S*/g,function(r){return u.capitalize(r)})},u.center=function(e,r){if(typeof e!="string")return"";for(var t="",n=0;n<r;)t+=" ",n++;return t+e+t},u.chop=function(e){return typeof e!="string"?"":s.chop(e)},u.dashcase=function(e){return typeof e!="string"?"":s.changecase(e,function(r){return"-"+r})},u.dotcase=function(e){return typeof e!="string"?"":s.changecase(e,function(r){return"."+r})},u.downcase=function(){return u.lowercase.apply(this,arguments)},u.ellipsis=function(e,r){if(c.isString(e))return e.length<=r?e:u.truncate(e,r)+"\u2026"},u.hyphenate=function(e){return typeof e!="string"?"":e.split(" ").join("-")},u.isString=function(e){return typeof e=="string"},u.lowercase=function(e){return c.isObject(e)&&e.fn?e.fn(this).toLowerCase():typeof e!="string"?"":e.toLowerCase()},u.occurrences=function(e,r){if(typeof e!="string")return"";for(var t=r.length,n=0,i=0;(n=e.indexOf(r,n))>-1;)i++,n+=t;return i},u.pascalcase=function(e){return typeof e!="string"?"":(e=s.changecase(e,function(r){return r.toUpperCase()}),e.charAt(0).toUpperCase()+e.slice(1))},u.pathcase=function(e){return typeof e!="string"?"":s.changecase(e,function(r){return"/"+r})},u.plusify=function(e,r){return typeof e!="string"?"":(c.isString(r)||(r=" "),e.split(r).join("+"))},u.prepend=function(e,r){return typeof e=="string"&&typeof r=="string"?r+e:e},u.raw=function(e){var r=e.fn(),t=c.options(this,e);if(t.escape!==!1)for(var n=0;(n=r.indexOf("{{",n))!==-1;)r[n-1]!=="\\"&&(r=r.slice(0,n)+"\\"+r.slice(n)),n+=3;return r},u.remove=function(e,r){return typeof e!="string"?"":c.isString(r)?e.split(r).join(""):e},u.removeFirst=function(e,r){return typeof e!="string"?"":c.isString(r)?e.replace(r,""):e},u.replace=function(e,r,t){return typeof e!="string"?"":c.isString(r)?(c.isString(t)||(t=""),e.split(r).join(t)):e},u.replaceFirst=function(e,r,t){return typeof e!="string"?"":c.isString(r)?(c.isString(t)||(t=""),e.replace(r,t)):e},u.reverse=f(19886).reverse,u.sentence=function(e){return typeof e!="string"?"":e.replace(/((?:\S[^\.\?\!]*)[\.\?\!]*)/g,function(r){return r.charAt(0).toUpperCase()+r.substr(1).toLowerCase()})},u.snakecase=function(e){return typeof e!="string"?"":s.changecase(e,function(r){return"_"+r})},u.split=function(e,r){return typeof e!="string"?"":(c.isString(r)||(r=","),e.split(r))},u.startsWith=function(e,r,t){var n=[].slice.call(arguments);return t=n.pop(),c.isString(r)&&r.indexOf(e)===0?t.fn(this):typeof t.inverse=="function"?t.inverse(this):""},u.titleize=function(e){if(typeof e!="string")return"";for(var r=e.replace(/[- _]+/g," "),t=r.split(" "),n=t.length,i=[],l=0;n--;){var d=t[l++];i.push(v.capitalize(d))}return i.join(" ")},u.trim=function(e){return typeof e=="string"?e.trim():""},u.trimLeft=function(e){if(c.isString(e))return e.replace(/^\s+/,"")},u.trimRight=function(e){if(c.isString(e))return e.replace(/\s+$/,"")},u.truncate=function(e,r,t){if(c.isString(e))return typeof t!="string"&&(t=""),e.length>r?e.slice(0,r-t.length)+t:e},u.truncateWords=function(e,r,t){if(c.isString(e)&&!isNaN(r)){typeof t!="string"&&(t="\u2026");var n=Number(r),i=e.split(/[ \t]/);if(n>=i.length)return e;i=i.slice(0,n);var l=i.join(" ").trim();return l+t}},u.upcase=function(){return u.uppercase.apply(this,arguments)},u.uppercase=function(e){return c.isObject(e)&&e.fn?e.fn(this).toUpperCase():typeof e!="string"?"":e.toUpperCase()},u.lorem=function(e){return(isNaN(e)||e<1||!e)&&(e=11),a.substring(0,e)}},21769:function(N,v,f){"use strict";var c=f(8575),s=f(6057),u=f(87735),a=N.exports;a.encodeURI=function(e){if(s.isString(e))return encodeURIComponent(e)},a.escape=function(e){if(s.isString(e))return u.escape(e)},a.decodeURI=function(e){if(s.isString(e))return decodeURIComponent(e)},a.urlResolve=function(e,r){return c.resolve(e,r)},a.urlParse=function(e){return c.parse(e)},a.stripQuerystring=function(e){if(s.isString(e))return e.split("?")[0]},a.stripProtocol=function(e){if(s.isString(e)){var r=c.parse(e);return r.protocol="",r.format()}}},54358:function(N){"use strict";N.exports=function(f){if(typeof f!="object")throw new TypeError("createFrame expects data to be an object");var c=Object.assign({},f);if(c._parent=f,c.extend=function(e){Object.assign(this,e)},arguments.length>1)for(var s=[].slice.call(arguments,1),u=s.length,a=-1;++a<u;)c.extend(s[a]||{});return c}},3503:function(N){"use strict";function v(f,c){if(!f)return!0;let s=c||v.keywords;Array.isArray(s)||(s=[s]);const u=typeof f=="string"?f.toLowerCase():null;for(const a of s)if(a===f||a===u)return!0;return!1}v.keywords=["0","false","nada","nil","nay","nah","negative","no","none","nope","nul","null","nix","nyet","uh-uh","veto","zero"],N.exports=v},59251:function(N,v,f){"use strict";var c=f(6057),s=f(62393),u=N.exports;u.condense=function(a){return a.replace(/(\r\n|\r|\n|\u2028|\u2029) {2,}/g,`
|
|
34
|
-
`)},u.padcomments=function(a){return a.replace(/(\s*<!--)/g,`
|
|
35
|
-
$1`)},u.parseAttributes=function(e){return Object.keys(e).map(function(r){var t=String(e[r]).replace(/^['"]|["']$/g,"");return r+'="'+t+'"'}).join(" ")},u.sanitize=function(a){return c.isString(a)?s(a).trim():""},u.toAttributes=function(e){for(var r="",t=Object.keys(e),n=0;n<t.length;n++){var i=e[t[n]];i===!0?r+=" "+t[n]:r+=" "+t[n]+'="'+String(i)+'"'}return r}},18849:function(N,v,f){"use strict";const c=f(6057);v.contains=function(s,u,a){return s==null||u==null||isNaN(s.length)?!1:s.indexOf(u,a)!==-1},v.chop=function(s){if(typeof s!="string")return"";var u=/^[-_.\W\s]+|[-_.\W\s]+$/g;return s.trim().replace(u,"")},v.changecase=function(s,u){if(typeof s!="string")return"";if(s.length===1)return s.toLowerCase();s=v.chop(s).toLowerCase(),typeof u!="function"&&(u=c.identity);var a=/[-_.\W\s]+(\w|$)/g;return s.replace(a,function(e,r){return u(r)})},v.random=function(s,u){return s+Math.floor(Math.random()*(u-s+1))}},72219:function(N){"use strict";N.exports=function(f){const c=Math.abs(f);if(isNaN(c))throw new TypeError("expected a number");if(!Number.isInteger(c))throw new Error("expected an integer");if(!Number.isSafeInteger(c))throw new Error("value exceeds maximum safe integer");return c%2===1}},95936:function(N,v,f){const c=f(92996),s=N.exports;s.uuid=function(){return c.v4()}},68527:function(N,v,f){"use strict";const c=f(59743),s=f(78337),u=f(86582),a=f(11834),e=(r,t={})=>{let n=[];if(Array.isArray(r))for(const i of r){const l=e.create(i,t);Array.isArray(l)?n.push(...l):n.push(l)}else n=[].concat(e.create(r,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};e.parse=(r,t={})=>a(r,t),e.stringify=(r,t={})=>c(typeof r=="string"?e.parse(r,t):r,t),e.compile=(r,t={})=>(typeof r=="string"&&(r=e.parse(r,t)),s(r,t)),e.expand=(r,t={})=>{typeof r=="string"&&(r=e.parse(r,t));let n=u(r,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n},e.create=(r,t={})=>r===""||r.length<3?[r]:t.expand!==!0?e.compile(r,t):e.expand(r,t),N.exports=e},78337:function(N,v,f){"use strict";const c=f(38154),s=f(79963),u=(a,e={})=>{const r=(t,n={})=>{const i=s.isInvalidBrace(n),l=t.invalid===!0&&e.escapeInvalid===!0,d=i===!0||l===!0,b=e.escapeInvalid===!0?"\\":"";let o="";if(t.isOpen===!0)return b+t.value;if(t.isClose===!0)return console.log("node.isClose",b,t.value),b+t.value;if(t.type==="open")return d?b+t.value:"(";if(t.type==="close")return d?b+t.value:")";if(t.type==="comma")return t.prev.type==="comma"?"":d?t.value:"|";if(t.value)return t.value;if(t.nodes&&t.ranges>0){const y=s.reduce(t.nodes),m=c(...y,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(m.length!==0)return y.length>1&&m.length>1?`(${m})`:m}if(t.nodes)for(const y of t.nodes)o+=r(y,t);return o};return r(a)};N.exports=u},2223:function(N){"use strict";N.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
36
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},86582:function(N,v,f){"use strict";const c=f(38154),s=f(59743),u=f(79963),a=(r="",t="",n=!1)=>{const i=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return n?u.flatten(t).map(l=>`{${l}}`):t;for(const l of r)if(Array.isArray(l))for(const d of l)i.push(a(d,t,n));else for(let d of t)n===!0&&typeof d=="string"&&(d=`{${d}}`),i.push(Array.isArray(d)?a(l,d,n):l+d);return u.flatten(i)},e=(r,t={})=>{const n=t.rangeLimit===void 0?1e3:t.rangeLimit,i=(l,d={})=>{l.queue=[];let b=d,o=d.queue;for(;b.type!=="brace"&&b.type!=="root"&&b.parent;)b=b.parent,o=b.queue;if(l.invalid||l.dollar){o.push(a(o.pop(),s(l,t)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){o.push(a(o.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){const g=u.reduce(l.nodes);if(u.exceedsLimit(...g,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=c(...g,t);p.length===0&&(p=s(l,t)),o.push(a(o.pop(),p)),l.nodes=[];return}const y=u.encloseBrace(l);let m=l.queue,h=l;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,m=h.queue;for(let g=0;g<l.nodes.length;g++){const p=l.nodes[g];if(p.type==="comma"&&l.type==="brace"){g===1&&m.push(""),m.push("");continue}if(p.type==="close"){o.push(a(o.pop(),m,y));continue}if(p.value&&p.type!=="open"){m.push(a(m.pop(),p.value));continue}p.nodes&&i(p,l)}return m};return u.flatten(i(r))};N.exports=e},11834:function(N,v,f){"use strict";const c=f(59743),{MAX_LENGTH:s,CHAR_BACKSLASH:u,CHAR_BACKTICK:a,CHAR_COMMA:e,CHAR_DOT:r,CHAR_LEFT_PARENTHESES:t,CHAR_RIGHT_PARENTHESES:n,CHAR_LEFT_CURLY_BRACE:i,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_RIGHT_SQUARE_BRACKET:b,CHAR_DOUBLE_QUOTE:o,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:m,CHAR_ZERO_WIDTH_NOBREAK_SPACE:h}=f(2223),g=(p,A={})=>{if(typeof p!="string")throw new TypeError("Expected a string");const w=A||{},C=typeof w.maxLength=="number"?Math.min(s,w.maxLength):s;if(p.length>C)throw new SyntaxError(`Input length (${p.length}), exceeds max characters (${C})`);const R={type:"root",input:p,nodes:[]},S=[R];let E=R,x=R,H=0;const M=p.length;let I=0,L=0,O;const j=()=>p[I++],U=T=>{if(T.type==="text"&&x.type==="dot"&&(x.type="text"),x&&x.type==="text"&&T.type==="text"){x.value+=T.value;return}return E.nodes.push(T),T.parent=E,T.prev=x,x=T,T};for(U({type:"bos"});I<M;)if(E=S[S.length-1],O=j(),!(O===h||O===m)){if(O===u){U({type:"text",value:(A.keepEscaping?O:"")+j()});continue}if(O===b){U({type:"text",value:"\\"+O});continue}if(O===d){H++;let T;for(;I<M&&(T=j());){if(O+=T,T===d){H++;continue}if(T===u){O+=j();continue}if(T===b&&(H--,H===0))break}U({type:"text",value:O});continue}if(O===t){E=U({type:"paren",nodes:[]}),S.push(E),U({type:"text",value:O});continue}if(O===n){if(E.type!=="paren"){U({type:"text",value:O});continue}E=S.pop(),U({type:"text",value:O}),E=S[S.length-1];continue}if(O===o||O===y||O===a){const T=O;let P;for(A.keepQuotes!==!0&&(O="");I<M&&(P=j());){if(P===u){O+=P+j();continue}if(P===T){A.keepQuotes===!0&&(O+=P);break}O+=P}U({type:"text",value:O});continue}if(O===i){L++;const P={type:"brace",open:!0,close:!1,dollar:x.value&&x.value.slice(-1)==="$"||E.dollar===!0,depth:L,commas:0,ranges:0,nodes:[]};E=U(P),S.push(E),U({type:"open",value:O});continue}if(O===l){if(E.type!=="brace"){U({type:"text",value:O});continue}const T="close";E=S.pop(),E.close=!0,U({type:T,value:O}),L--,E=S[S.length-1];continue}if(O===e&&L>0){if(E.ranges>0){E.ranges=0;const T=E.nodes.shift();E.nodes=[T,{type:"text",value:c(E)}]}U({type:"comma",value:O}),E.commas++;continue}if(O===r&&L>0&&E.commas===0){const T=E.nodes;if(L===0||T.length===0){U({type:"text",value:O});continue}if(x.type==="dot"){if(E.range=[],x.value+=O,x.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,x.type="text";continue}E.ranges++,E.args=[];continue}if(x.type==="range"){T.pop();const P=T[T.length-1];P.value+=x.value+O,x=P,E.ranges--;continue}U({type:"dot",value:O});continue}U({type:"text",value:O})}do if(E=S.pop(),E.type!=="root"){E.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});const T=S[S.length-1],P=T.nodes.indexOf(E);T.nodes.splice(P,1,...E.nodes)}while(S.length>0);return U({type:"eos"}),R};N.exports=g},59743:function(N,v,f){"use strict";const c=f(79963);N.exports=(s,u={})=>{const a=(e,r={})=>{const t=u.escapeInvalid&&c.isInvalidBrace(r),n=e.invalid===!0&&u.escapeInvalid===!0;let i="";if(e.value)return(t||n)&&c.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(const l of e.nodes)i+=a(l);return i};return a(s)}},79963:function(N,v){"use strict";v.isInteger=f=>typeof f=="number"?Number.isInteger(f):typeof f=="string"&&f.trim()!==""?Number.isInteger(Number(f)):!1,v.find=(f,c)=>f.nodes.find(s=>s.type===c),v.exceedsLimit=(f,c,s=1,u)=>u===!1||!v.isInteger(f)||!v.isInteger(c)?!1:(Number(c)-Number(f))/Number(s)>=u,v.escapeNode=(f,c=0,s)=>{const u=f.nodes[c];u&&(s&&u.type===s||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)},v.encloseBrace=f=>f.type!=="brace"||f.commas>>0+f.ranges>>0?!1:(f.invalid=!0,!0),v.isInvalidBrace=f=>f.type!=="brace"?!1:f.invalid===!0||f.dollar?!0:!(f.commas>>0+f.ranges>>0)||f.open!==!0||f.close!==!0?(f.invalid=!0,!0):!1,v.isOpenOrClose=f=>f.type==="open"||f.type==="close"?!0:f.open===!0||f.close===!0,v.reduce=f=>f.reduce((c,s)=>(s.type==="text"&&c.push(s.value),s.type==="range"&&(s.type="text"),c),[]),v.flatten=(...f)=>{const c=[],s=u=>{for(let a=0;a<u.length;a++){const e=u[a];if(Array.isArray(e)){s(e);continue}e!==void 0&&c.push(e)}return c};return s(f),c}},38154:function(N,v,f){"use strict";const c=f(89539),s=f(45702),u=w=>w!==null&&typeof w=="object"&&!Array.isArray(w),a=w=>C=>w===!0?Number(C):String(C),e=w=>typeof w=="number"||typeof w=="string"&&w!=="",r=w=>Number.isInteger(+w),t=w=>{let C=`${w}`,R=-1;if(C[0]==="-"&&(C=C.slice(1)),C==="0")return!1;for(;C[++R]==="0";);return R>0},n=(w,C,R)=>typeof w=="string"||typeof C=="string"?!0:R.stringify===!0,i=(w,C,R)=>{if(C>0){let S=w[0]==="-"?"-":"";S&&(w=w.slice(1)),w=S+w.padStart(S?C-1:C,"0")}return R===!1?String(w):w},l=(w,C)=>{let R=w[0]==="-"?"-":"";for(R&&(w=w.slice(1),C--);w.length<C;)w="0"+w;return R?"-"+w:w},d=(w,C,R)=>{w.negatives.sort((M,I)=>M<I?-1:M>I?1:0),w.positives.sort((M,I)=>M<I?-1:M>I?1:0);let S=C.capture?"":"?:",E="",x="",H;return w.positives.length&&(E=w.positives.map(M=>l(String(M),R)).join("|")),w.negatives.length&&(x=`-(${S}${w.negatives.map(M=>l(String(M),R)).join("|")})`),E&&x?H=`${E}|${x}`:H=E||x,C.wrap?`(${S}${H})`:H},b=(w,C,R,S)=>{if(R)return s(w,C,{wrap:!1,...S});let E=String.fromCharCode(w);if(w===C)return E;let x=String.fromCharCode(C);return`[${E}-${x}]`},o=(w,C,R)=>{if(Array.isArray(w)){let S=R.wrap===!0,E=R.capture?"":"?:";return S?`(${E}${w.join("|")})`:w.join("|")}return s(w,C,R)},y=(...w)=>new RangeError("Invalid range arguments: "+c.inspect(...w)),m=(w,C,R)=>{if(R.strictRanges===!0)throw y([w,C]);return[]},h=(w,C)=>{if(C.strictRanges===!0)throw new TypeError(`Expected step "${w}" to be a number`);return[]},g=(w,C,R=1,S={})=>{let E=Number(w),x=Number(C);if(!Number.isInteger(E)||!Number.isInteger(x)){if(S.strictRanges===!0)throw y([w,C]);return[]}E===0&&(E=0),x===0&&(x=0);let H=E>x,M=String(w),I=String(C),L=String(R);R=Math.max(Math.abs(R),1);let O=t(M)||t(I)||t(L),j=O?Math.max(M.length,I.length,L.length):0,U=O===!1&&n(w,C,S)===!1,T=S.transform||a(U);if(S.toRegex&&R===1)return b(l(w,j),l(C,j),!0,S);let P={negatives:[],positives:[]},D=k=>P[k<0?"negatives":"positives"].push(Math.abs(k)),B=[],q=0;for(;H?E>=x:E<=x;)S.toRegex===!0&&R>1?D(E):B.push(i(T(E,q),j,U)),E=H?E-R:E+R,q++;return S.toRegex===!0?R>1?d(P,S,j):o(B,null,{wrap:!1,...S}):B},p=(w,C,R=1,S={})=>{if(!r(w)&&w.length>1||!r(C)&&C.length>1)return m(w,C,S);let E=S.transform||(U=>String.fromCharCode(U)),x=`${w}`.charCodeAt(0),H=`${C}`.charCodeAt(0),M=x>H,I=Math.min(x,H),L=Math.max(x,H);if(S.toRegex&&R===1)return b(I,L,!1,S);let O=[],j=0;for(;M?x>=H:x<=H;)O.push(E(x,j)),x=M?x-R:x+R,j++;return S.toRegex===!0?o(O,null,{wrap:!1,options:S}):O},A=(w,C,R,S={})=>{if(C==null&&e(w))return[w];if(!e(w)||!e(C))return m(w,C,S);if(typeof R=="function")return A(w,C,1,{transform:R});if(u(R))return A(w,C,0,R);let E={...S};return E.capture===!0&&(E.wrap=!0),R=R||E.step||1,r(R)?r(w)&&r(C)?g(w,C,R,E):p(w,C,Math.max(Math.abs(R),1),E):R!=null&&!u(R)?h(R,E):A(w,C,1,R)};N.exports=A},13501:function(N,v,f){"use strict";const c=f(29946),s=f(45633);N.exports=function(a,e,r){return u(a)&&(typeof e=="string"||Array.isArray(e))?s(c(a,e,r)):!1};function u(a){return a!=null&&(typeof a=="object"||typeof a=="function"||Array.isArray(a))}},45633:function(N,v,f){"use strict";const c=f(26401);N.exports=function s(u){switch(c(u)){case"boolean":case"date":case"function":case"null":case"number":return!0;case"undefined":return!1;case"regexp":return u.source!=="(?:)"&&u.source!=="";case"buffer":return u.toString()!=="";case"error":return u.message!=="";case"string":case"arguments":return u.length!==0;case"file":case"map":case"set":return u.size!==0;case"array":case"object":for(const a of Object.keys(u))if(s(u[a]))return!0;return!1;default:return!0}}},19498:function(N,v,f){"use strict";const c=f(89539),s=f(68527),u=f(59444),a=f(28702),e=n=>n===""||n==="./",r=n=>{const i=n.indexOf("{");return i>-1&&n.indexOf("}",i)>-1},t=(n,i,l)=>{i=[].concat(i),n=[].concat(n);let d=new Set,b=new Set,o=new Set,y=0,m=p=>{o.add(p.output),l&&l.onResult&&l.onResult(p)};for(let p=0;p<i.length;p++){let A=u(String(i[p]),{...l,onResult:m},!0),w=A.state.negated||A.state.negatedExtglob;w&&y++;for(let C of n){let R=A(C,!0);(w?!R.isMatch:R.isMatch)&&(w?d.add(R.output):(d.delete(R.output),b.add(R.output)))}}let g=(y===i.length?[...o]:[...b]).filter(p=>!d.has(p));if(l&&g.length===0){if(l.failglob===!0)throw new Error(`No matches found for "${i.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?i.map(p=>p.replace(/\\/g,"")):i}return g};t.match=t,t.matcher=(n,i)=>u(n,i),t.isMatch=(n,i,l)=>u(i,l)(n),t.any=t.isMatch,t.not=(n,i,l={})=>{i=[].concat(i).map(String);let d=new Set,b=[],o=m=>{l.onResult&&l.onResult(m),b.push(m.output)},y=new Set(t(n,i,{...l,onResult:o}));for(let m of b)y.has(m)||d.add(m);return[...d]},t.contains=(n,i,l)=>{if(typeof n!="string")throw new TypeError(`Expected a string: "${c.inspect(n)}"`);if(Array.isArray(i))return i.some(d=>t.contains(n,d,l));if(typeof i=="string"){if(e(n)||e(i))return!1;if(n.includes(i)||n.startsWith("./")&&n.slice(2).includes(i))return!0}return t.isMatch(n,i,{...l,contains:!0})},t.matchKeys=(n,i,l)=>{if(!a.isObject(n))throw new TypeError("Expected the first argument to be an object");let d=t(Object.keys(n),i,l),b={};for(let o of d)b[o]=n[o];return b},t.some=(n,i,l)=>{let d=[].concat(n);for(let b of[].concat(i)){let o=u(String(b),l);if(d.some(y=>o(y)))return!0}return!1},t.every=(n,i,l)=>{let d=[].concat(n);for(let b of[].concat(i)){let o=u(String(b),l);if(!d.every(y=>o(y)))return!1}return!0},t.all=(n,i,l)=>{if(typeof n!="string")throw new TypeError(`Expected a string: "${c.inspect(n)}"`);return[].concat(i).every(d=>u(d,l)(n))},t.capture=(n,i,l)=>{let d=a.isWindows(l),o=u.makeRe(String(n),{...l,capture:!0}).exec(d?a.toPosixSlashes(i):i);if(o)return o.slice(1).map(y=>y===void 0?"":y)},t.makeRe=(...n)=>u.makeRe(...n),t.scan=(...n)=>u.scan(...n),t.parse=(n,i)=>{let l=[];for(let d of[].concat(n||[]))for(let b of s(String(d),i))l.push(u.parse(b,i));return l},t.braces=(n,i)=>{if(typeof n!="string")throw new TypeError("Expected a string");return i&&i.nobrace===!0||!r(n)?[n]:s(n,i)},t.braceExpand=(n,i)=>{if(typeof n!="string")throw new TypeError("Expected a string");return t.braces(n,{...i,expand:!0})},t.hasBraces=r,N.exports=t},92996:function(N,v,f){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),Object.defineProperty(v,"NIL",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(v,"parse",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(v,"stringify",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(v,"v1",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(v,"v3",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(v,"v4",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(v,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(v,"validate",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(v,"version",{enumerable:!0,get:function(){return r.default}});var c=l(f(19946)),s=l(f(43300)),u=l(f(35356)),a=l(f(23683)),e=l(f(84270)),r=l(f(48660)),t=l(f(15456)),n=l(f(21582)),i=l(f(69875));function l(d){return d&&d.__esModule?d:{default:d}}},21406:function(N,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;function f(o){if(typeof o=="string"){const y=unescape(encodeURIComponent(o));o=new Uint8Array(y.length);for(let m=0;m<y.length;++m)o[m]=y.charCodeAt(m)}return c(u(a(o),o.length*8))}function c(o){const y=[],m=o.length*32,h="0123456789abcdef";for(let g=0;g<m;g+=8){const p=o[g>>5]>>>g%32&255,A=parseInt(h.charAt(p>>>4&15)+h.charAt(p&15),16);y.push(A)}return y}function s(o){return(o+64>>>9<<4)+14+1}function u(o,y){o[y>>5]|=128<<y%32,o[s(y)-1]=y;let m=1732584193,h=-271733879,g=-1732584194,p=271733878;for(let A=0;A<o.length;A+=16){const w=m,C=h,R=g,S=p;m=n(m,h,g,p,o[A],7,-680876936),p=n(p,m,h,g,o[A+1],12,-389564586),g=n(g,p,m,h,o[A+2],17,606105819),h=n(h,g,p,m,o[A+3],22,-1044525330),m=n(m,h,g,p,o[A+4],7,-176418897),p=n(p,m,h,g,o[A+5],12,1200080426),g=n(g,p,m,h,o[A+6],17,-1473231341),h=n(h,g,p,m,o[A+7],22,-45705983),m=n(m,h,g,p,o[A+8],7,1770035416),p=n(p,m,h,g,o[A+9],12,-1958414417),g=n(g,p,m,h,o[A+10],17,-42063),h=n(h,g,p,m,o[A+11],22,-1990404162),m=n(m,h,g,p,o[A+12],7,1804603682),p=n(p,m,h,g,o[A+13],12,-40341101),g=n(g,p,m,h,o[A+14],17,-1502002290),h=n(h,g,p,m,o[A+15],22,1236535329),m=i(m,h,g,p,o[A+1],5,-165796510),p=i(p,m,h,g,o[A+6],9,-1069501632),g=i(g,p,m,h,o[A+11],14,643717713),h=i(h,g,p,m,o[A],20,-373897302),m=i(m,h,g,p,o[A+5],5,-701558691),p=i(p,m,h,g,o[A+10],9,38016083),g=i(g,p,m,h,o[A+15],14,-660478335),h=i(h,g,p,m,o[A+4],20,-405537848),m=i(m,h,g,p,o[A+9],5,568446438),p=i(p,m,h,g,o[A+14],9,-1019803690),g=i(g,p,m,h,o[A+3],14,-187363961),h=i(h,g,p,m,o[A+8],20,1163531501),m=i(m,h,g,p,o[A+13],5,-1444681467),p=i(p,m,h,g,o[A+2],9,-51403784),g=i(g,p,m,h,o[A+7],14,1735328473),h=i(h,g,p,m,o[A+12],20,-1926607734),m=l(m,h,g,p,o[A+5],4,-378558),p=l(p,m,h,g,o[A+8],11,-2022574463),g=l(g,p,m,h,o[A+11],16,1839030562),h=l(h,g,p,m,o[A+14],23,-35309556),m=l(m,h,g,p,o[A+1],4,-1530992060),p=l(p,m,h,g,o[A+4],11,1272893353),g=l(g,p,m,h,o[A+7],16,-155497632),h=l(h,g,p,m,o[A+10],23,-1094730640),m=l(m,h,g,p,o[A+13],4,681279174),p=l(p,m,h,g,o[A],11,-358537222),g=l(g,p,m,h,o[A+3],16,-722521979),h=l(h,g,p,m,o[A+6],23,76029189),m=l(m,h,g,p,o[A+9],4,-640364487),p=l(p,m,h,g,o[A+12],11,-421815835),g=l(g,p,m,h,o[A+15],16,530742520),h=l(h,g,p,m,o[A+2],23,-995338651),m=d(m,h,g,p,o[A],6,-198630844),p=d(p,m,h,g,o[A+7],10,1126891415),g=d(g,p,m,h,o[A+14],15,-1416354905),h=d(h,g,p,m,o[A+5],21,-57434055),m=d(m,h,g,p,o[A+12],6,1700485571),p=d(p,m,h,g,o[A+3],10,-1894986606),g=d(g,p,m,h,o[A+10],15,-1051523),h=d(h,g,p,m,o[A+1],21,-2054922799),m=d(m,h,g,p,o[A+8],6,1873313359),p=d(p,m,h,g,o[A+15],10,-30611744),g=d(g,p,m,h,o[A+6],15,-1560198380),h=d(h,g,p,m,o[A+13],21,1309151649),m=d(m,h,g,p,o[A+4],6,-145523070),p=d(p,m,h,g,o[A+11],10,-1120210379),g=d(g,p,m,h,o[A+2],15,718787259),h=d(h,g,p,m,o[A+9],21,-343485551),m=e(m,w),h=e(h,C),g=e(g,R),p=e(p,S)}return[m,h,g,p]}function a(o){if(o.length===0)return[];const y=o.length*8,m=new Uint32Array(s(y));for(let h=0;h<y;h+=8)m[h>>5]|=(o[h/8]&255)<<h%32;return m}function e(o,y){const m=(o&65535)+(y&65535);return(o>>16)+(y>>16)+(m>>16)<<16|m&65535}function r(o,y){return o<<y|o>>>32-y}function t(o,y,m,h,g,p){return e(r(e(e(y,o),e(h,p)),g),m)}function n(o,y,m,h,g,p,A){return t(y&m|~y&h,o,y,g,p,A)}function i(o,y,m,h,g,p,A){return t(y&h|m&~h,o,y,g,p,A)}function l(o,y,m,h,g,p,A){return t(y^m^h,o,y,g,p,A)}function d(o,y,m,h,g,p,A){return t(m^(y|~h),o,y,g,p,A)}var b=f;v.default=b},54912:function(N,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var c={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};v.default=c},84270:function(N,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f="00000000-0000-0000-0000-000000000000";v.default=f},69875:function(N,v,f){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var c=s(f(15456));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if(!(0,c.default)(e))throw TypeError("Invalid UUID");let r;const t=new Uint8Array(16);return t[0]=(r=parseInt(e.slice(0,8),16))>>>24,t[1]=r>>>16&255,t[2]=r>>>8&255,t[3]=r&255,t[4]=(r=parseInt(e.slice(9,13),16))>>>8,t[5]=r&255,t[6]=(r=parseInt(e.slice(14,18),16))>>>8,t[7]=r&255,t[8]=(r=parseInt(e.slice(19,23),16))>>>8,t[9]=r&255,t[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=r/4294967296&255,t[12]=r>>>24&255,t[13]=r>>>16&255,t[14]=r>>>8&255,t[15]=r&255,t}var a=u;v.default=a},16137:function(N,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;v.default=f},61632:function(N,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=s;let f;const c=new Uint8Array(16);function s(){if(!f&&(f=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!f))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return f(c)}},61372:function(N,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;function f(a,e,r,t){switch(a){case 0:return e&r^~e&t;case 1:return e^r^t;case 2:return e&r^e&t^r&t;case 3:return e^r^t}}function c(a,e){return a<<e|a>>>32-e}function s(a){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const l=unescape(encodeURIComponent(a));a=[];for(let d=0;d<l.length;++d)a.push(l.charCodeAt(d))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const t=a.length/4+2,n=Math.ceil(t/16),i=new Array(n);for(let l=0;l<n;++l){const d=new Uint32Array(16);for(let b=0;b<16;++b)d[b]=a[l*64+b*4]<<24|a[l*64+b*4+1]<<16|a[l*64+b*4+2]<<8|a[l*64+b*4+3];i[l]=d}i[n-1][14]=(a.length-1)*8/Math.pow(2,32),i[n-1][14]=Math.floor(i[n-1][14]),i[n-1][15]=(a.length-1)*8&4294967295;for(let l=0;l<n;++l){const d=new Uint32Array(80);for(let g=0;g<16;++g)d[g]=i[l][g];for(let g=16;g<80;++g)d[g]=c(d[g-3]^d[g-8]^d[g-14]^d[g-16],1);let b=r[0],o=r[1],y=r[2],m=r[3],h=r[4];for(let g=0;g<80;++g){const p=Math.floor(g/20),A=c(b,5)+f(p,o,y,m)+h+e[p]+d[g]>>>0;h=m,m=y,y=c(o,30)>>>0,o=b,b=A}r[0]=r[0]+b>>>0,r[1]=r[1]+o>>>0,r[2]=r[2]+y>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+h>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var u=s;v.default=u},21582:function(N,v,f){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0,v.unsafeStringify=a;var c=s(f(15456));function s(t){return t&&t.__esModule?t:{default:t}}const u=[];for(let t=0;t<256;++t)u.push((t+256).toString(16).slice(1));function a(t,n=0){return u[t[n+0]]+u[t[n+1]]+u[t[n+2]]+u[t[n+3]]+"-"+u[t[n+4]]+u[t[n+5]]+"-"+u[t[n+6]]+u[t[n+7]]+"-"+u[t[n+8]]+u[t[n+9]]+"-"+u[t[n+10]]+u[t[n+11]]+u[t[n+12]]+u[t[n+13]]+u[t[n+14]]+u[t[n+15]]}function e(t,n=0){const i=a(t,n);if(!(0,c.default)(i))throw TypeError("Stringified UUID is invalid");return i}var r=e;v.default=r},19946:function(N,v,f){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var c=u(f(61632)),s=f(21582);function u(l){return l&&l.__esModule?l:{default:l}}let a,e,r=0,t=0;function n(l,d,b){let o=d&&b||0;const y=d||new Array(16);l=l||{};let m=l.node||a,h=l.clockseq!==void 0?l.clockseq:e;if(m==null||h==null){const R=l.random||(l.rng||c.default)();m==null&&(m=a=[R[0]|1,R[1],R[2],R[3],R[4],R[5]]),h==null&&(h=e=(R[6]<<8|R[7])&16383)}let g=l.msecs!==void 0?l.msecs:Date.now(),p=l.nsecs!==void 0?l.nsecs:t+1;const A=g-r+(p-t)/1e4;if(A<0&&l.clockseq===void 0&&(h=h+1&16383),(A<0||g>r)&&l.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=g,t=p,e=h,g+=122192928e5;const w=((g&268435455)*1e4+p)%4294967296;y[o++]=w>>>24&255,y[o++]=w>>>16&255,y[o++]=w>>>8&255,y[o++]=w&255;const C=g/4294967296*1e4&268435455;y[o++]=C>>>8&255,y[o++]=C&255,y[o++]=C>>>24&15|16,y[o++]=C>>>16&255,y[o++]=h>>>8|128,y[o++]=h&255;for(let R=0;R<6;++R)y[o+R]=m[R];return d||(0,s.unsafeStringify)(y)}var i=n;v.default=i},43300:function(N,v,f){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var c=u(f(11881)),s=u(f(21406));function u(r){return r&&r.__esModule?r:{default:r}}var e=(0,c.default)("v3",48,s.default);v.default=e},11881:function(N,v,f){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.URL=v.DNS=void 0,v.default=t;var c=f(21582),s=u(f(69875));function u(n){return n&&n.__esModule?n:{default:n}}function a(n){n=unescape(encodeURIComponent(n));const i=[];for(let l=0;l<n.length;++l)i.push(n.charCodeAt(l));return i}const e="6ba7b810-9dad-11d1-80b4-00c04fd430c8";v.DNS=e;const r="6ba7b811-9dad-11d1-80b4-00c04fd430c8";v.URL=r;function t(n,i,l){function d(b,o,y,m){var h;if(typeof b=="string"&&(b=a(b)),typeof o=="string"&&(o=(0,s.default)(o)),((h=o)===null||h===void 0?void 0:h.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let g=new Uint8Array(16+b.length);if(g.set(o),g.set(b,o.length),g=l(g),g[6]=g[6]&15|i,g[8]=g[8]&63|128,y){m=m||0;for(let p=0;p<16;++p)y[m+p]=g[p];return y}return(0,c.unsafeStringify)(g)}try{d.name=n}catch{}return d.DNS=e,d.URL=r,d}},35356:function(N,v,f){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var c=a(f(54912)),s=a(f(61632)),u=f(21582);function a(t){return t&&t.__esModule?t:{default:t}}function e(t,n,i){if(c.default.randomUUID&&!n&&!t)return c.default.randomUUID();t=t||{};const l=t.random||(t.rng||s.default)();if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,n){i=i||0;for(let d=0;d<16;++d)n[i+d]=l[d];return n}return(0,u.unsafeStringify)(l)}var r=e;v.default=r},23683:function(N,v,f){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var c=u(f(11881)),s=u(f(61372));function u(r){return r&&r.__esModule?r:{default:r}}var e=(0,c.default)("v5",80,s.default);v.default=e},15456:function(N,v,f){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var c=s(f(16137));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return typeof e=="string"&&c.default.test(e)}var a=u;v.default=a},48660:function(N,v,f){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var c=s(f(15456));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if(!(0,c.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var a=u;v.default=a},29946:function(N,v,f){var c=f(47798);N.exports=function(r,t,n){if(c(n)||(n={default:n}),!e(r))return typeof n.default<"u"?n.default:r;typeof t=="number"&&(t=String(t));var i=Array.isArray(t),l=typeof t=="string",d=n.separator||".",b=n.joinChar||(typeof d=="string"?d:".");if(!l&&!i)return r;if(l&&t in r)return a(t,r,n)?r[t]:n.default;var o=i?t:u(t,d,n),y=o.length,m=0;do{var h=o[m];for(typeof h=="number"&&(h=String(h));h&&h.slice(-1)==="\\";)h=s([h.slice(0,-1),o[++m]||""],b,n);if(h in r){if(!a(h,r,n))return n.default;r=r[h]}else{for(var g=!1,p=m+1;p<y;)if(h=s([h,o[p++]],b,n),g=h in r){if(!a(h,r,n))return n.default;r=r[h],m=p-1;break}if(!g)return n.default}}while(++m<y&&e(r));return m===y?r:n.default};function s(r,t,n){return typeof n.join=="function"?n.join(r):r[0]+t+r[1]}function u(r,t,n){return typeof n.split=="function"?n.split(r):r.split(t)}function a(r,t,n){return typeof n.isValid=="function"?n.isValid(r,t):!0}function e(r){return c(r)||Array.isArray(r)||typeof r=="function"}}}]);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[4989],{42617:function(vn,Ue,ae){ae.r(Ue),ae.d(Ue,{HiddenText:function(){return u},LiveRegion:function(){return De},useAnnouncement:function(){return qe}});var s=ae(67294);const V={display:"none"};function u(Se){let{id:$,value:Ee}=Se;return s.createElement("div",{id:$,style:V},Ee)}function De(Se){let{id:$,announcement:Ee,ariaLiveType:Ne="assertive"}=Se;const ne={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return s.createElement("div",{id:$,style:ne,role:"status","aria-live":Ne,"aria-atomic":!0},Ee)}function qe(){const[Se,$]=(0,s.useState)("");return{announce:(0,s.useCallback)(Ne=>{Ne!=null&&$(Ne)},[]),announcement:Se}}},94697:function(vn,Ue,ae){ae.d(Ue,{Cj:function(){return y},LB:function(){return t},O1:function(){return p},VK:function(){return w},Zj:function(){return A},g4:function(){return Z}});var s=ae(67294),V=ae(73935),u=ae(24285),De=ae(42617);const qe=(0,s.createContext)(null);function Se(e){const n=(0,s.useContext)(qe);(0,s.useEffect)(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)},[e,n])}function $(){const[e]=(0,s.useState)(()=>new Set),n=(0,s.useCallback)(i=>(e.add(i),()=>e.delete(i)),[e]);return[(0,s.useCallback)(i=>{let{type:l,event:c}=i;e.forEach(h=>{var v;return(v=h[l])==null?void 0:v.call(h,c)})},[e]),n]}const Ee={draggable:`
|
|
2
|
-
To pick up a draggable item, press the space bar.
|
|
3
|
-
While dragging, use the arrow keys to move the item.
|
|
4
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
5
|
-
`},Ne={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:o}=e;return o?"Draggable item "+n.id+" was moved over droppable area "+o.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:o}=e;return o?"Draggable item "+n.id+" was dropped over droppable area "+o.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function ne(e){let{announcements:n=Ne,container:o,hiddenTextDescribedById:i,screenReaderInstructions:l=Ee}=e;const{announce:c,announcement:h}=(0,De.useAnnouncement)(),v=(0,u.useUniqueId)("DndLiveRegion"),[b,S]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{S(!0)},[]),Se((0,s.useMemo)(()=>({onDragStart(T){let{active:_}=T;c(n.onDragStart({active:_}))},onDragMove(T){let{active:_,over:z}=T;n.onDragMove&&c(n.onDragMove({active:_,over:z}))},onDragOver(T){let{active:_,over:z}=T;c(n.onDragOver({active:_,over:z}))},onDragEnd(T){let{active:_,over:z}=T;c(n.onDragEnd({active:_,over:z}))},onDragCancel(T){let{active:_,over:z}=T;c(n.onDragCancel({active:_,over:z}))}}),[c,n])),!b)return null;const P=s.createElement(s.Fragment,null,s.createElement(De.HiddenText,{id:i,value:l.draggable}),s.createElement(De.LiveRegion,{id:v,announcement:h}));return o?(0,V.createPortal)(P,o):P}var K;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(K||(K={}));function Y(){}function de(e,n){return useMemo(()=>({sensor:e,options:n??{}}),[e,n])}function nt(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return useMemo(()=>[...n].filter(i=>i!=null),[...n])}const Re=Object.freeze({x:0,y:0});function Ze(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Kt(e,n){const o=getEventCoordinates(e);if(!o)return"0 0";const i={x:(o.x-n.left)/n.width*100,y:(o.y-n.top)/n.height*100};return i.x+"% "+i.y+"%"}function rt(e,n){let{data:{value:o}}=e,{data:{value:i}}=n;return o-i}function ke(e,n){let{data:{value:o}}=e,{data:{value:i}}=n;return i-o}function Qe(e){let{left:n,top:o,height:i,width:l}=e;return[{x:n,y:o},{x:n+l,y:o},{x:n,y:o+i},{x:n+l,y:o+i}]}function Wt(e,n){if(!e||e.length===0)return null;const[o]=e;return n?o[n]:o}function Et(e,n,o){return n===void 0&&(n=e.left),o===void 0&&(o=e.top),{x:n+e.width*.5,y:o+e.height*.5}}const _t=e=>{let{collisionRect:n,droppableRects:o,droppableContainers:i}=e;const l=Et(n,n.left,n.top),c=[];for(const h of i){const{id:v}=h,b=o.get(v);if(b){const S=Ze(Et(b),l);c.push({id:v,data:{droppableContainer:h,value:S}})}}return c.sort(rt)},Lt=e=>{let{collisionRect:n,droppableRects:o,droppableContainers:i}=e;const l=Qe(n),c=[];for(const h of i){const{id:v}=h,b=o.get(v);if(b){const S=Qe(b),P=l.reduce((_,z,fe)=>_+Ze(S[fe],z),0),T=Number((P/4).toFixed(4));c.push({id:v,data:{droppableContainer:h,value:T}})}}return c.sort(rt)};function Nt(e,n){const o=Math.max(n.top,e.top),i=Math.max(n.left,e.left),l=Math.min(n.left+n.width,e.left+e.width),c=Math.min(n.top+n.height,e.top+e.height),h=l-i,v=c-o;if(i<l&&o<c){const b=n.width*n.height,S=e.width*e.height,P=h*v,T=P/(b+S-P);return Number(T.toFixed(4))}return 0}const Ft=e=>{let{collisionRect:n,droppableRects:o,droppableContainers:i}=e;const l=[];for(const c of i){const{id:h}=c,v=o.get(h);if(v){const b=Nt(v,n);b>0&&l.push({id:h,data:{droppableContainer:c,value:b}})}}return l.sort(ke)};function Pt(e,n){const{top:o,left:i,bottom:l,right:c}=n;return o<=e.y&&e.y<=l&&i<=e.x&&e.x<=c}const Yt=e=>{let{droppableContainers:n,droppableRects:o,pointerCoordinates:i}=e;if(!i)return[];const l=[];for(const c of n){const{id:h}=c,v=o.get(h);if(v&&Pt(i,v)){const S=Qe(v).reduce((T,_)=>T+Ze(i,_),0),P=Number((S/4).toFixed(4));l.push({id:h,data:{droppableContainer:c,value:P}})}}return l.sort(rt)};function Ht(e,n,o){return{...e,scaleX:n&&o?n.width/o.width:1,scaleY:n&&o?n.height/o.height:1}}function d(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:Re}function C(e){return function(o){for(var i=arguments.length,l=new Array(i>1?i-1:0),c=1;c<i;c++)l[c-1]=arguments[c];return l.reduce((h,v)=>({...h,top:h.top+e*v.y,bottom:h.bottom+e*v.y,left:h.left+e*v.x,right:h.right+e*v.x}),{...o})}}const D=C(1);function R(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function I(e,n,o){const i=R(n);if(!i)return e;const{scaleX:l,scaleY:c,x:h,y:v}=i,b=e.left-h-(1-l)*parseFloat(o),S=e.top-v-(1-c)*parseFloat(o.slice(o.indexOf(" ")+1)),P=l?e.width/l:e.width,T=c?e.height/c:e.height;return{width:P,height:T,top:S,right:b+P,bottom:S+T,left:b}}const g={ignoreTransform:!1};function w(e,n){n===void 0&&(n=g);let o=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:S,transformOrigin:P}=(0,u.getWindow)(e).getComputedStyle(e);S&&(o=I(o,S,P))}const{top:i,left:l,width:c,height:h,bottom:v,right:b}=o;return{top:i,left:l,width:c,height:h,bottom:v,right:b}}function M(e){return w(e,{ignoreTransform:!0})}function m(e){const n=e.innerWidth,o=e.innerHeight;return{top:0,left:0,right:n,bottom:o,width:n,height:o}}function x(e,n){return n===void 0&&(n=(0,u.getWindow)(e).getComputedStyle(e)),n.position==="fixed"}function L(e,n){n===void 0&&(n=(0,u.getWindow)(e).getComputedStyle(e));const o=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(l=>{const c=n[l];return typeof c=="string"?o.test(c):!1})}function B(e,n){const o=[];function i(l){if(n!=null&&o.length>=n||!l)return o;if((0,u.isDocument)(l)&&l.scrollingElement!=null&&!o.includes(l.scrollingElement))return o.push(l.scrollingElement),o;if(!(0,u.isHTMLElement)(l)||(0,u.isSVGElement)(l)||o.includes(l))return o;const c=(0,u.getWindow)(e).getComputedStyle(l);return l!==e&&L(l,c)&&o.push(l),x(l,c)?o:i(l.parentNode)}return e?i(e):o}function U(e){const[n]=B(e,1);return n??null}function ee(e){return!u.canUseDOM||!e?null:(0,u.isWindow)(e)?e:(0,u.isNode)(e)?(0,u.isDocument)(e)||e===(0,u.getOwnerDocument)(e).scrollingElement?window:(0,u.isHTMLElement)(e)?e:null:null}function H(e){return(0,u.isWindow)(e)?e.scrollX:e.scrollLeft}function q(e){return(0,u.isWindow)(e)?e.scrollY:e.scrollTop}function re(e){return{x:H(e),y:q(e)}}var W;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(W||(W={}));function he(e){return!u.canUseDOM||!e?!1:e===document.scrollingElement}function Pe(e){const n={x:0,y:0},o=he(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-o.width,y:e.scrollHeight-o.height},l=e.scrollTop<=n.y,c=e.scrollLeft<=n.x,h=e.scrollTop>=i.y,v=e.scrollLeft>=i.x;return{isTop:l,isLeft:c,isBottom:h,isRight:v,maxScroll:i,minScroll:n}}const $e={x:.2,y:.2};function Xe(e,n,o,i,l){let{top:c,left:h,right:v,bottom:b}=o;i===void 0&&(i=10),l===void 0&&(l=$e);const{isTop:S,isBottom:P,isLeft:T,isRight:_}=Pe(e),z={x:0,y:0},fe={x:0,y:0},j={height:n.height*l.y,width:n.width*l.x};return!S&&c<=n.top+j.height?(z.y=W.Backward,fe.y=i*Math.abs((n.top+j.height-c)/j.height)):!P&&b>=n.bottom-j.height&&(z.y=W.Forward,fe.y=i*Math.abs((n.bottom-j.height-b)/j.height)),!_&&v>=n.right-j.width?(z.x=W.Forward,fe.x=i*Math.abs((n.right-j.width-v)/j.width)):!T&&h<=n.left+j.width&&(z.x=W.Backward,fe.x=i*Math.abs((n.left+j.width-h)/j.width)),{direction:z,speed:fe}}function Mt(e){if(e===document.scrollingElement){const{innerWidth:c,innerHeight:h}=window;return{top:0,left:0,right:c,bottom:h,width:c,height:h}}const{top:n,left:o,right:i,bottom:l}=e.getBoundingClientRect();return{top:n,left:o,right:i,bottom:l,width:e.clientWidth,height:e.clientHeight}}function Je(e){return e.reduce((n,o)=>(0,u.add)(n,re(o)),Re)}function We(e){return e.reduce((n,o)=>n+H(o),0)}function Me(e){return e.reduce((n,o)=>n+q(o),0)}function dt(e,n){if(n===void 0&&(n=w),!e)return;const{top:o,left:i,bottom:l,right:c}=n(e);U(e)&&(l<=0||c<=0||o>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const ot=[["x",["left","right"],We],["y",["top","bottom"],Me]];class ft{constructor(n,o){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=B(o),l=Je(i);this.rect={...n},this.width=n.width,this.height=n.height;for(const[c,h,v]of ot)for(const b of h)Object.defineProperty(this,b,{get:()=>{const S=v(i),P=l[c]-S;return this.rect[b]+P},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class st{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(o=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...o)})},this.target=n}add(n,o,i){var l;(l=this.target)==null||l.addEventListener(n,o,i),this.listeners.push([n,o,i])}}function it(e){const{EventTarget:n}=(0,u.getWindow)(e);return e instanceof n?e:(0,u.getOwnerDocument)(e)}function at(e,n){const o=Math.abs(e.x),i=Math.abs(e.y);return typeof n=="number"?Math.sqrt(o**2+i**2)>n:"x"in n&&"y"in n?o>n.x&&i>n.y:"x"in n?o>n.x:"y"in n?i>n.y:!1}var Oe;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Oe||(Oe={}));function en(e){e.preventDefault()}function Ot(e){e.stopPropagation()}var Z;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Z||(Z={}));const ht={start:[Z.Space,Z.Enter],cancel:[Z.Esc],end:[Z.Space,Z.Enter]},Vt=(e,n)=>{let{currentCoordinates:o}=n;switch(e.code){case Z.Right:return{...o,x:o.x+25};case Z.Left:return{...o,x:o.x-25};case Z.Down:return{...o,y:o.y+25};case Z.Up:return{...o,y:o.y-25}}};class Gt{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:o}}=n;this.props=n,this.listeners=new st((0,u.getOwnerDocument)(o)),this.windowListeners=new st((0,u.getWindow)(o)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Oe.Resize,this.handleCancel),this.windowListeners.add(Oe.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Oe.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:o}=this.props,i=n.node.current;i&&dt(i),o(Re)}handleKeyDown(n){if((0,u.isKeyboardEvent)(n)){const{active:o,context:i,options:l}=this.props,{keyboardCodes:c=ht,coordinateGetter:h=Vt,scrollBehavior:v="smooth"}=l,{code:b}=n;if(c.end.includes(b)){this.handleEnd(n);return}if(c.cancel.includes(b)){this.handleCancel(n);return}const{collisionRect:S}=i.current,P=S?{x:S.left,y:S.top}:Re;this.referenceCoordinates||(this.referenceCoordinates=P);const T=h(n,{active:o,context:i.current,currentCoordinates:P});if(T){const _=(0,u.subtract)(T,P),z={x:0,y:0},{scrollableAncestors:fe}=i.current;for(const j of fe){const te=n.code,{isTop:ie,isRight:pe,isLeft:ve,isBottom:we,maxScroll:Ce,minScroll:ce}=Pe(j),ue=Mt(j),se={x:Math.min(te===Z.Right?ue.right-ue.width/2:ue.right,Math.max(te===Z.Right?ue.left:ue.left+ue.width/2,T.x)),y:Math.min(te===Z.Down?ue.bottom-ue.height/2:ue.bottom,Math.max(te===Z.Down?ue.top:ue.top+ue.height/2,T.y))},Ae=te===Z.Right&&!pe||te===Z.Left&&!ve,Ie=te===Z.Down&&!we||te===Z.Up&&!ie;if(Ae&&se.x!==T.x){const xe=j.scrollLeft+_.x,He=te===Z.Right&&xe<=Ce.x||te===Z.Left&&xe>=ce.x;if(He&&!_.y){j.scrollTo({left:xe,behavior:v});return}He?z.x=j.scrollLeft-xe:z.x=te===Z.Right?j.scrollLeft-Ce.x:j.scrollLeft-ce.x,z.x&&j.scrollBy({left:-z.x,behavior:v});break}else if(Ie&&se.y!==T.y){const xe=j.scrollTop+_.y,He=te===Z.Down&&xe<=Ce.y||te===Z.Up&&xe>=ce.y;if(He&&!_.x){j.scrollTo({top:xe,behavior:v});return}He?z.y=j.scrollTop-xe:z.y=te===Z.Down?j.scrollTop-Ce.y:j.scrollTop-ce.y,z.y&&j.scrollBy({top:-z.y,behavior:v});break}}this.handleMove(n,(0,u.add)((0,u.subtract)(T,this.referenceCoordinates),z))}}}handleMove(n,o){const{onMove:i}=this.props;n.preventDefault(),i(o)}handleEnd(n){const{onEnd:o}=this.props;n.preventDefault(),this.detach(),o()}handleCancel(n){const{onCancel:o}=this.props;n.preventDefault(),this.detach(),o()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Gt.activators=[{eventName:"onKeyDown",handler:(e,n,o)=>{let{keyboardCodes:i=ht,onActivation:l}=n,{active:c}=o;const{code:h}=e.nativeEvent;if(i.start.includes(h)){const v=c.activatorNode.current;return v&&e.target!==v?!1:(e.preventDefault(),l==null||l({event:e.nativeEvent}),!0)}return!1}}];function tn(e){return!!(e&&"distance"in e)}function gt(e){return!!(e&&"delay"in e)}class Tt{constructor(n,o,i){var l;i===void 0&&(i=it(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=o;const{event:c}=n,{target:h}=c;this.props=n,this.events=o,this.document=(0,u.getOwnerDocument)(h),this.documentListeners=new st(this.document),this.listeners=new st(i),this.windowListeners=new st((0,u.getWindow)(h)),this.initialCoordinates=(l=(0,u.getEventCoordinates)(c))!=null?l:Re,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:o,bypassActivationConstraint:i}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),this.windowListeners.add(Oe.Resize,this.handleCancel),this.windowListeners.add(Oe.DragStart,en),this.windowListeners.add(Oe.VisibilityChange,this.handleCancel),this.windowListeners.add(Oe.ContextMenu,en),this.documentListeners.add(Oe.Keydown,this.handleKeydown),o){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gt(o)){this.timeoutId=setTimeout(this.handleStart,o.delay);return}if(tn(o))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:n}=this,{onStart:o}=this.props;n&&(this.activated=!0,this.documentListeners.add(Oe.Click,Ot,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Oe.SelectionChange,this.removeTextSelection),o(n))}handleMove(n){var o;const{activated:i,initialCoordinates:l,props:c}=this,{onMove:h,options:{activationConstraint:v}}=c;if(!l)return;const b=(o=(0,u.getEventCoordinates)(n))!=null?o:Re,S=(0,u.subtract)(l,b);if(!i&&v){if(tn(v)){if(v.tolerance!=null&&at(S,v.tolerance))return this.handleCancel();if(at(S,v.distance))return this.handleStart()}return gt(v)&&at(S,v.tolerance)?this.handleCancel():void 0}n.cancelable&&n.preventDefault(),h(b)}handleEnd(){const{onEnd:n}=this.props;this.detach(),n()}handleCancel(){const{onCancel:n}=this.props;this.detach(),n()}handleKeydown(n){n.code===Z.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const Be={move:{name:"pointermove"},end:{name:"pointerup"}};class vt extends Tt{constructor(n){const{event:o}=n,i=(0,u.getOwnerDocument)(o.target);super(n,Be,i)}}vt.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:o}=e,{onActivation:i}=n;return!o.isPrimary||o.button!==0?!1:(i==null||i({event:o}),!0)}}];const Jt={move:{name:"mousemove"},end:{name:"mouseup"}};var At;(function(e){e[e.RightClick=2]="RightClick"})(At||(At={}));class nn extends Tt{constructor(n){super(n,Jt,(0,u.getOwnerDocument)(n.event.target))}}nn.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:o}=e,{onActivation:i}=n;return o.button===At.RightClick?!1:(i==null||i({event:o}),!0)}}];const pn={move:{name:"touchmove"},end:{name:"touchend"}};class bn extends Tt{constructor(n){super(n,pn)}static setup(){return window.addEventListener(pn.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(pn.move.name,n)};function n(){}}}bn.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:o}=e,{onActivation:i}=n;const{touches:l}=o;return l.length>1?!1:(i==null||i({event:o}),!0)}}];var pt;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(pt||(pt={}));var bt;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(bt||(bt={}));function ze(e){let{acceleration:n,activator:o=pt.Pointer,canScroll:i,draggingRect:l,enabled:c,interval:h=5,order:v=bt.TreeOrder,pointerCoordinates:b,scrollableAncestors:S,scrollableAncestorRects:P,delta:T,threshold:_}=e;const z=yn({delta:T,disabled:!c}),[fe,j]=(0,u.useInterval)(),te=(0,s.useRef)({x:0,y:0}),ie=(0,s.useRef)({x:0,y:0}),pe=(0,s.useMemo)(()=>{switch(o){case pt.Pointer:return b?{top:b.y,bottom:b.y,left:b.x,right:b.x}:null;case pt.DraggableRect:return l}},[o,l,b]),ve=(0,s.useRef)(null),we=(0,s.useCallback)(()=>{const ce=ve.current;if(!ce)return;const ue=te.current.x*ie.current.x,se=te.current.y*ie.current.y;ce.scrollBy(ue,se)},[]),Ce=(0,s.useMemo)(()=>v===bt.TreeOrder?[...S].reverse():S,[v,S]);(0,s.useEffect)(()=>{if(!c||!S.length||!pe){j();return}for(const ce of Ce){if((i==null?void 0:i(ce))===!1)continue;const ue=S.indexOf(ce),se=P[ue];if(!se)continue;const{direction:Ae,speed:Ie}=Xe(ce,se,pe,n,_);for(const xe of["x","y"])z[xe][Ae[xe]]||(Ie[xe]=0,Ae[xe]=0);if(Ie.x>0||Ie.y>0){j(),ve.current=ce,fe(we,h),te.current=Ie,ie.current=Ae;return}}te.current={x:0,y:0},ie.current={x:0,y:0},j()},[n,we,i,j,c,h,JSON.stringify(pe),JSON.stringify(z),fe,S,Ce,P,JSON.stringify(_)])}const mn={x:{[W.Backward]:!1,[W.Forward]:!1},y:{[W.Backward]:!1,[W.Forward]:!1}};function yn(e){let{delta:n,disabled:o}=e;const i=(0,u.usePrevious)(n);return(0,u.useLazyMemo)(l=>{if(o||!i||!l)return mn;const c={x:Math.sign(n.x-i.x),y:Math.sign(n.y-i.y)};return{x:{[W.Backward]:l.x[W.Backward]||c.x===-1,[W.Forward]:l.x[W.Forward]||c.x===1},y:{[W.Backward]:l.y[W.Backward]||c.y===-1,[W.Forward]:l.y[W.Forward]||c.y===1}}},[o,n,i])}function cn(e,n){const o=n!==null?e.get(n):void 0,i=o?o.node.current:null;return(0,u.useLazyMemo)(l=>{var c;return n===null?null:(c=i??l)!=null?c:null},[i,n])}function In(e,n){return(0,s.useMemo)(()=>e.reduce((o,i)=>{const{sensor:l}=i,c=l.activators.map(h=>({eventName:h.eventName,handler:n(h.handler,i)}));return[...o,...c]},[]),[e,n])}var mt;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(mt||(mt={}));var Ln;(function(e){e.Optimized="optimized"})(Ln||(Ln={}));const wn=new Map;function ct(e,n){let{dragging:o,dependencies:i,config:l}=n;const[c,h]=(0,s.useState)(null),{frequency:v,measure:b,strategy:S}=l,P=(0,s.useRef)(e),T=te(),_=(0,u.useLatestValue)(T),z=(0,s.useCallback)(function(ie){ie===void 0&&(ie=[]),!_.current&&h(pe=>pe===null?ie:pe.concat(ie.filter(ve=>!pe.includes(ve))))},[_]),fe=(0,s.useRef)(null),j=(0,u.useLazyMemo)(ie=>{if(T&&!o)return wn;if(!ie||ie===wn||P.current!==e||c!=null){const pe=new Map;for(let ve of e){if(!ve)continue;if(c&&c.length>0&&!c.includes(ve.id)&&ve.rect.current){pe.set(ve.id,ve.rect.current);continue}const we=ve.node.current,Ce=we?new ft(b(we),we):null;ve.rect.current=Ce,Ce&&pe.set(ve.id,Ce)}return pe}return ie},[e,c,o,T,b]);return(0,s.useEffect)(()=>{P.current=e},[e]),(0,s.useEffect)(()=>{T||z()},[o,T]),(0,s.useEffect)(()=>{c&&c.length>0&&h(null)},[JSON.stringify(c)]),(0,s.useEffect)(()=>{T||typeof v!="number"||fe.current!==null||(fe.current=setTimeout(()=>{z(),fe.current=null},v))},[v,T,z,...i]),{droppableRects:j,measureDroppableContainers:z,measuringScheduled:c!=null};function te(){switch(S){case mt.Always:return!1;case mt.BeforeDragging:return o;default:return!o}}}function Nn(e,n){return(0,u.useLazyMemo)(o=>e?o||(typeof n=="function"?n(e):e):null,[n,e])}function ir(e,n){return Nn(e,n)}function be(e){let{callback:n,disabled:o}=e;const i=(0,u.useEvent)(n),l=(0,s.useMemo)(()=>{if(o||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:c}=window;return new c(i)},[i,o]);return(0,s.useEffect)(()=>()=>l==null?void 0:l.disconnect(),[l]),l}function ln(e){let{callback:n,disabled:o}=e;const i=(0,u.useEvent)(n),l=(0,s.useMemo)(()=>{if(o||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:c}=window;return new c(i)},[o]);return(0,s.useEffect)(()=>()=>l==null?void 0:l.disconnect(),[l]),l}function ar(e){return new ft(w(e),e)}function Cn(e,n,o){n===void 0&&(n=ar);const[i,l]=(0,s.useReducer)(v,null),c=be({callback(b){if(e)for(const S of b){const{type:P,target:T}=S;if(P==="childList"&&T instanceof HTMLElement&&T.contains(e)){l();break}}}}),h=ln({callback:l});return(0,u.useIsomorphicLayoutEffect)(()=>{l(),e?(h==null||h.observe(e),c==null||c.observe(document.body,{childList:!0,subtree:!0})):(h==null||h.disconnect(),c==null||c.disconnect())},[e]),i;function v(b){if(!e)return null;if(e.isConnected===!1){var S;return(S=b??o)!=null?S:null}const P=n(e);return JSON.stringify(b)===JSON.stringify(P)?b:P}}function Gn(e){const n=Nn(e);return d(e,n)}const Pn=[];function kn(e){const n=(0,s.useRef)(e),o=(0,u.useLazyMemo)(i=>e?i&&i!==Pn&&e&&n.current&&e.parentNode===n.current.parentNode?i:B(e):Pn,[e]);return(0,s.useEffect)(()=>{n.current=e},[e]),o}function cr(e){const[n,o]=(0,s.useState)(null),i=(0,s.useRef)(e),l=(0,s.useCallback)(c=>{const h=ee(c.target);h&&o(v=>v?(v.set(h,re(h)),new Map(v)):null)},[]);return(0,s.useEffect)(()=>{const c=i.current;if(e!==c){h(c);const v=e.map(b=>{const S=ee(b);return S?(S.addEventListener("scroll",l,{passive:!0}),[S,re(S)]):null}).filter(b=>b!=null);o(v.length?new Map(v):null),i.current=e}return()=>{h(e),h(c)};function h(v){v.forEach(b=>{const S=ee(b);S==null||S.removeEventListener("scroll",l)})}},[l,e]),(0,s.useMemo)(()=>e.length?n?Array.from(n.values()).reduce((c,h)=>(0,u.add)(c,h),Re):Je(e):Re,[e,n])}function Dn(e,n){n===void 0&&(n=[]);const o=(0,s.useRef)(null);return(0,s.useEffect)(()=>{o.current=null},n),(0,s.useEffect)(()=>{const i=e!==Re;i&&!o.current&&(o.current=e),!i&&o.current&&(o.current=null)},[e]),o.current?(0,u.subtract)(e,o.current):Re}function lr(e){(0,s.useEffect)(()=>{if(!u.canUseDOM)return;const n=e.map(o=>{let{sensor:i}=o;return i.setup==null?void 0:i.setup()});return()=>{for(const o of n)o==null||o()}},e.map(n=>{let{sensor:o}=n;return o}))}function Bn(e,n){return(0,s.useMemo)(()=>e.reduce((o,i)=>{let{eventName:l,handler:c}=i;return o[l]=h=>{c(h,n)},o},{}),[e,n])}function zn(e){return(0,s.useMemo)(()=>e?m(e):null,[e])}const un=[];function Jn(e,n){n===void 0&&(n=w);const[o]=e,i=zn(o?(0,u.getWindow)(o):null),[l,c]=(0,s.useReducer)(v,un),h=ln({callback:c});return e.length>0&&l===un&&c(),(0,u.useIsomorphicLayoutEffect)(()=>{e.length?e.forEach(b=>h==null?void 0:h.observe(b)):(h==null||h.disconnect(),c())},[e]),l;function v(){return e.length?e.map(b=>he(b)?i:new ft(n(b),b)):un}}function xn(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return(0,u.isHTMLElement)(n)?n:e}function ur(e){let{measure:n}=e;const[o,i]=(0,s.useState)(null),l=(0,s.useCallback)(S=>{for(const{target:P}of S)if((0,u.isHTMLElement)(P)){i(T=>{const _=n(P);return T?{...T,width:_.width,height:_.height}:_});break}},[n]),c=ln({callback:l}),h=(0,s.useCallback)(S=>{const P=xn(S);c==null||c.disconnect(),P&&(c==null||c.observe(P)),i(P?n(P):null)},[n,c]),[v,b]=(0,u.useNodeRef)(h);return(0,s.useMemo)(()=>({nodeRef:v,rect:o,setRef:b}),[o,v,b])}const dr=[{sensor:vt,options:{}},{sensor:Gt,options:{}}],Rn={current:{}},Sn={draggable:{measure:M},droppable:{measure:M,strategy:mt.WhileDragging,frequency:Ln.Optimized},dragOverlay:{measure:w}};class dn extends Map{get(n){var o;return n!=null&&(o=super.get(n))!=null?o:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:o}=n;return!o})}getNodeFor(n){var o,i;return(o=(i=this.get(n))==null?void 0:i.node.current)!=null?o:void 0}}const qn={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new dn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Y},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Sn,measureDroppableContainers:Y,windowRect:null,measuringScheduled:!1},Zn={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Y,draggableNodes:new Map,over:null,measureDroppableContainers:Y},fn=(0,s.createContext)(Zn),Kn=(0,s.createContext)(qn);function fr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new dn}}}function hr(e,n){switch(n.type){case K.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case K.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case K.DragEnd:case K.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case K.RegisterDroppable:{const{element:o}=n,{id:i}=o,l=new dn(e.droppable.containers);return l.set(i,o),{...e,droppable:{...e.droppable,containers:l}}}case K.SetDroppableDisabled:{const{id:o,key:i,disabled:l}=n,c=e.droppable.containers.get(o);if(!c||i!==c.key)return e;const h=new dn(e.droppable.containers);return h.set(o,{...c,disabled:l}),{...e,droppable:{...e.droppable,containers:h}}}case K.UnregisterDroppable:{const{id:o,key:i}=n,l=e.droppable.containers.get(o);if(!l||i!==l.key)return e;const c=new dn(e.droppable.containers);return c.delete(o),{...e,droppable:{...e.droppable,containers:c}}}default:return e}}function gr(e){let{disabled:n}=e;const{active:o,activatorEvent:i,draggableNodes:l}=(0,s.useContext)(fn),c=(0,u.usePrevious)(i),h=(0,u.usePrevious)(o==null?void 0:o.id);return(0,s.useEffect)(()=>{if(!n&&!i&&c&&h!=null){if(!(0,u.isKeyboardEvent)(c)||document.activeElement===c.target)return;const v=l.get(h);if(!v)return;const{activatorNode:b,node:S}=v;if(!b.current&&!S.current)return;requestAnimationFrame(()=>{for(const P of[b.current,S.current]){if(!P)continue;const T=(0,u.findFirstFocusableNode)(P);if(T){T.focus();break}}})}},[i,n,l,h,c]),null}function Qn(e,n){let{transform:o,...i}=n;return e!=null&&e.length?e.reduce((l,c)=>c({transform:l,...i}),o):o}function vr(e){return(0,s.useMemo)(()=>({draggable:{...Sn.draggable,...e==null?void 0:e.draggable},droppable:{...Sn.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Sn.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function pr(e){let{activeNode:n,measure:o,initialRect:i,config:l=!0}=e;const c=(0,s.useRef)(!1),{x:h,y:v}=typeof l=="boolean"?{x:l,y:l}:l;(0,u.useIsomorphicLayoutEffect)(()=>{if(!h&&!v||!n){c.current=!1;return}if(c.current||!i)return;const S=n==null?void 0:n.node.current;if(!S||S.isConnected===!1)return;const P=o(S),T=d(P,i);if(h||(T.x=0),v||(T.y=0),c.current=!0,Math.abs(T.x)>0||Math.abs(T.y)>0){const _=U(S);_&&_.scrollBy({top:T.y,left:T.x})}},[n,h,v,i,o])}const Wn=(0,s.createContext)({...Re,scaleX:1,scaleY:1});var Ut;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ut||(Ut={}));const t=(0,s.memo)(function(n){var o,i,l,c;let{id:h,accessibility:v,autoScroll:b=!0,children:S,sensors:P=dr,collisionDetection:T=Ft,measuring:_,modifiers:z,...fe}=n;const j=(0,s.useReducer)(hr,void 0,fr),[te,ie]=j,[pe,ve]=$(),[we,Ce]=(0,s.useState)(Ut.Uninitialized),ce=we===Ut.Initialized,{draggable:{active:ue,nodes:se,translate:Ae},droppable:{containers:Ie}}=te,xe=ue?se.get(ue):null,He=(0,s.useRef)({initial:null,translated:null}),lt=(0,s.useMemo)(()=>{var Ge;return ue!=null?{id:ue,data:(Ge=xe==null?void 0:xe.data)!=null?Ge:Rn,rect:He}:null},[ue,xe]),$t=(0,s.useRef)(null),[_n,En]=(0,s.useState)(null),[je,hn]=(0,s.useState)(null),qt=(0,u.useLatestValue)(fe,Object.values(fe)),Mn=(0,u.useUniqueId)("DndDescribedBy",h),er=(0,s.useMemo)(()=>Ie.getEnabled(),[Ie]),ut=vr(_),{droppableRects:yt,measureDroppableContainers:Xt,measuringScheduled:Fn}=ct(er,{dragging:ce,dependencies:[Ae.x,Ae.y],config:ut.droppable}),Ke=cn(se,ue),Un=(0,s.useMemo)(()=>je?(0,u.getEventCoordinates)(je):null,[je]),tr=Mr(),$n=ir(Ke,ut.draggable.measure);pr({activeNode:ue?se.get(ue):null,config:tr.layoutShiftCompensation,initialRect:$n,measure:ut.draggable.measure});const wt=Cn(Ke,ut.draggable.measure,$n),On=Cn(Ke?Ke.parentElement:null),Zt=(0,s.useRef)({activatorEvent:null,active:null,activeNode:Ke,collisionRect:null,collisions:null,droppableRects:yt,draggableNodes:se,draggingNode:null,draggingNodeRect:null,droppableContainers:Ie,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),nr=Ie.getNodeFor((o=Zt.current.over)==null?void 0:o.id),Qt=ur({measure:ut.dragOverlay.measure}),Le=(i=Qt.nodeRef.current)!=null?i:Ke,Fe=ce?(l=Qt.rect)!=null?l:wt:null,et=!!(Qt.nodeRef.current&&Qt.rect),Ct=Gn(et?null:wt),tt=zn(Le?(0,u.getWindow)(Le):null),Ye=kn(ce?nr??Ke:null),Ve=Jn(Ye),Dt=Qn(z,{transform:{x:Ae.x-Ct.x,y:Ae.y-Ct.y,scaleX:1,scaleY:1},activatorEvent:je,active:lt,activeNodeRect:wt,containerNodeRect:On,draggingNodeRect:Fe,over:Zt.current.over,overlayNodeRect:Qt.rect,scrollableAncestors:Ye,scrollableAncestorRects:Ve,windowRect:tt}),rn=Un?(0,u.add)(Un,Ae):null,gn=cr(Ye),Tn=Dn(gn),rr=Dn(gn,[wt]),xt=(0,u.add)(Dt,Tn),kt=Fe?D(Fe,Dt):null,on=lt&&kt?T({active:lt,collisionRect:kt,droppableRects:yt,droppableContainers:er,pointerCoordinates:rn}):null,Xn=Wt(on,"id"),[sn,mr]=(0,s.useState)(null),Dr=et?Dt:(0,u.add)(Dt,rr),xr=Ht(Dr,(c=sn==null?void 0:sn.rect)!=null?c:null,wt),yr=(0,s.useCallback)((Ge,Rt)=>{let{sensor:St,options:an}=Rt;if($t.current==null)return;const It=se.get($t.current);if(!It)return;const Bt=Ge.nativeEvent,jt=new St({active:$t.current,activeNode:It,event:Bt,options:an,context:Zt,onStart(zt){const jn=$t.current;if(jn==null)return;const Yn=se.get(jn);if(!Yn)return;const{onDragStart:or}=qt.current,sr={active:{id:jn,data:Yn.data,rect:He}};(0,V.unstable_batchedUpdates)(()=>{or==null||or(sr),Ce(Ut.Initializing),ie({type:K.DragStart,initialCoordinates:zt,active:jn}),pe({type:"onDragStart",event:sr})})},onMove(zt){ie({type:K.DragMove,coordinates:zt})},onEnd:An(K.DragEnd),onCancel:An(K.DragCancel)});(0,V.unstable_batchedUpdates)(()=>{En(jt),hn(Ge.nativeEvent)});function An(zt){return async function(){const{active:Yn,collisions:or,over:sr,scrollAdjustedTranslate:Cr}=Zt.current;let Hn=null;if(Yn&&Cr){const{cancelDrop:Vn}=qt.current;Hn={activatorEvent:Bt,active:Yn,collisions:or,delta:Cr,over:sr},zt===K.DragEnd&&typeof Vn=="function"&&await Promise.resolve(Vn(Hn))&&(zt=K.DragCancel)}$t.current=null,(0,V.unstable_batchedUpdates)(()=>{ie({type:zt}),Ce(Ut.Uninitialized),mr(null),En(null),hn(null);const Vn=zt===K.DragEnd?"onDragEnd":"onDragCancel";if(Hn){const br=qt.current[Vn];br==null||br(Hn),pe({type:Vn,event:Hn})}})}}},[se]),Rr=(0,s.useCallback)((Ge,Rt)=>(St,an)=>{const It=St.nativeEvent,Bt=se.get(an);if($t.current!==null||!Bt||It.dndKit||It.defaultPrevented)return;const jt={active:Bt};Ge(St,Rt.options,jt)===!0&&(It.dndKit={capturedBy:Rt.sensor},$t.current=an,yr(St,Rt))},[se,yr]),wr=In(P,Rr);lr(P),(0,u.useIsomorphicLayoutEffect)(()=>{wt&&we===Ut.Initializing&&Ce(Ut.Initialized)},[wt,we]),(0,s.useEffect)(()=>{const{onDragMove:Ge}=qt.current,{active:Rt,activatorEvent:St,collisions:an,over:It}=Zt.current;if(!Rt||!St)return;const Bt={active:Rt,activatorEvent:St,collisions:an,delta:{x:xt.x,y:xt.y},over:It};(0,V.unstable_batchedUpdates)(()=>{Ge==null||Ge(Bt),pe({type:"onDragMove",event:Bt})})},[xt.x,xt.y]),(0,s.useEffect)(()=>{const{active:Ge,activatorEvent:Rt,collisions:St,droppableContainers:an,scrollAdjustedTranslate:It}=Zt.current;if(!Ge||$t.current==null||!Rt||!It)return;const{onDragOver:Bt}=qt.current,jt=an.get(Xn),An=jt&&jt.rect.current?{id:jt.id,rect:jt.rect.current,data:jt.data,disabled:jt.disabled}:null,zt={active:Ge,activatorEvent:Rt,collisions:St,delta:{x:It.x,y:It.y},over:An};(0,V.unstable_batchedUpdates)(()=>{mr(An),Bt==null||Bt(zt),pe({type:"onDragOver",event:zt})})},[Xn]),(0,u.useIsomorphicLayoutEffect)(()=>{Zt.current={activatorEvent:je,active:lt,activeNode:Ke,collisionRect:kt,collisions:on,droppableRects:yt,draggableNodes:se,draggingNode:Le,draggingNodeRect:Fe,droppableContainers:Ie,over:sn,scrollableAncestors:Ye,scrollAdjustedTranslate:xt},He.current={initial:Fe,translated:kt}},[lt,Ke,on,kt,se,Le,Fe,yt,Ie,sn,Ye,xt]),ze({...tr,delta:Ae,draggingRect:kt,pointerCoordinates:rn,scrollableAncestors:Ye,scrollableAncestorRects:Ve});const Sr=(0,s.useMemo)(()=>({active:lt,activeNode:Ke,activeNodeRect:wt,activatorEvent:je,collisions:on,containerNodeRect:On,dragOverlay:Qt,draggableNodes:se,droppableContainers:Ie,droppableRects:yt,over:sn,measureDroppableContainers:Xt,scrollableAncestors:Ye,scrollableAncestorRects:Ve,measuringConfiguration:ut,measuringScheduled:Fn,windowRect:tt}),[lt,Ke,wt,je,on,On,Qt,se,Ie,yt,sn,Xt,Ye,Ve,ut,Fn,tt]),Er=(0,s.useMemo)(()=>({activatorEvent:je,activators:wr,active:lt,activeNodeRect:wt,ariaDescribedById:{draggable:Mn},dispatch:ie,draggableNodes:se,over:sn,measureDroppableContainers:Xt}),[je,wr,lt,wt,ie,Mn,se,sn,Xt]);return s.createElement(qe.Provider,{value:ve},s.createElement(fn.Provider,{value:Er},s.createElement(Kn.Provider,{value:Sr},s.createElement(Wn.Provider,{value:xr},S)),s.createElement(gr,{disabled:(v==null?void 0:v.restoreFocus)===!1})),s.createElement(ne,{...v,hiddenTextDescribedById:Mn}));function Mr(){const Ge=(_n==null?void 0:_n.autoScrollEnabled)===!1,Rt=typeof b=="object"?b.enabled===!1:b===!1,St=ce&&!Ge&&!Rt;return typeof b=="object"?{...b,enabled:St}:{enabled:St}}}),r=(0,s.createContext)(null),a="button",f="Droppable";function p(e){let{id:n,data:o,disabled:i=!1,attributes:l}=e;const c=(0,u.useUniqueId)(f),{activators:h,activatorEvent:v,active:b,activeNodeRect:S,ariaDescribedById:P,draggableNodes:T,over:_}=(0,s.useContext)(fn),{role:z=a,roleDescription:fe="draggable",tabIndex:j=0}=l??{},te=(b==null?void 0:b.id)===n,ie=(0,s.useContext)(te?Wn:r),[pe,ve]=(0,u.useNodeRef)(),[we,Ce]=(0,u.useNodeRef)(),ce=Bn(h,n),ue=(0,u.useLatestValue)(o);(0,u.useIsomorphicLayoutEffect)(()=>(T.set(n,{id:n,key:c,node:pe,activatorNode:we,data:ue}),()=>{const Ae=T.get(n);Ae&&Ae.key===c&&T.delete(n)}),[T,n]);const se=(0,s.useMemo)(()=>({role:z,tabIndex:j,"aria-disabled":i,"aria-pressed":te&&z===a?!0:void 0,"aria-roledescription":fe,"aria-describedby":P.draggable}),[i,z,j,te,fe,P.draggable]);return{active:b,activatorEvent:v,activeNodeRect:S,attributes:se,isDragging:te,listeners:i?void 0:ce,node:pe,over:_,setNodeRef:ve,setActivatorNodeRef:Ce,transform:ie}}function y(){return(0,s.useContext)(Kn)}const E="Droppable",O={timeout:25};function A(e){let{data:n,disabled:o=!1,id:i,resizeObserverConfig:l}=e;const c=(0,u.useUniqueId)(E),{active:h,dispatch:v,over:b,measureDroppableContainers:S}=(0,s.useContext)(fn),P=(0,s.useRef)({disabled:o}),T=(0,s.useRef)(!1),_=(0,s.useRef)(null),z=(0,s.useRef)(null),{disabled:fe,updateMeasurementsFor:j,timeout:te}={...O,...l},ie=(0,u.useLatestValue)(j??i),pe=(0,s.useCallback)(()=>{if(!T.current){T.current=!0;return}z.current!=null&&clearTimeout(z.current),z.current=setTimeout(()=>{S(Array.isArray(ie.current)?ie.current:[ie.current]),z.current=null},te)},[te]),ve=ln({callback:pe,disabled:fe||!h}),we=(0,s.useCallback)((se,Ae)=>{ve&&(Ae&&(ve.unobserve(Ae),T.current=!1),se&&ve.observe(se))},[ve]),[Ce,ce]=(0,u.useNodeRef)(we),ue=(0,u.useLatestValue)(n);return(0,s.useEffect)(()=>{!ve||!Ce.current||(ve.disconnect(),T.current=!1,ve.observe(Ce.current))},[Ce,ve]),(0,u.useIsomorphicLayoutEffect)(()=>(v({type:K.RegisterDroppable,element:{id:i,key:c,disabled:o,node:Ce,rect:_,data:ue}}),()=>v({type:K.UnregisterDroppable,key:c,id:i})),[i]),(0,s.useEffect)(()=>{o!==P.current.disabled&&(v({type:K.SetDroppableDisabled,id:i,key:c,disabled:o}),P.current.disabled=o)},[i,c,o,v]),{active:h,rect:_,isOver:(b==null?void 0:b.id)===i,node:Ce,over:b,setNodeRef:ce}}function N(e){let{animation:n,children:o}=e;const[i,l]=useState(null),[c,h]=useState(null),v=usePrevious(o);return!o&&!i&&v&&l(v),useIsomorphicLayoutEffect(()=>{if(!c)return;const b=i==null?void 0:i.key,S=i==null?void 0:i.props.id;if(b==null||S==null){l(null);return}Promise.resolve(n(S,c)).then(()=>{l(null)})},[n,i,c]),React.createElement(React.Fragment,null,o,i?cloneElement(i,{ref:h}):null)}const k={x:0,y:0,scaleX:1,scaleY:1};function F(e){let{children:n}=e;return React.createElement(fn.Provider,{value:Zn},React.createElement(Wn.Provider,{value:k},n))}const oe={position:"fixed",touchAction:"none"},G=e=>isKeyboardEvent(e)?"transform 250ms ease":void 0,Q=null,X={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:n,final:o}}=e;return[{transform:u.CSS.Transform.toString(n)},{transform:u.CSS.Transform.toString(o)}]},sideEffects:(e=>n=>{let{active:o,dragOverlay:i}=n;const l={},{styles:c,className:h}=e;if(c!=null&&c.active)for(const[v,b]of Object.entries(c.active))b!==void 0&&(l[v]=o.node.style.getPropertyValue(v),o.node.style.setProperty(v,b));if(c!=null&&c.dragOverlay)for(const[v,b]of Object.entries(c.dragOverlay))b!==void 0&&i.node.style.setProperty(v,b);return h!=null&&h.active&&o.node.classList.add(h.active),h!=null&&h.dragOverlay&&i.node.classList.add(h.dragOverlay),function(){for(const[b,S]of Object.entries(l))o.node.style.setProperty(b,S);h!=null&&h.active&&o.node.classList.remove(h.active)}})({styles:{active:{opacity:"0"}}})};function _e(e){let{config:n,draggableNodes:o,droppableContainers:i,measuringConfiguration:l}=e;return useEvent((c,h)=>{if(n===null)return;const v=o.get(c);if(!v)return;const b=v.node.current;if(!b)return;const S=xn(h);if(!S)return;const{transform:P}=getWindow(h).getComputedStyle(h),T=R(P);if(!T)return;const _=typeof n=="function"?n:le(n);return dt(b,l.draggable.measure),_({active:{id:c,data:v.data,node:b,rect:l.draggable.measure(b)},draggableNodes:o,dragOverlay:{node:h,rect:l.dragOverlay.measure(S)},droppableContainers:i,measuringConfiguration:l,transform:T})})}function le(e){const{duration:n,easing:o,sideEffects:i,keyframes:l}={...X,...e};return c=>{let{active:h,dragOverlay:v,transform:b,...S}=c;if(!n)return;const P={x:v.rect.left-h.rect.left,y:v.rect.top-h.rect.top},T={scaleX:b.scaleX!==1?h.rect.width*b.scaleX/v.rect.width:1,scaleY:b.scaleY!==1?h.rect.height*b.scaleY/v.rect.height:1},_={x:b.x-P.x,y:b.y-P.y,...T},z=l({...S,active:h,dragOverlay:v,transform:{initial:b,final:_}}),[fe]=z,j=z[z.length-1];if(JSON.stringify(fe)===JSON.stringify(j))return;const te=i==null?void 0:i({active:h,dragOverlay:v,...S}),ie=v.node.animate(z,{duration:n,easing:o,fill:"forwards"});return new Promise(pe=>{ie.onfinish=()=>{te==null||te(),pe()}})}}let me=0;function Te(e){return useMemo(()=>{if(e!=null)return me++,me},[e])}const ye=null},45587:function(vn,Ue,ae){ae.d(Ue,{Fo:function(){return Qe},nB:function(){return Yt},qw:function(){return Ze}});var s=ae(67294),V=ae(94697),u=ae(24285);function De(g,w,M){const m=g.slice();return m.splice(M<0?m.length+M:M,0,m.splice(w,1)[0]),m}function qe(g,w,M){const m=g.slice();return m[w]=g[M],m[M]=g[w],m}function Se(g,w){return g.reduce((M,m,x)=>{const L=w.get(m);return L&&(M[x]=L),M},Array(g.length))}function $(g){return g!==null&&g>=0}function Ee(g,w){if(g===w)return!0;if(g.length!==w.length)return!1;for(let M=0;M<g.length;M++)if(g[M]!==w[M])return!1;return!0}function Ne(g){return typeof g=="boolean"?{draggable:g,droppable:g}:g}const ne={scaleX:1,scaleY:1},K=g=>{var w;let{rects:M,activeNodeRect:m,activeIndex:x,overIndex:L,index:B}=g;const U=(w=M[x])!=null?w:m;if(!U)return null;const ee=Y(M,B,x);if(B===x){const H=M[L];return H?{x:x<L?H.left+H.width-(U.left+U.width):H.left-U.left,y:0,...ne}:null}return B>x&&B<=L?{x:-U.width-ee,y:0,...ne}:B<x&&B>=L?{x:U.width+ee,y:0,...ne}:{x:0,y:0,...ne}};function Y(g,w,M){const m=g[w],x=g[w-1],L=g[w+1];return!m||!x&&!L?0:M<w?x?m.left-(x.left+x.width):L.left-(m.left+m.width):L?L.left-(m.left+m.width):m.left-(x.left+x.width)}const de=g=>{let{rects:w,activeIndex:M,overIndex:m,index:x}=g;const L=De(w,m,M),B=w[x],U=L[x];return!U||!B?null:{x:U.left-B.left,y:U.top-B.top,scaleX:U.width/B.width,scaleY:U.height/B.height}},nt=g=>{let{activeIndex:w,index:M,rects:m,overIndex:x}=g,L,B;return M===w&&(L=m[M],B=m[x]),M===x&&(L=m[M],B=m[w]),!B||!L?null:{x:B.left-L.left,y:B.top-L.top,scaleX:B.width/L.width,scaleY:B.height/L.height}},Re={scaleX:1,scaleY:1},Ze=g=>{var w;let{activeIndex:M,activeNodeRect:m,index:x,rects:L,overIndex:B}=g;const U=(w=L[M])!=null?w:m;if(!U)return null;if(x===M){const H=L[B];return H?{x:0,y:M<B?H.top+H.height-(U.top+U.height):H.top-U.top,...Re}:null}const ee=Kt(L,x,M);return x>M&&x<=B?{x:0,y:-U.height-ee,...Re}:x<M&&x>=B?{x:0,y:U.height+ee,...Re}:{x:0,y:0,...Re}};function Kt(g,w,M){const m=g[w],x=g[w-1],L=g[w+1];return m?M<w?x?m.top-(x.top+x.height):L?L.top-(m.top+m.height):0:L?L.top-(m.top+m.height):x?m.top-(x.top+x.height):0:0}const rt="Sortable",ke=s.createContext({activeIndex:-1,containerId:rt,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:de,disabled:{draggable:!1,droppable:!1}});function Qe(g){let{children:w,id:M,items:m,strategy:x=de,disabled:L=!1}=g;const{active:B,dragOverlay:U,droppableRects:ee,over:H,measureDroppableContainers:q}=(0,V.Cj)(),re=(0,u.useUniqueId)(rt,M),W=U.rect!==null,he=(0,s.useMemo)(()=>m.map(ot=>typeof ot=="object"&&"id"in ot?ot.id:ot),[m]),Pe=B!=null,$e=B?he.indexOf(B.id):-1,Xe=H?he.indexOf(H.id):-1,Mt=(0,s.useRef)(he),Je=!Ee(he,Mt.current),We=Xe!==-1&&$e===-1||Je,Me=Ne(L);(0,u.useIsomorphicLayoutEffect)(()=>{Je&&Pe&&q(he)},[Je,he,Pe,q]),(0,s.useEffect)(()=>{Mt.current=he},[he]);const dt=(0,s.useMemo)(()=>({activeIndex:$e,containerId:re,disabled:Me,disableTransforms:We,items:he,overIndex:Xe,useDragOverlay:W,sortedRects:Se(he,ee),strategy:x}),[$e,re,Me.draggable,Me.droppable,We,he,Xe,ee,W,x]);return s.createElement(ke.Provider,{value:dt},w)}const Wt=g=>{let{id:w,items:M,activeIndex:m,overIndex:x}=g;return De(M,m,x).indexOf(w)},Et=g=>{let{containerId:w,isSorting:M,wasDragging:m,index:x,items:L,newIndex:B,previousItems:U,previousContainerId:ee,transition:H}=g;return!H||!m||U!==L&&x===B?!1:M?!0:B!==x&&w===ee},_t={duration:200,easing:"ease"},Lt="transform",Nt=u.CSS.Transition.toString({property:Lt,duration:0,easing:"linear"}),Ft={roleDescription:"sortable"};function Pt(g){let{disabled:w,index:M,node:m,rect:x}=g;const[L,B]=(0,s.useState)(null),U=(0,s.useRef)(M);return(0,u.useIsomorphicLayoutEffect)(()=>{if(!w&&M!==U.current&&m.current){const ee=x.current;if(ee){const H=(0,V.VK)(m.current,{ignoreTransform:!0}),q={x:ee.left-H.left,y:ee.top-H.top,scaleX:ee.width/H.width,scaleY:ee.height/H.height};(q.x||q.y)&&B(q)}}M!==U.current&&(U.current=M)},[w,M,m,x]),(0,s.useEffect)(()=>{L&&B(null)},[L]),L}function Yt(g){let{animateLayoutChanges:w=Et,attributes:M,disabled:m,data:x,getNewIndex:L=Wt,id:B,strategy:U,resizeObserverConfig:ee,transition:H=_t}=g;const{items:q,containerId:re,activeIndex:W,disabled:he,disableTransforms:Pe,sortedRects:$e,overIndex:Xe,useDragOverlay:Mt,strategy:Je}=(0,s.useContext)(ke),We=Ht(m,he),Me=q.indexOf(B),dt=(0,s.useMemo)(()=>({sortable:{containerId:re,index:Me,items:q},...x}),[re,x,Me,q]),ot=(0,s.useMemo)(()=>q.slice(q.indexOf(B)),[q,B]),{rect:ft,node:st,isOver:it,setNodeRef:at}=(0,V.Zj)({id:B,data:dt,disabled:We.droppable,resizeObserverConfig:{updateMeasurementsFor:ot,...ee}}),{active:Oe,activatorEvent:en,activeNodeRect:Ot,attributes:Z,setNodeRef:ht,listeners:Vt,isDragging:Gt,over:tn,setActivatorNodeRef:gt,transform:Tt}=(0,V.O1)({id:B,data:dt,attributes:{...Ft,...M},disabled:We.draggable}),Be=(0,u.useCombinedRefs)(at,ht),vt=!!Oe,Jt=vt&&!Pe&&$(W)&&$(Xe),At=!Mt&&Gt,nn=At&&Jt?Tt:null,bn=Jt?nn??(U??Je)({rects:$e,activeNodeRect:Ot,activeIndex:W,overIndex:Xe,index:Me}):null,pt=$(W)&&$(Xe)?L({id:B,items:q,activeIndex:W,overIndex:Xe}):Me,bt=Oe==null?void 0:Oe.id,ze=(0,s.useRef)({activeId:bt,items:q,newIndex:pt,containerId:re}),mn=q!==ze.current.items,yn=w({active:Oe,containerId:re,isDragging:Gt,isSorting:vt,id:B,index:Me,items:q,newIndex:ze.current.newIndex,previousItems:ze.current.items,previousContainerId:ze.current.containerId,transition:H,wasDragging:ze.current.activeId!=null}),cn=Pt({disabled:!yn,index:Me,node:st,rect:ft});return(0,s.useEffect)(()=>{vt&&ze.current.newIndex!==pt&&(ze.current.newIndex=pt),re!==ze.current.containerId&&(ze.current.containerId=re),q!==ze.current.items&&(ze.current.items=q)},[vt,pt,re,q]),(0,s.useEffect)(()=>{if(bt===ze.current.activeId)return;if(bt&&!ze.current.activeId){ze.current.activeId=bt;return}const mt=setTimeout(()=>{ze.current.activeId=bt},50);return()=>clearTimeout(mt)},[bt]),{active:Oe,activeIndex:W,attributes:Z,data:dt,rect:ft,index:Me,newIndex:pt,items:q,isOver:it,isSorting:vt,isDragging:Gt,listeners:Vt,node:st,overIndex:Xe,over:tn,setNodeRef:Be,setActivatorNodeRef:gt,setDroppableNodeRef:at,setDraggableNodeRef:ht,transform:cn??bn,transition:In()};function In(){if(cn||mn&&ze.current.newIndex===Me)return Nt;if(!(At&&!(0,u.isKeyboardEvent)(en)||!H)&&(vt||yn))return u.CSS.Transition.toString({...H,property:Lt})}}function Ht(g,w){var M,m;return typeof g=="boolean"?{draggable:g,droppable:!1}:{draggable:(M=g==null?void 0:g.draggable)!=null?M:w.draggable,droppable:(m=g==null?void 0:g.droppable)!=null?m:w.droppable}}function d(g){if(!g)return!1;const w=g.data.current;return!!(w&&"sortable"in w&&typeof w.sortable=="object"&&"containerId"in w.sortable&&"items"in w.sortable&&"index"in w.sortable)}const C=[V.g4.Down,V.g4.Right,V.g4.Up,V.g4.Left],D=(g,w)=>{let{context:{active:M,collisionRect:m,droppableRects:x,droppableContainers:L,over:B,scrollableAncestors:U}}=w;if(C.includes(g.code)){if(g.preventDefault(),!M||!m)return;const ee=[];L.getEnabled().forEach(re=>{if(!re||re!=null&&re.disabled)return;const W=x.get(re.id);if(W)switch(g.code){case KeyboardCode.Down:m.top<W.top&&ee.push(re);break;case KeyboardCode.Up:m.top>W.top&&ee.push(re);break;case KeyboardCode.Left:m.left>W.left&&ee.push(re);break;case KeyboardCode.Right:m.left<W.left&&ee.push(re);break}});const H=closestCorners({active:M,collisionRect:m,droppableRects:x,droppableContainers:ee,pointerCoordinates:null});let q=getFirstCollision(H,"id");if(q===(B==null?void 0:B.id)&&H.length>1&&(q=H[1].id),q!=null){const re=L.get(M.id),W=L.get(q),he=W?x.get(W.id):null,Pe=W==null?void 0:W.node.current;if(Pe&&he&&re&&W){const Xe=getScrollableAncestors(Pe).some((ot,ft)=>U[ft]!==ot),Mt=R(re,W),Je=I(re,W),We=Xe||!Mt?{x:0,y:0}:{x:Je?m.width-he.width:0,y:Je?m.height-he.height:0},Me={x:he.left,y:he.top};return We.x&&We.y?Me:subtract(Me,We)}}}};function R(g,w){return!d(g)||!d(w)?!1:g.data.current.sortable.containerId===w.data.current.sortable.containerId}function I(g,w){return!d(g)||!d(w)||!R(g,w)?!1:g.data.current.sortable.index<w.data.current.sortable.index}},24285:function(vn,Ue,ae){ae.r(Ue),ae.d(Ue,{CSS:function(){return Pt},add:function(){return Wt},canUseDOM:function(){return u},findFirstFocusableNode:function(){return Ht},getEventCoordinates:function(){return Ft},getOwnerDocument:function(){return ne},getWindow:function(){return Se},hasViewportRelativeCoordinates:function(){return _t},isDocument:function(){return $},isHTMLElement:function(){return Ee},isKeyboardEvent:function(){return Lt},isNode:function(){return qe},isSVGElement:function(){return Ne},isTouchEvent:function(){return Nt},isWindow:function(){return De},subtract:function(){return Et},useCombinedRefs:function(){return V},useEvent:function(){return Y},useInterval:function(){return de},useIsomorphicLayoutEffect:function(){return K},useLatestValue:function(){return nt},useLazyMemo:function(){return Re},useNodeRef:function(){return Ze},usePrevious:function(){return Kt},useUniqueId:function(){return ke}});var s=ae(67294);function V(){for(var d=arguments.length,C=new Array(d),D=0;D<d;D++)C[D]=arguments[D];return(0,s.useMemo)(()=>R=>{C.forEach(I=>I(R))},C)}const u=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function De(d){const C=Object.prototype.toString.call(d);return C==="[object Window]"||C==="[object global]"}function qe(d){return"nodeType"in d}function Se(d){var C,D;return d?De(d)?d:qe(d)&&(C=(D=d.ownerDocument)==null?void 0:D.defaultView)!=null?C:window:window}function $(d){const{Document:C}=Se(d);return d instanceof C}function Ee(d){return De(d)?!1:d instanceof Se(d).HTMLElement}function Ne(d){return d instanceof Se(d).SVGElement}function ne(d){return d?De(d)?d.document:qe(d)?$(d)?d:Ee(d)||Ne(d)?d.ownerDocument:document:document:document}const K=u?s.useLayoutEffect:s.useEffect;function Y(d){const C=(0,s.useRef)(d);return K(()=>{C.current=d}),(0,s.useCallback)(function(){for(var D=arguments.length,R=new Array(D),I=0;I<D;I++)R[I]=arguments[I];return C.current==null?void 0:C.current(...R)},[])}function de(){const d=(0,s.useRef)(null),C=(0,s.useCallback)((R,I)=>{d.current=setInterval(R,I)},[]),D=(0,s.useCallback)(()=>{d.current!==null&&(clearInterval(d.current),d.current=null)},[]);return[C,D]}function nt(d,C){C===void 0&&(C=[d]);const D=(0,s.useRef)(d);return K(()=>{D.current!==d&&(D.current=d)},C),D}function Re(d,C){const D=(0,s.useRef)();return(0,s.useMemo)(()=>{const R=d(D.current);return D.current=R,R},[...C])}function Ze(d){const C=Y(d),D=(0,s.useRef)(null),R=(0,s.useCallback)(I=>{I!==D.current&&(C==null||C(I,D.current)),D.current=I},[]);return[D,R]}function Kt(d){const C=(0,s.useRef)();return(0,s.useEffect)(()=>{C.current=d},[d]),C.current}let rt={};function ke(d,C){return(0,s.useMemo)(()=>{if(C)return C;const D=rt[d]==null?0:rt[d]+1;return rt[d]=D,d+"-"+D},[d,C])}function Qe(d){return function(C){for(var D=arguments.length,R=new Array(D>1?D-1:0),I=1;I<D;I++)R[I-1]=arguments[I];return R.reduce((g,w)=>{const M=Object.entries(w);for(const[m,x]of M){const L=g[m];L!=null&&(g[m]=L+d*x)}return g},{...C})}}const Wt=Qe(1),Et=Qe(-1);function _t(d){return"clientX"in d&&"clientY"in d}function Lt(d){if(!d)return!1;const{KeyboardEvent:C}=Se(d.target);return C&&d instanceof C}function Nt(d){if(!d)return!1;const{TouchEvent:C}=Se(d.target);return C&&d instanceof C}function Ft(d){if(Nt(d)){if(d.touches&&d.touches.length){const{clientX:C,clientY:D}=d.touches[0];return{x:C,y:D}}else if(d.changedTouches&&d.changedTouches.length){const{clientX:C,clientY:D}=d.changedTouches[0];return{x:C,y:D}}}return _t(d)?{x:d.clientX,y:d.clientY}:null}const Pt=Object.freeze({Translate:{toString(d){if(!d)return;const{x:C,y:D}=d;return"translate3d("+(C?Math.round(C):0)+"px, "+(D?Math.round(D):0)+"px, 0)"}},Scale:{toString(d){if(!d)return;const{scaleX:C,scaleY:D}=d;return"scaleX("+C+") scaleY("+D+")"}},Transform:{toString(d){if(d)return[Pt.Translate.toString(d),Pt.Scale.toString(d)].join(" ")}},Transition:{toString(d){let{property:C,duration:D,easing:R}=d;return C+" "+D+"ms "+R}}}),Yt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Ht(d){return d.matches(Yt)?d:d.querySelector(Yt)}},23861:function(vn,Ue,ae){ae.r(Ue),ae.d(Ue,{AutoScrollActivator:function(){return it},DndContext:function(){return Sn},DragOverlay:function(){return Ut},KeyboardCode:function(){return be},KeyboardSensor:function(){return Cn},MeasuringFrequency:function(){return ht},MeasuringStrategy:function(){return Z},MouseSensor:function(){return zn},PointerSensor:function(){return Dn},TouchSensor:function(){return Jn},TraversalOrder:function(){return at},applyModifiers:function(){return xn},closestCenter:function(){return Pt},closestCorners:function(){return Yt},defaultAnnouncements:function(){return Se},defaultCoordinates:function(){return ke},defaultDropAnimation:function(){return Qn},getClientRect:function(){return x},getFirstCollision:function(){return Nt},getScrollableAncestors:function(){return H},pointerWithin:function(){return D},rectIntersection:function(){return d},useDndContext:function(){return Kn},useDndMonitor:function(){return Kt},useDraggable:function(){return fn},useDroppable:function(){return gr},useSensor:function(){return cn},useSensors:function(){return In}});var s=ae(67294),V=ae(73935),u=ae(24285),De=ae(42617);const qe={draggable:`
|
|
6
|
-
To pick up a draggable item, press the space bar.
|
|
7
|
-
While dragging, use the arrow keys to move the item.
|
|
8
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
9
|
-
`},Se={onDragStart(t){return`Picked up draggable item ${t}.`},onDragOver(t,r){return r?`Draggable item ${t} was moved over droppable area ${r}.`:`Draggable item ${t} is no longer over a droppable area.`},onDragEnd(t,r){return r?`Draggable item ${t} was dropped over droppable area ${r}`:`Draggable item ${t} was dropped.`},onDragCancel(t){return`Dragging was cancelled. Draggable item ${t} was dropped.`}};var $;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})($||($={}));function Ee(...t){}class Ne extends Map{get(r){var a;return r!=null&&(a=super.get(r))!=null?a:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(({disabled:r})=>!r)}getNodeFor(r){var a,f;return(a=(f=this.get(r))==null?void 0:f.node.current)!=null?a:void 0}}const ne={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:{},droppableRects:new Map,droppableContainers:new Ne,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ee},scrollableAncestors:[],scrollableAncestorRects:[],measureDroppableContainers:Ee,windowRect:null,measuringScheduled:!1},K={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ee,draggableNodes:{},over:null,measureDroppableContainers:Ee},Y=(0,s.createContext)(K),de=(0,s.createContext)(ne);function nt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:{},translate:{x:0,y:0}},droppable:{containers:new Ne}}}function Re(t,r){switch(r.type){case $.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:r.initialCoordinates,active:r.active}};case $.DragMove:return t.draggable.active?{...t,draggable:{...t.draggable,translate:{x:r.coordinates.x-t.draggable.initialCoordinates.x,y:r.coordinates.y-t.draggable.initialCoordinates.y}}}:t;case $.DragEnd:case $.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case $.RegisterDroppable:{const{element:a}=r,{id:f}=a,p=new Ne(t.droppable.containers);return p.set(f,a),{...t,droppable:{...t.droppable,containers:p}}}case $.SetDroppableDisabled:{const{id:a,key:f,disabled:p}=r,y=t.droppable.containers.get(a);if(!y||f!==y.key)return t;const E=new Ne(t.droppable.containers);return E.set(a,{...y,disabled:p}),{...t,droppable:{...t.droppable,containers:E}}}case $.UnregisterDroppable:{const{id:a,key:f}=r,p=t.droppable.containers.get(a);if(!p||f!==p.key)return t;const y=new Ne(t.droppable.containers);return y.delete(a),{...t,droppable:{...t.droppable,containers:y}}}default:return t}}const Ze=(0,s.createContext)({type:null,event:null});function Kt({onDragStart:t,onDragMove:r,onDragOver:a,onDragEnd:f,onDragCancel:p}){const y=(0,s.useContext)(Ze),E=(0,s.useRef)(y);(0,s.useEffect)(()=>{if(y!==E.current){const{type:O,event:A}=y;switch(O){case $.DragStart:t==null||t(A);break;case $.DragMove:r==null||r(A);break;case $.DragOver:a==null||a(A);break;case $.DragCancel:p==null||p(A);break;case $.DragEnd:f==null||f(A);break}E.current=y}},[y,t,r,a,f,p])}function rt({announcements:t=Se,hiddenTextDescribedById:r,screenReaderInstructions:a}){const{announce:f,announcement:p}=(0,De.useAnnouncement)(),y=(0,u.useUniqueId)("DndLiveRegion"),[E,O]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{O(!0)},[]),Kt((0,s.useMemo)(()=>({onDragStart({active:A}){f(t.onDragStart(A.id))},onDragMove({active:A,over:N}){t.onDragMove&&f(t.onDragMove(A.id,N==null?void 0:N.id))},onDragOver({active:A,over:N}){f(t.onDragOver(A.id,N==null?void 0:N.id))},onDragEnd({active:A,over:N}){f(t.onDragEnd(A.id,N==null?void 0:N.id))},onDragCancel({active:A}){f(t.onDragCancel(A.id))}}),[f,t])),E?(0,V.createPortal)(s.createElement(s.Fragment,null,s.createElement(De.HiddenText,{id:r,value:a.draggable}),s.createElement(De.LiveRegion,{id:y,announcement:p})),document.body):null}const ke=Object.freeze({x:0,y:0});function Qe(t,r){return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function Wt(t,r){const a=(0,u.getEventCoordinates)(t);if(!a)return"0 0";const f={x:(a.x-r.left)/r.width*100,y:(a.y-r.top)/r.height*100};return`${f.x}% ${f.y}%`}function Et({data:{value:t}},{data:{value:r}}){return t-r}function _t({data:{value:t}},{data:{value:r}}){return r-t}function Lt({left:t,top:r,height:a,width:f}){return[{x:t,y:r},{x:t+f,y:r},{x:t,y:r+a},{x:t+f,y:r+a}]}function Nt(t,r){if(!t||t.length===0)return null;const[a]=t;return r?a[r]:a}function Ft(t,r=t.left,a=t.top){return{x:r+t.width*.5,y:a+t.height*.5}}const Pt=({collisionRect:t,droppableContainers:r})=>{const a=Ft(t,t.left,t.top),f=[];for(const p of r){const{id:y,rect:{current:E}}=p;if(E){const O=Qe(Ft(E),a);f.push({id:y,data:{droppableContainer:p,value:O}})}}return f.sort(Et)},Yt=({collisionRect:t,droppableContainers:r})=>{const a=Lt(t),f=[];for(const p of r){const{id:y,rect:{current:E}}=p;if(E){const O=Lt(E),A=a.reduce((k,F,oe)=>k+Qe(O[oe],F),0),N=Number((A/4).toFixed(4));f.push({id:y,data:{droppableContainer:p,value:N}})}}return f.sort(Et)};function Ht(t,r){const a=Math.max(r.top,t.top),f=Math.max(r.left,t.left),p=Math.min(r.left+r.width,t.left+t.width),y=Math.min(r.top+r.height,t.top+t.height),E=p-f,O=y-a;if(f<p&&a<y){const A=r.width*r.height,N=t.width*t.height,k=E*O,F=k/(A+N-k);return Number(F.toFixed(4))}return 0}const d=({collisionRect:t,droppableContainers:r})=>{const a=[];for(const f of r){const{id:p,rect:{current:y}}=f;if(y){const E=Ht(y,t);E>0&&a.push({id:p,data:{droppableContainer:f,value:E}})}}return a.sort(_t)};function C(t,r){const{top:a,left:f,bottom:p,right:y}=r;return a<=t.y&&t.y<=p&&f<=t.x&&t.x<=y}const D=({droppableContainers:t,pointerCoordinates:r})=>{if(!r)return[];const a=[];for(const f of t){const{id:p,rect:{current:y}}=f;if(y&&C(r,y)){const O=Lt(y).reduce((N,k)=>N+Qe(r,k),0),A=Number((O/4).toFixed(4));a.push({id:p,data:{droppableContainer:f,value:A}})}}return a.sort(Et)};function R(t,r,a){return{...t,scaleX:r&&a?r.width/a.width:1,scaleY:r&&a?r.height/a.height:1}}function I(t,r){return t&&r?{x:t.left-r.left,y:t.top-r.top}:ke}function g(t){return function(a,...f){return f.reduce((p,y)=>({...p,top:p.top+t*y.y,bottom:p.bottom+t*y.y,left:p.left+t*y.x,right:p.right+t*y.x}),{...a})}}const w=g(1);function M(t,r,a){let f,p,y,E,O;if(r.startsWith("matrix3d("))f=r.slice(9,-1).split(/, /),p=+f[0],y=+f[5],E=+f[12],O=+f[13];else if(r.startsWith("matrix("))f=r.slice(7,-1).split(/, /),p=+f[0],y=+f[3],E=+f[4],O=+f[5];else return t;const A=t.left-E-(1-p)*parseFloat(a),N=t.top-O-(1-y)*parseFloat(a.slice(a.indexOf(" ")+1)),k=p?t.width/p:t.width,F=y?t.height/y:t.height;return{width:k,height:F,top:N,right:A+k,bottom:N+F,left:A}}const m={ignoreTransform:!1};function x(t,r=m){let a=t.getBoundingClientRect();if(r.ignoreTransform){const{getComputedStyle:N}=(0,u.getWindow)(t),{transform:k,transformOrigin:F}=N(t);k&&(a=M(a,k,F))}const{top:f,left:p,width:y,height:E,bottom:O,right:A}=a;return{top:f,left:p,width:y,height:E,bottom:O,right:A}}function L(t){return x(t,{ignoreTransform:!0})}function B(t){const r=t.innerWidth,a=t.innerHeight;return{top:0,left:0,right:r,bottom:a,width:r,height:a}}function U(t,r=(0,u.getWindow)(t).getComputedStyle(t)){return r.position==="fixed"}function ee(t,r=(0,u.getWindow)(t).getComputedStyle(t)){const a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].find(p=>{const y=r[p];return typeof y=="string"?a.test(y):!1})!=null}function H(t){const r=[];function a(f){if(!f)return r;if((0,u.isDocument)(f)&&f.scrollingElement!=null&&!r.includes(f.scrollingElement))return r.push(f.scrollingElement),r;if(!(0,u.isHTMLElement)(f)||(0,u.isSVGElement)(f)||r.includes(f))return r;const{getComputedStyle:p}=(0,u.getWindow)(f),y=p(f);return f!==t&&ee(f,y)&&r.push(f),U(f,y)?r:a(f.parentNode)}return t?a(t):r}function q(t){return!u.canUseDOM||!t?null:(0,u.isWindow)(t)?t:(0,u.isNode)(t)?(0,u.isDocument)(t)||t===(0,u.getOwnerDocument)(t).scrollingElement?window:(0,u.isHTMLElement)(t)?t:null:null}function re(t){return(0,u.isWindow)(t)?t.scrollX:t.scrollLeft}function W(t){return(0,u.isWindow)(t)?t.scrollY:t.scrollTop}function he(t){return{x:re(t),y:W(t)}}var Pe;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Pe||(Pe={}));function $e(t){const r={x:0,y:0},a={x:t.scrollWidth-t.clientWidth,y:t.scrollHeight-t.clientHeight},f=t.scrollTop<=r.y,p=t.scrollLeft<=r.x,y=t.scrollTop>=a.y,E=t.scrollLeft>=a.x;return{isTop:f,isLeft:p,isBottom:y,isRight:E,maxScroll:a,minScroll:r}}function Xe(t){return!u.canUseDOM||!t?!1:t===document.scrollingElement}const Mt={x:.2,y:.2};function Je(t,r,{top:a,left:f,right:p,bottom:y},E=10,O=Mt){const{clientHeight:A,clientWidth:N}=t,k=Xe(t)?{top:0,left:0,right:N,bottom:A,width:N,height:A}:r,{isTop:F,isBottom:oe,isLeft:G,isRight:Q}=$e(t),J={x:0,y:0},ge={x:0,y:0},X={height:k.height*O.y,width:k.width*O.x};return!F&&a<=k.top+X.height?(J.y=Pe.Backward,ge.y=E*Math.abs((k.top+X.height-a)/X.height)):!oe&&y>=k.bottom-X.height&&(J.y=Pe.Forward,ge.y=E*Math.abs((k.bottom-X.height-y)/X.height)),!Q&&p>=k.right-X.width?(J.x=Pe.Forward,ge.x=E*Math.abs((k.right-X.width-p)/X.width)):!G&&f<=k.left+X.width&&(J.x=Pe.Backward,ge.x=E*Math.abs((k.left+X.width-f)/X.width)),{direction:J,speed:ge}}function We(t){if(t===document.scrollingElement){const{innerWidth:y,innerHeight:E}=window;return{top:0,left:0,right:y,bottom:E,width:y,height:E}}const{top:r,left:a,right:f,bottom:p}=t.getBoundingClientRect();return{top:r,left:a,right:f,bottom:p,width:t.clientWidth,height:t.clientHeight}}function Me(t){return t.reduce((r,a)=>(0,u.add)(r,he(a)),ke)}function dt(t){return t.reduce((r,a)=>r+re(a),0)}function ot(t){return t.reduce((r,a)=>r+W(a),0)}const ft=[["x",["left","right"],dt],["y",["top","bottom"],ot]];class st{constructor(r,a){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const f=H(a),p=Me(f);this.rect={...r},this.width=r.width,this.height=r.height;for(const[y,E,O]of ft)for(const A of E)Object.defineProperty(this,A,{get:()=>{const N=O(f),k=p[y]-N;return this.rect[A]+k},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}var it;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(it||(it={}));var at;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(at||(at={}));function Oe({acceleration:t,activator:r=it.Pointer,canScroll:a,draggingRect:f,enabled:p,interval:y=5,order:E=at.TreeOrder,pointerCoordinates:O,scrollableAncestors:A,scrollableAncestorRects:N,threshold:k}){const[F,oe]=(0,u.useInterval)(),G=(0,s.useRef)({x:1,y:1}),Q=(0,s.useMemo)(()=>{switch(r){case it.Pointer:return O?{top:O.y,bottom:O.y,left:O.x,right:O.x}:null;case it.DraggableRect:return f}return null},[r,f,O]),J=(0,s.useRef)(ke),ge=(0,s.useRef)(null),X=(0,s.useCallback)(()=>{const le=ge.current;if(!le)return;const me=G.current.x*J.current.x,Te=G.current.y*J.current.y;le.scrollBy(me,Te)},[]),_e=(0,s.useMemo)(()=>E===at.TreeOrder?[...A].reverse():A,[E,A]);(0,s.useEffect)(()=>{if(!p||!A.length||!Q){oe();return}for(const le of _e){if((a==null?void 0:a(le))===!1)continue;const me=A.indexOf(le),Te=N[me];if(!Te)continue;const{direction:ye,speed:e}=Je(le,Te,Q,t,k);if(e.x>0||e.y>0){oe(),ge.current=le,F(X,y),G.current=e,J.current=ye;return}}G.current={x:0,y:0},J.current={x:0,y:0},oe()},[t,X,a,oe,p,y,JSON.stringify(Q),F,A,_e,N,JSON.stringify(k)])}function en(t,r){const a=r!==null?t[r]:void 0,f=a?a.node.current:null;return(0,u.useLazyMemo)(p=>{var y;return r===null?null:(y=f??p)!=null?y:null},[f,r])}function Ot(t,r){return(0,s.useMemo)(()=>t.reduce((a,f)=>{const{sensor:p}=f,y=p.activators.map(E=>({eventName:E.eventName,handler:r(E.handler,f)}));return[...a,...y]},[]),[t,r])}var Z;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Z||(Z={}));var ht;(function(t){t.Optimized="optimized"})(ht||(ht={}));const Vt=new Map,Gt={measure:L,strategy:Z.WhileDragging,frequency:ht.Optimized};function tn(t,{dragging:r,dependencies:a,config:f}){const[p,y]=(0,s.useState)(null),E=p!=null,{frequency:O,measure:A,strategy:N}={...Gt,...f},k=(0,s.useRef)(t),F=(0,s.useCallback)((ge=[])=>y(X=>X?X.concat(ge):ge),[]),oe=(0,s.useRef)(null),G=J(),Q=(0,u.useLazyMemo)(ge=>{if(G&&!r)return Vt;const X=p;if(!ge||ge===Vt||k.current!==t||X!=null){const _e=new Map;for(let le of t){if(!le)continue;if(X&&X.length>0&&!X.includes(le.id)&&le.rect.current){_e.set(le.id,le.rect.current);continue}const me=le.node.current,Te=me?new st(A(me),me):null;le.rect.current=Te,Te&&_e.set(le.id,Te)}return _e}return ge},[t,p,r,G,A]);return(0,s.useEffect)(()=>{k.current=t},[t]),(0,s.useEffect)(()=>{G||requestAnimationFrame(()=>F())},[r,G]),(0,s.useEffect)(()=>{E&&y(null)},[E]),(0,s.useEffect)(()=>{G||typeof O!="number"||oe.current!==null||(oe.current=setTimeout(()=>{F(),oe.current=null},O))},[O,G,F,...a]),{droppableRects:Q,measureDroppableContainers:F,measuringScheduled:E};function J(){switch(N){case Z.Always:return!1;case Z.BeforeDragging:return r;default:return!r}}}function gt({onResize:t,disabled:r}){const a=(0,s.useMemo)(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:f}=window;return new f(t)},[r,t]);return(0,s.useEffect)(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Tt(t){const[r,a]=(0,s.useState)(null),f=(0,s.useRef)(t),p=(0,s.useCallback)(y=>{const E=q(y.target);E&&a(O=>O?(O.set(E,he(E)),new Map(O)):null)},[]);return(0,s.useEffect)(()=>{const y=f.current;if(t!==y){E(y);const O=t.map(A=>{const N=q(A);return N?(N.addEventListener("scroll",p,{passive:!0}),[N,he(N)]):null}).filter(A=>A!=null);a(O.length?new Map(O):null),f.current=t}return()=>{E(t),E(y)};function E(O){O.forEach(A=>{const N=q(A);N==null||N.removeEventListener("scroll",p)})}},[p,t]),(0,s.useMemo)(()=>t.length?r?Array.from(r.values()).reduce((y,E)=>(0,u.add)(y,E),ke):Me(t):ke,[t,r])}const Be=[];function vt(t){const r=(0,s.useRef)(t),a=(0,u.useLazyMemo)(f=>t?f&&t&&r.current&&t.parentNode===r.current.parentNode?f:H(t):Be,[t]);return(0,s.useEffect)(()=>{r.current=t},[t]),a}function Jt(t){(0,s.useEffect)(()=>{if(!u.canUseDOM)return;const r=t.map(({sensor:a})=>a.setup==null?void 0:a.setup());return()=>{for(const a of r)a==null||a()}},t.map(({sensor:r})=>r))}function At(t,r){return(0,s.useMemo)(()=>t.reduce((a,{eventName:f,handler:p})=>(a[f]=y=>{p(y,r)},a),{}),[t,r])}const nn=pt(L),pn=bt(L);function bn(t,r,a){const f=(0,s.useRef)(t);return(0,u.useLazyMemo)(p=>t?a||!p&&t||t!==f.current?(0,u.isHTMLElement)(t)&&t.parentNode==null?null:new st(r(t),t):p??null:null,[t,a,r])}function pt(t){return(r,a)=>bn(r,t,a)}function bt(t){const r=[];return function(f,p){const y=(0,s.useRef)(f);return(0,u.useLazyMemo)(E=>f.length?p||!E&&f.length||f!==y.current?f.map(O=>new st(t(O),O)):E??r:r,[f,p])}}function ze(t){return(0,s.useMemo)(()=>t?B(t):null,[t])}function mn(t){if(!t)return null;if(t.children.length>1)return t;const r=t.children[0];return(0,u.isHTMLElement)(r)?r:t}function yn({measure:t=x}){const[r,a]=(0,s.useState)(null),f=(0,s.useCallback)(A=>{for(const{target:N}of A)if((0,u.isHTMLElement)(N)){a(k=>{const F=t(N);return k?{...k,width:F.width,height:F.height}:F});break}},[t]),p=gt({onResize:f}),y=(0,s.useCallback)(A=>{const N=mn(A);p==null||p.disconnect(),N&&(p==null||p.observe(N)),a(N?t(N):null)},[t,p]),[E,O]=(0,u.useNodeRef)(y);return(0,s.useMemo)(()=>({nodeRef:E,rect:r,setRef:O}),[r,E,O])}function cn(t,r){return(0,s.useMemo)(()=>({sensor:t,options:r??{}}),[t,r])}function In(...t){return(0,s.useMemo)(()=>[...t].filter(r=>r!=null),[...t])}class mt{constructor(r){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(a=>{var f;return(f=this.target)==null?void 0:f.removeEventListener(...a)})},this.target=r}add(r,a,f){var p;(p=this.target)==null||p.addEventListener(r,a,f),this.listeners.push([r,a,f])}}function Ln(t){const{EventTarget:r}=(0,u.getWindow)(t);return t instanceof r?t:(0,u.getOwnerDocument)(t)}function wn(t,r){const a=Math.abs(t.x),f=Math.abs(t.y);return typeof r=="number"?Math.sqrt(a**2+f**2)>r:"x"in r&&"y"in r?a>r.x&&f>r.y:"x"in r?a>r.x:"y"in r?f>r.y:!1}var ct;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(ct||(ct={}));function Nn(t){t.preventDefault()}function ir(t){t.stopPropagation()}var be;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter"})(be||(be={}));const ln={start:[be.Space,be.Enter],cancel:[be.Esc],end:[be.Space,be.Enter]},ar=(t,{currentCoordinates:r})=>{switch(t.code){case be.Right:return{...r,x:r.x+25};case be.Left:return{...r,x:r.x-25};case be.Down:return{...r,y:r.y+25};case be.Up:return{...r,y:r.y-25}}};class Cn{constructor(r){this.props=void 0,this.autoScrollEnabled=!1,this.coordinates=ke,this.listeners=void 0,this.windowListeners=void 0,this.props=r;const{event:{target:a}}=r;this.props=r,this.listeners=new mt((0,u.getOwnerDocument)(a)),this.windowListeners=new mt((0,u.getWindow)(a)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ct.Resize,this.handleCancel),this.windowListeners.add(ct.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ct.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:r,onStart:a}=this.props;if(!r.node.current)throw new Error("Active draggable node is undefined");const f=L(r.node.current),p={x:f.left,y:f.top};this.coordinates=p,a(p)}handleKeyDown(r){if((0,u.isKeyboardEvent)(r)){const{coordinates:a}=this,{active:f,context:p,options:y}=this.props,{keyboardCodes:E=ln,coordinateGetter:O=ar,scrollBehavior:A="smooth"}=y,{code:N}=r;if(E.end.includes(N)){this.handleEnd(r);return}if(E.cancel.includes(N)){this.handleCancel(r);return}const k=O(r,{active:f,context:p.current,currentCoordinates:a});if(k){const F={x:0,y:0},{scrollableAncestors:oe}=p.current;for(const G of oe){const Q=r.code,J=(0,u.subtract)(k,a),{isTop:ge,isRight:X,isLeft:_e,isBottom:le,maxScroll:me,minScroll:Te}=$e(G),ye=We(G),e={x:Math.min(Q===be.Right?ye.right-ye.width/2:ye.right,Math.max(Q===be.Right?ye.left:ye.left+ye.width/2,k.x)),y:Math.min(Q===be.Down?ye.bottom-ye.height/2:ye.bottom,Math.max(Q===be.Down?ye.top:ye.top+ye.height/2,k.y))},n=Q===be.Right&&!X||Q===be.Left&&!_e,o=Q===be.Down&&!le||Q===be.Up&&!ge;if(n&&e.x!==k.x){if(Q===be.Right&&G.scrollLeft+J.x<=me.x||Q===be.Left&&G.scrollLeft+J.x>=Te.x){G.scrollBy({left:J.x,behavior:A});return}F.x=Q===be.Right?G.scrollLeft-me.x:G.scrollLeft-Te.x,G.scrollBy({left:-F.x,behavior:A});break}else if(o&&e.y!==k.y){if(Q===be.Down&&G.scrollTop+J.y<=me.y||Q===be.Up&&G.scrollTop+J.y>=Te.y){G.scrollBy({top:J.y,behavior:A});return}F.y=Q===be.Down?G.scrollTop-me.y:G.scrollTop-Te.y,G.scrollBy({top:-F.y,behavior:A});break}}this.handleMove(r,(0,u.add)(k,F))}}}handleMove(r,a){const{onMove:f}=this.props;r.preventDefault(),f(a),this.coordinates=a}handleEnd(r){const{onEnd:a}=this.props;r.preventDefault(),this.detach(),a()}handleCancel(r){const{onCancel:a}=this.props;r.preventDefault(),this.detach(),a()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Cn.activators=[{eventName:"onKeyDown",handler:(t,{keyboardCodes:r=ln,onActivation:a})=>{const{code:f}=t.nativeEvent;return r.start.includes(f)?(t.preventDefault(),a==null||a({event:t.nativeEvent}),!0):!1}}];function Gn(t){return!!(t&&"distance"in t)}function Pn(t){return!!(t&&"delay"in t)}class kn{constructor(r,a,f=Ln(r.event.target)){var p;this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=r,this.events=a;const{event:y}=r,{target:E}=y;this.props=r,this.events=a,this.document=(0,u.getOwnerDocument)(E),this.documentListeners=new mt(this.document),this.listeners=new mt(f),this.windowListeners=new mt((0,u.getWindow)(E)),this.initialCoordinates=(p=(0,u.getEventCoordinates)(y))!=null?p:ke,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:r,props:{options:{activationConstraint:a}}}=this;if(this.listeners.add(r.move.name,this.handleMove,{passive:!1}),this.listeners.add(r.end.name,this.handleEnd),this.windowListeners.add(ct.Resize,this.handleCancel),this.windowListeners.add(ct.DragStart,Nn),this.windowListeners.add(ct.VisibilityChange,this.handleCancel),this.windowListeners.add(ct.ContextMenu,Nn),this.documentListeners.add(ct.Keydown,this.handleKeydown),a){if(Gn(a))return;if(Pn(a)){this.timeoutId=setTimeout(this.handleStart,a.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:r}=this,{onStart:a}=this.props;r&&(this.activated=!0,this.documentListeners.add(ct.Click,ir,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ct.SelectionChange,this.removeTextSelection),a(r))}handleMove(r){var a;const{activated:f,initialCoordinates:p,props:y}=this,{onMove:E,options:{activationConstraint:O}}=y;if(!p)return;const A=(a=(0,u.getEventCoordinates)(r))!=null?a:ke,N=(0,u.subtract)(p,A);if(!f&&O){if(Pn(O))return wn(N,O.tolerance)?this.handleCancel():void 0;if(Gn(O))return O.tolerance!=null&&wn(N,O.tolerance)?this.handleCancel():wn(N,O.distance)?this.handleStart():void 0}r.cancelable&&r.preventDefault(),E(A)}handleEnd(){const{onEnd:r}=this.props;this.detach(),r()}handleCancel(){const{onCancel:r}=this.props;this.detach(),r()}handleKeydown(r){r.code===be.Esc&&this.handleCancel()}removeTextSelection(){var r;(r=this.document.getSelection())==null||r.removeAllRanges()}}const cr={move:{name:"pointermove"},end:{name:"pointerup"}};class Dn extends kn{constructor(r){const{event:a}=r,f=(0,u.getOwnerDocument)(a.target);super(r,cr,f)}}Dn.activators=[{eventName:"onPointerDown",handler:({nativeEvent:t},{onActivation:r})=>!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}];const lr={move:{name:"mousemove"},end:{name:"mouseup"}};var Bn;(function(t){t[t.RightClick=2]="RightClick"})(Bn||(Bn={}));class zn extends kn{constructor(r){super(r,lr,(0,u.getOwnerDocument)(r.event.target))}}zn.activators=[{eventName:"onMouseDown",handler:({nativeEvent:t},{onActivation:r})=>t.button===Bn.RightClick?!1:(r==null||r({event:t}),!0)}];const un={move:{name:"touchmove"},end:{name:"touchend"}};class Jn extends kn{constructor(r){super(r,un)}static setup(){return window.addEventListener(un.move.name,r,{capture:!1,passive:!1}),function(){window.removeEventListener(un.move.name,r)};function r(){}}}Jn.activators=[{eventName:"onTouchStart",handler:({nativeEvent:t},{onActivation:r})=>{const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];function xn(t,{transform:r,...a}){return t!=null&&t.length?t.reduce((f,p)=>p({transform:f,...a}),r):r}const ur=[{sensor:Dn,options:{}},{sensor:Cn,options:{}}],dr={current:{}},Rn=(0,s.createContext)({...ke,scaleX:1,scaleY:1}),Sn=(0,s.memo)(function({id:r,autoScroll:a=!0,announcements:f,children:p,sensors:y=ur,collisionDetection:E=d,measuring:O,modifiers:A,screenReaderInstructions:N=qe,...k}){var F,oe,G,Q,J,ge,X;const _e=(0,s.useReducer)(Re,void 0,nt),[le,me]=_e,[Te,ye]=(0,s.useState)(()=>({type:null,event:null})),[e,n]=(0,s.useState)(!1),{draggable:{active:o,nodes:i,translate:l},droppable:{containers:c}}=le,h=o?i[o]:null,v=(0,s.useRef)({initial:null,translated:null}),b=(0,s.useMemo)(()=>{var Le;return o!=null?{id:o,data:(Le=h==null?void 0:h.data)!=null?Le:dr,rect:v}:null},[o,h]),S=(0,s.useRef)(null),[P,T]=(0,s.useState)(null),[_,z]=(0,s.useState)(null),fe=(0,u.useLatestValue)(k,Object.values(k)),j=(0,u.useUniqueId)("DndDescribedBy",r),te=(0,s.useMemo)(()=>c.getEnabled(),[c]),{droppableRects:ie,measureDroppableContainers:pe,measuringScheduled:ve}=tn(te,{dragging:e,dependencies:[l.x,l.y],config:O==null?void 0:O.droppable}),we=en(i,o),Ce=_?(0,u.getEventCoordinates)(_):null,ce=bn(we,(F=O==null||(oe=O.draggable)==null?void 0:oe.measure)!=null?F:L),ue=nn(we?we.parentElement:null),se=(0,s.useRef)({active:null,activeNode:we,collisionRect:null,collisions:null,droppableRects:ie,draggableNodes:i,draggingNode:null,draggingNodeRect:null,droppableContainers:c,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ae=c.getNodeFor((G=se.current.over)==null?void 0:G.id),Ie=yn({measure:O==null||(Q=O.dragOverlay)==null?void 0:Q.measure}),xe=(J=Ie.nodeRef.current)!=null?J:we,He=(ge=Ie.rect)!=null?ge:ce,lt=(0,s.useRef)(null),$t=lt.current,_n=He===ce?I(ce,$t):ke,En=ze(xe?xe.ownerDocument.defaultView:null),je=vt(o?Ae??xe:null),hn=pn(je),qt=xn(A,{transform:{x:l.x-_n.x,y:l.y-_n.y,scaleX:1,scaleY:1},activatorEvent:_,active:b,activeNodeRect:ce,containerNodeRect:ue,draggingNodeRect:He,over:se.current.over,overlayNodeRect:Ie.rect,scrollableAncestors:je,scrollableAncestorRects:hn,windowRect:En}),Mn=Ce?(0,u.add)(Ce,l):null,er=Tt(je),ut=(0,u.add)(qt,er),yt=He?w(He,qt):null,Xt=b&&yt?E({active:b,collisionRect:yt,droppableContainers:te,pointerCoordinates:Mn}):null,Fn=Nt(Xt,"id"),[Ke,Un]=(0,s.useState)(null),tr=R(qt,(X=Ke==null?void 0:Ke.rect)!=null?X:null,ce),$n=(0,s.useCallback)((Le,{sensor:Fe,options:et})=>{if(!S.current)return;const Ct=i[S.current];if(!Ct)return;const tt=new Fe({active:S.current,activeNode:Ct,event:Le.nativeEvent,options:et,context:se,onStart(Ve){const Dt=S.current;if(!Dt)return;const rn=i[Dt];if(!rn)return;const{onDragStart:gn}=fe.current,Tn={active:{id:Dt,data:rn.data,rect:v}};(0,V.unstable_batchedUpdates)(()=>{me({type:$.DragStart,initialCoordinates:Ve,active:Dt}),ye({type:$.DragStart,event:Tn})}),gn==null||gn(Tn)},onMove(Ve){me({type:$.DragMove,coordinates:Ve})},onEnd:Ye($.DragEnd),onCancel:Ye($.DragCancel)});(0,V.unstable_batchedUpdates)(()=>{T(tt),z(Le.nativeEvent)});function Ye(Ve){return async function(){const{active:rn,collisions:gn,over:Tn,scrollAdjustedTranslate:rr}=se.current;let xt=null;if(rn&&rr){const{cancelDrop:kt}=fe.current;xt={active:rn,collisions:gn,delta:rr,over:Tn},Ve===$.DragEnd&&typeof kt=="function"&&await Promise.resolve(kt(xt))&&(Ve=$.DragCancel)}S.current=null,(0,V.unstable_batchedUpdates)(()=>{if(me({type:Ve}),Un(null),n(!1),T(null),z(null),xt&&ye({type:Ve,event:xt}),xt){const{onDragCancel:kt,onDragEnd:on}=fe.current,Xn=Ve===$.DragEnd?on:kt;Xn==null||Xn(xt)}})}}},[i]),wt=(0,s.useCallback)((Le,Fe)=>(et,Ct)=>{const tt=et.nativeEvent;S.current!==null||tt.dndKit||tt.defaultPrevented||Le(et,Fe.options)===!0&&(tt.dndKit={capturedBy:Fe.sensor},S.current=Ct,$n(et,Fe))},[$n]),On=Ot(y,wt);Jt(y),(0,s.useEffect)(()=>{o!=null&&n(!0)},[o]),(0,s.useEffect)(()=>{b||(lt.current=null),b&&ce&&!lt.current&&(lt.current=ce)},[ce,b]),(0,s.useEffect)(()=>{const{onDragMove:Le}=fe.current,{active:Fe,collisions:et,over:Ct}=se.current;if(!Fe)return;const tt={active:Fe,collisions:et,delta:{x:ut.x,y:ut.y},over:Ct};ye({type:$.DragMove,event:tt}),Le==null||Le(tt)},[ut.x,ut.y]),(0,s.useEffect)(()=>{const{active:Le,collisions:Fe,droppableContainers:et,scrollAdjustedTranslate:Ct}=se.current;if(!Le||!S.current||!Ct)return;const{onDragOver:tt}=fe.current,Ye=et.get(Fn),Ve=Ye&&Ye.rect.current?{id:Ye.id,rect:Ye.rect.current,data:Ye.data,disabled:Ye.disabled}:null,Dt={active:Le,collisions:Fe,delta:{x:Ct.x,y:Ct.y},over:Ve};(0,V.unstable_batchedUpdates)(()=>{Un(Ve),ye({type:$.DragOver,event:Dt}),tt==null||tt(Dt)})},[Fn]),(0,u.useIsomorphicLayoutEffect)(()=>{se.current={active:b,activeNode:we,collisionRect:yt,collisions:Xt,droppableRects:ie,draggableNodes:i,draggingNode:xe,draggingNodeRect:He,droppableContainers:c,over:Ke,scrollableAncestors:je,scrollAdjustedTranslate:ut},v.current={initial:He,translated:yt}},[b,we,Xt,yt,i,xe,He,ie,c,Ke,je,ut]),Oe({...Qt(),draggingRect:yt,pointerCoordinates:Mn,scrollableAncestors:je,scrollableAncestorRects:hn});const Zt=(0,s.useMemo)(()=>({active:b,activeNode:we,activeNodeRect:ce,activatorEvent:_,collisions:Xt,containerNodeRect:ue,dragOverlay:Ie,draggableNodes:i,droppableContainers:c,droppableRects:ie,over:Ke,measureDroppableContainers:pe,scrollableAncestors:je,scrollableAncestorRects:hn,measuringScheduled:ve,windowRect:En}),[b,we,ce,_,Xt,ue,Ie,i,c,ie,Ke,pe,je,hn,ve,En]),nr=(0,s.useMemo)(()=>({activatorEvent:_,activators:On,active:b,activeNodeRect:ce,ariaDescribedById:{draggable:j},dispatch:me,draggableNodes:i,over:Ke,measureDroppableContainers:pe}),[_,On,b,ce,me,j,i,Ke,pe]);return s.createElement(Ze.Provider,{value:Te},s.createElement(Y.Provider,{value:nr},s.createElement(de.Provider,{value:Zt},s.createElement(Rn.Provider,{value:tr},p))),s.createElement(rt,{announcements:f,hiddenTextDescribedById:j,screenReaderInstructions:N}));function Qt(){const Le=(P==null?void 0:P.autoScrollEnabled)===!1,Fe=typeof a=="object"?a.enabled===!1:a===!1,et=!Le&&!Fe;return typeof a=="object"?{...a,enabled:et}:{enabled:et}}}),dn=(0,s.createContext)(null),qn="button",Zn="Droppable";function fn({id:t,data:r,disabled:a=!1,attributes:f}){const p=(0,u.useUniqueId)(Zn),{activators:y,activatorEvent:E,active:O,activeNodeRect:A,ariaDescribedById:N,draggableNodes:k,over:F}=(0,s.useContext)(Y),{role:oe=qn,roleDescription:G="draggable",tabIndex:Q=0}=f??{},J=(O==null?void 0:O.id)===t,ge=(0,s.useContext)(J?Rn:dn),[X,_e]=(0,u.useNodeRef)(),le=At(y,t),me=(0,u.useLatestValue)(r);(0,u.useIsomorphicLayoutEffect)(()=>(k[t]={id:t,key:p,node:X,data:me},()=>{const ye=k[t];ye&&ye.key===p&&delete k[t]}),[k,t]);const Te=(0,s.useMemo)(()=>({role:oe,tabIndex:Q,"aria-pressed":J&&oe===qn?!0:void 0,"aria-roledescription":G,"aria-describedby":N.draggable}),[oe,Q,J,G,N.draggable]);return{active:O,activatorEvent:E,activeNodeRect:A,attributes:Te,isDragging:J,listeners:a?void 0:le,node:X,over:F,setNodeRef:_e,transform:ge}}function Kn(){return(0,s.useContext)(de)}const fr="Droppable",hr={timeout:25};function gr({data:t,disabled:r=!1,id:a,resizeObserverConfig:f}){const p=(0,u.useUniqueId)(fr),{active:y,dispatch:E,over:O,measureDroppableContainers:A}=(0,s.useContext)(Y),N=(0,s.useRef)(!1),k=(0,s.useRef)(null),F=(0,s.useRef)(null),{disabled:oe,updateMeasurementsFor:G,timeout:Q}={...hr,...f},J=(0,u.useLatestValue)(G??a),ge=(0,s.useCallback)(()=>{if(!N.current){N.current=!0;return}F.current!=null&&clearTimeout(F.current),F.current=setTimeout(()=>{A(typeof J.current=="string"?[J.current]:J.current),F.current=null},Q)},[Q]),X=gt({onResize:ge,disabled:oe||!y}),_e=(0,s.useCallback)((ye,e)=>{X&&(e&&(X.unobserve(e),N.current=!1),ye&&X.observe(ye))},[X]),[le,me]=(0,u.useNodeRef)(_e),Te=(0,u.useLatestValue)(t);return(0,s.useEffect)(()=>{!X||!le.current||(X.disconnect(),N.current=!1,X.observe(le.current))},[le,X]),(0,u.useIsomorphicLayoutEffect)(()=>(E({type:$.RegisterDroppable,element:{id:a,key:p,disabled:r,node:le,rect:k,data:Te}}),()=>E({type:$.UnregisterDroppable,key:p,id:a})),[a]),(0,s.useEffect)(()=>{E({type:$.SetDroppableDisabled,id:a,key:p,disabled:r})},[r]),{active:y,rect:k,isOver:(O==null?void 0:O.id)===a,node:le,over:O,setNodeRef:me}}const Qn={duration:250,easing:"ease",dragSourceOpacity:0};function vr({animate:t,adjustScale:r,activeId:a,draggableNodes:f,duration:p,dragSourceOpacity:y,easing:E,node:O,transform:A}){const[N,k]=(0,s.useState)(!1);return(0,u.useIsomorphicLayoutEffect)(()=>{var F;if(!t||!a||!E||!p){t&&k(!0);return}const oe=(F=f[a])==null?void 0:F.node.current;if(A&&O&&oe&&oe.parentNode!==null){const G=mn(O);if(G){const Q=G.getBoundingClientRect(),J=L(oe),ge={x:Q.left-J.left,y:Q.top-J.top};if(Math.abs(ge.x)||Math.abs(ge.y)){const X={scaleX:r?J.width*A.scaleX/Q.width:1,scaleY:r?J.height*A.scaleY/Q.height:1},_e=u.CSS.Transform.toString({x:A.x-ge.x,y:A.y-ge.y,...X}),le=oe.style.opacity;y!=null&&(oe.style.opacity=`${y}`);const me=O.animate([{transform:u.CSS.Transform.toString(A)},{transform:_e}],{easing:E,duration:p});me.onfinish=()=>{O.style.display="none",k(!0),oe&&y!=null&&(oe.style.opacity=le)};return}}}k(!0)},[t,a,r,f,p,E,y,O,A]),(0,u.useIsomorphicLayoutEffect)(()=>{N&&k(!1)},[N]),N}const pr={x:0,y:0,scaleX:1,scaleY:1},Wn=t=>(0,u.isKeyboardEvent)(t)?"transform 250ms ease":void 0,Ut=s.memo(({adjustScale:t=!1,children:r,dropAnimation:a=Qn,style:f,transition:p=Wn,modifiers:y,wrapperElement:E="div",className:O,zIndex:A=999})=>{var N,k;const{active:F,activeNodeRect:oe,containerNodeRect:G,draggableNodes:Q,activatorEvent:J,over:ge,dragOverlay:X,scrollableAncestors:_e,scrollableAncestorRects:le,windowRect:me}=Kn(),Te=(0,s.useContext)(Rn),ye=xn(y,{activatorEvent:J,active:F,activeNodeRect:oe,containerNodeRect:G,draggingNodeRect:X.rect,over:ge,overlayNodeRect:X.rect,scrollableAncestors:_e,scrollableAncestorRects:le,transform:Te,windowRect:me}),e=F!==null,n=t?ye:{...ye,scaleX:1,scaleY:1},o=(0,u.useLazyMemo)(z=>e?z||(oe?{...oe}:null):null,[e,oe]),i=o?{position:"fixed",width:o.width,height:o.height,top:o.top,left:o.left,zIndex:A,transform:u.CSS.Transform.toString(n),touchAction:"none",transformOrigin:t&&J?Wt(J,o):void 0,transition:typeof p=="function"?p(J):p,...f}:void 0,l=e?{style:i,children:r,className:O,transform:n}:void 0,c=(0,s.useRef)(l),h=l??c.current,{children:v,transform:b,...S}=h??{},P=(0,s.useRef)((N=F==null?void 0:F.id)!=null?N:null),T=vr({animate:!!(a&&P.current&&!F),adjustScale:t,activeId:P.current,draggableNodes:Q,duration:a==null?void 0:a.duration,easing:a==null?void 0:a.easing,dragSourceOpacity:a==null?void 0:a.dragSourceOpacity,node:X.nodeRef.current,transform:(k=c.current)==null?void 0:k.transform}),_=!!(v&&(r||a&&!T));return(0,s.useEffect)(()=>{if((F==null?void 0:F.id)!==P.current){var z;P.current=(z=F==null?void 0:F.id)!=null?z:null}F&&c.current!==l&&(c.current=l)},[F,l]),(0,s.useEffect)(()=>{T&&(c.current=void 0)},[T]),_?s.createElement(Y.Provider,{value:K},s.createElement(Rn.Provider,{value:pr},s.createElement(E,{...S,ref:X.setRef},v))):null})},80222:function(vn,Ue,ae){ae.r(Ue),ae.d(Ue,{createSnapModifier:function(){return V},restrictToFirstScrollableAncestor:function(){return Se},restrictToHorizontalAxis:function(){return u},restrictToParentElement:function(){return qe},restrictToVerticalAxis:function(){return $},restrictToWindowEdges:function(){return Ee},snapCenterToCursor:function(){return Ne}});var s=ae(24285);function V(ne){return K=>{let{transform:Y}=K;return{...Y,x:Math.ceil(Y.x/ne)*ne,y:Math.ceil(Y.y/ne)*ne}}}const u=ne=>{let{transform:K}=ne;return{...K,y:0}};function De(ne,K,Y){const de={...ne};return K.top+ne.y<=Y.top?de.y=Y.top-K.top:K.bottom+ne.y>=Y.top+Y.height&&(de.y=Y.top+Y.height-K.bottom),K.left+ne.x<=Y.left?de.x=Y.left-K.left:K.right+ne.x>=Y.left+Y.width&&(de.x=Y.left+Y.width-K.right),de}const qe=ne=>{let{containerNodeRect:K,draggingNodeRect:Y,transform:de}=ne;return!Y||!K?de:De(de,Y,K)},Se=ne=>{let{draggingNodeRect:K,transform:Y,scrollableAncestorRects:de}=ne;const nt=de[0];return!K||!nt?Y:De(Y,K,nt)},$=ne=>{let{transform:K}=ne;return{...K,x:0}},Ee=ne=>{let{transform:K,draggingNodeRect:Y,windowRect:de}=ne;return!Y||!de?K:De(K,Y,de)},Ne=ne=>{let{activatorEvent:K,draggingNodeRect:Y,transform:de}=ne;if(Y&&K){const nt=(0,s.getEventCoordinates)(K);if(!nt)return de;const Re=nt.x-Y.left,Ze=nt.y-Y.top;return{...de,x:de.x+Re-Y.width/2,y:de.y+Ze-Y.height/2}}return de}},36905:function(vn,Ue,ae){ae.r(Ue),ae.d(Ue,{SortableContext:function(){return rt},arrayMove:function(){return De},arraySwap:function(){return qe},defaultAnimateLayoutChanges:function(){return Wt},defaultNewIndexGetter:function(){return Qe},horizontalListSortingStrategy:function(){return Ne},rectSortingStrategy:function(){return K},rectSwappingStrategy:function(){return Y},sortableKeyboardCoordinates:function(){return Ht},useSortable:function(){return Pt},verticalListSortingStrategy:function(){return nt}});var s=ae(67294),V=ae(23861),u=ae(24285);function De(d,C,D){const R=d.slice();return R.splice(D<0?R.length+D:D,0,R.splice(C,1)[0]),R}function qe(d,C,D){const R=d.slice();return R[C]=d[D],R[D]=d[C],R}function Se(d,C){return d.reduce((D,R,I)=>{const g=C.get(R);return g&&(D[I]=g),D},Array(d.length))}function $(d){return d!==null&&d>=0}const Ee={scaleX:1,scaleY:1},Ne=({rects:d,activeNodeRect:C,activeIndex:D,overIndex:R,index:I})=>{var g;const w=(g=d[D])!=null?g:C;if(!w)return null;const M=ne(d,I,D);if(I===D){const m=d[R];return m?{x:D<R?m.left+m.width-(w.left+w.width):m.left-w.left,y:0,...Ee}:null}return I>D&&I<=R?{x:-w.width-M,y:0,...Ee}:I<D&&I>=R?{x:w.width+M,y:0,...Ee}:{x:0,y:0,...Ee}};function ne(d,C,D){const R=d[C],I=d[C-1],g=d[C+1];return!R||!I&&!g?0:D<C?I?R.left-(I.left+I.width):g.left-(R.left+R.width):g?g.left-(R.left+R.width):R.left-(I.left+I.width)}const K=({rects:d,activeIndex:C,overIndex:D,index:R})=>{const I=De(d,D,C),g=d[R],w=I[R];return!w||!g?null:{x:w.left-g.left,y:w.top-g.top,scaleX:w.width/g.width,scaleY:w.height/g.height}},Y=({activeIndex:d,index:C,rects:D,overIndex:R})=>{let I,g;return C===d&&(I=D[C],g=D[R]),C===R&&(I=D[C],g=D[d]),!g||!I?null:{x:g.left-I.left,y:g.top-I.top,scaleX:g.width/I.width,scaleY:g.height/I.height}},de={scaleX:1,scaleY:1},nt=({activeIndex:d,activeNodeRect:C,index:D,rects:R,overIndex:I})=>{var g;const w=(g=R[d])!=null?g:C;if(!w)return null;if(D===d){const m=R[I];return m?{x:0,y:d<I?m.top+m.height-(w.top+w.height):m.top-w.top,...de}:null}const M=Re(R,D,d);return D>d&&D<=I?{x:0,y:-w.height-M,...de}:D<d&&D>=I?{x:0,y:w.height+M,...de}:{x:0,y:0,...de}};function Re(d,C,D){const R=d[C],I=d[C-1],g=d[C+1];return R?D<C?I?R.top-(I.top+I.height):g?g.top-(R.top+R.height):0:g?g.top-(R.top+R.height):I?R.top-(I.top+I.height):0:0}const Ze="Sortable",Kt=s.createContext({activeIndex:-1,containerId:Ze,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:K});function rt({children:d,id:C,items:D,strategy:R=K}){const{active:I,dragOverlay:g,droppableRects:w,over:M,measureDroppableContainers:m,measuringScheduled:x}=(0,V.useDndContext)(),L=(0,u.useUniqueId)(Ze,C),B=g.rect!==null,U=(0,s.useMemo)(()=>D.map($e=>typeof $e=="string"?$e:$e.id),[D]),ee=I!=null,H=I?U.indexOf(I.id):-1,q=M?U.indexOf(M.id):-1,re=(0,s.useRef)(U),W=!ke(U,re.current),he=q!==-1&&H===-1||W;(0,u.useIsomorphicLayoutEffect)(()=>{W&&ee&&!x&&m(U)},[W,U,ee,m,x]),(0,s.useEffect)(()=>{re.current=U},[U]);const Pe=(0,s.useMemo)(()=>({activeIndex:H,containerId:L,disableTransforms:he,items:U,overIndex:q,useDragOverlay:B,sortedRects:Se(U,w),strategy:R}),[H,L,he,U,q,w,B,R]);return s.createElement(Kt.Provider,{value:Pe},d)}function ke(d,C){return d.join()===C.join()}const Qe=({id:d,items:C,activeIndex:D,overIndex:R})=>De(C,D,R).indexOf(d),Wt=({containerId:d,isSorting:C,wasDragging:D,index:R,items:I,newIndex:g,previousItems:w,previousContainerId:M,transition:m})=>!m||!D||w!==I&&R===g?!1:C?!0:g!==R&&d===M,Et={duration:200,easing:"ease"},_t="transform",Lt=u.CSS.Transition.toString({property:_t,duration:0,easing:"linear"}),Nt={roleDescription:"sortable"};function Ft({disabled:d,index:C,node:D,rect:R}){const[I,g]=(0,s.useState)(null),w=(0,s.useRef)(C);return(0,u.useIsomorphicLayoutEffect)(()=>{if(!d&&C!==w.current&&D.current){const M=R.current;if(M){const m=(0,V.getClientRect)(D.current,{ignoreTransform:!0}),x={x:M.left-m.left,y:M.top-m.top,scaleX:M.width/m.width,scaleY:M.height/m.height};(x.x||x.y)&&g(x)}}C!==w.current&&(w.current=C)},[d,C,D,R]),(0,s.useEffect)(()=>{I&&requestAnimationFrame(()=>{g(null)})},[I]),I}function Pt({animateLayoutChanges:d=Wt,attributes:C,disabled:D,data:R,getNewIndex:I=Qe,id:g,strategy:w,resizeObserverConfig:M,transition:m=Et}){const{items:x,containerId:L,activeIndex:B,disableTransforms:U,sortedRects:ee,overIndex:H,useDragOverlay:q,strategy:re}=(0,s.useContext)(Kt),W=x.indexOf(g),he=(0,s.useMemo)(()=>({sortable:{containerId:L,index:W,items:x},...R}),[L,R,W,x]),Pe=(0,s.useMemo)(()=>x.slice(x.indexOf(g)),[x,g]),{rect:$e,node:Xe,isOver:Mt,setNodeRef:Je}=(0,V.useDroppable)({id:g,data:he,resizeObserverConfig:{updateMeasurementsFor:Pe,...M}}),{active:We,activatorEvent:Me,activeNodeRect:dt,attributes:ot,setNodeRef:ft,listeners:st,isDragging:it,over:at,transform:Oe}=(0,V.useDraggable)({id:g,data:he,attributes:{...Nt,...C},disabled:D}),en=(0,u.useCombinedRefs)(Je,ft),Ot=!!We,Z=Ot&&!U&&$(B)&&$(H),ht=!q&&it,Vt=ht&&Z?Oe:null,tn=Z?Vt??(w??re)({rects:ee,activeNodeRect:dt,activeIndex:B,overIndex:H,index:W}):null,gt=$(B)&&$(H)?I({id:g,items:x,activeIndex:B,overIndex:H}):W,Tt=We==null?void 0:We.id,Be=(0,s.useRef)({activeId:Tt,items:x,newIndex:gt,containerId:L}),vt=x!==Be.current.items,Jt=d({active:We,containerId:L,isDragging:it,isSorting:Ot,id:g,index:W,items:x,newIndex:Be.current.newIndex,previousItems:Be.current.items,previousContainerId:Be.current.containerId,transition:m,wasDragging:Be.current.activeId!=null}),At=Ft({disabled:!Jt,index:W,node:Xe,rect:$e});return(0,s.useEffect)(()=>{Ot&&Be.current.newIndex!==gt&&(Be.current.newIndex=gt),L!==Be.current.containerId&&(Be.current.containerId=L),x!==Be.current.items&&(Be.current.items=x),Tt!==Be.current.activeId&&(Be.current.activeId=Tt)},[Tt,Ot,gt,L,x]),{active:We,activeIndex:B,attributes:ot,rect:$e,index:W,newIndex:gt,items:x,isOver:Mt,isSorting:Ot,isDragging:it,listeners:st,node:Xe,overIndex:H,over:at,setNodeRef:en,setDroppableNodeRef:Je,setDraggableNodeRef:ft,transform:At??tn,transition:nn()};function nn(){if(At||vt&&Be.current.newIndex===W)return Lt;if(!(ht&&!(0,u.isKeyboardEvent)(Me)||!m)&&(Ot||Jt))return u.CSS.Transition.toString({...m,property:_t})}}const Yt=[V.KeyboardCode.Down,V.KeyboardCode.Right,V.KeyboardCode.Up,V.KeyboardCode.Left],Ht=(d,{context:{active:C,droppableContainers:D,collisionRect:R,scrollableAncestors:I}})=>{if(Yt.includes(d.code)){if(d.preventDefault(),!C||!R)return;const g=[];D.getEnabled().forEach(m=>{if(!m||m!=null&&m.disabled)return;const x=m==null?void 0:m.rect.current;if(x)switch(d.code){case V.KeyboardCode.Down:R.top+R.height<=x.top&&g.push(m);break;case V.KeyboardCode.Up:R.top>=x.top+x.height&&g.push(m);break;case V.KeyboardCode.Left:R.left>=x.left+x.width&&g.push(m);break;case V.KeyboardCode.Right:R.left+R.width<=x.left&&g.push(m);break}});const w=(0,V.closestCorners)({active:C,collisionRect:R,droppableContainers:g,pointerCoordinates:null}),M=(0,V.getFirstCollision)(w,"id");if(M!=null){const m=D.get(M),x=m==null?void 0:m.node.current,L=m==null?void 0:m.rect.current;if(x&&L){const ee=(0,V.getScrollableAncestors)(x).some((q,re)=>I[re]!==q)?{x:0,y:0}:{x:R.width-L.width,y:R.height-L.height};return{x:L.left-ee.x,y:L.top-ee.y}}}}}}}]);
|