tocco-admin 3.16.48 → 3.16.49
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/changelog.md +4 -0
- package/dist/chunk-11211.c047320bb9aeb6a8afa8.js +1 -0
- package/dist/chunk-11281.6cca64a6b22ae66dec22.js +1 -0
- package/dist/chunk-12718.73a401c947f6e416dc96.js +1 -0
- package/dist/chunk-1387.db4ea7c5b9b4bafd0f31.js +1 -0
- package/dist/chunk-14406.193e89b3bab4a76ff64c.js +1 -0
- package/dist/{chunk-14663.51eca5c9fc96acb3d3fd.js → chunk-14663.421a08fcfef247d7bf23.js} +1 -1
- package/dist/chunk-15802.a2be5411a1917623b937.js +1 -0
- package/dist/chunk-1766.135ab067cfb193cad638.js +1 -0
- package/dist/chunk-19249.d09c10c7e5a9775ab4b4.js +1 -0
- package/dist/chunk-19592.3efeef352f175343cea0.js +1 -0
- package/dist/chunk-19822.3bc1e73e57bda3decdc5.js +1 -0
- package/dist/chunk-20047.d792862a5cea6bfdf859.js +1 -0
- package/dist/{chunk-8992.f25442915b57342ae038.js → chunk-21843.36ffd9b3a70cd48a2cc9.js} +1 -1
- package/dist/chunk-2188.f5e8e30b02d2ae9ddfc0.js +1 -0
- package/dist/{chunk-2682.cfc3b87ba3066a6b6a95.js → chunk-22030.64b8bc22892016507951.js} +1 -1
- package/dist/chunk-22284.bda827c47ee03f966640.js +1 -0
- package/dist/chunk-22354.38812eb1ede449619ddb.js +1 -0
- package/dist/chunk-22981.e78181d1033636d18f3f.js +1 -0
- package/dist/chunk-23575.c4abf260b4a67d8b2080.js +1 -0
- package/dist/chunk-24499.d1a3adb4a5690ef7b337.js +1 -0
- package/dist/chunk-2451.6c2305080b6f382a2949.js +1 -0
- package/dist/chunk-24522.ddd8bdae432cd57c7de1.js +1 -0
- package/dist/chunk-24854.06fa1b4ac5587f8ec330.js +1 -0
- package/dist/chunk-25039.1acecd0e2ec0d44298d7.js +1 -0
- package/dist/chunk-25705.7bf358fd8862526e98d9.js +1 -0
- package/dist/chunk-26335.74f8d237b4e65213f5f5.js +1 -0
- package/dist/chunk-26605.cd60bdd885abc7c18078.js +1 -0
- package/dist/chunk-2682.09ac910c9ceab98e77bc.js +1 -0
- package/dist/{chunk-27136.6cfc9a658884e7239020.js → chunk-27136.11820865bd2883ab08fc.js} +1 -1
- package/dist/chunk-27311.576c573d4457ca290eff.js +1 -0
- package/dist/chunk-28507.72bdf3fbdefe3bfa8356.js +1 -0
- package/dist/chunk-29072.189a4bab1c2f18bc7010.js +1 -0
- package/dist/chunk-29755.ba2998b8fe60f4242a51.js +1 -0
- package/dist/chunk-29848.90041f421b399b4707aa.js +1 -0
- package/dist/chunk-30470.fd8e1f081abc3ead40b0.js +1 -0
- package/dist/chunk-30897.9100b21a0b33ef44bc2d.js +1 -0
- package/dist/chunk-31255.41459bc59a226f9c90a8.js +1 -0
- package/dist/chunk-32503.9f6c51bfe378ab9b09ca.js +1 -0
- package/dist/chunk-33050.07638f00a2dc06c76e2c.js +1 -0
- package/dist/chunk-34049.d1b8ce43aebe7eb8947a.js +1 -0
- package/dist/chunk-34132.5a95f8d35fe5833f09f6.js +1 -0
- package/dist/chunk-34678.aaa34585cfca61060329.js +1 -0
- package/dist/chunk-35396.15ab865b1d9c518bb1c5.js +1 -0
- package/dist/chunk-37210.74c360042493c073221e.js +1 -0
- package/dist/chunk-38066.8ba3c6b29ec25be68960.js +1 -0
- package/dist/chunk-38223.fd731c22ae46cc61f787.js +1 -0
- package/dist/chunk-38992.6b954202ee6bfc78ded2.js +1 -0
- package/dist/chunk-39643.d74bf444dd7cc8a9d82a.js +1 -0
- package/dist/chunk-41170.2a6ada0270fb4abf2546.js +1 -0
- package/dist/chunk-42618.0a674e4ef753d6fa8da1.js +1 -0
- package/dist/chunk-42969.f187f9ba7e157c7a8004.js +1 -0
- package/dist/chunk-43481.93124e6c6275e732a451.js +1 -0
- package/dist/chunk-44417.9ddb64dacd512ee6c3d6.js +1 -0
- package/dist/chunk-45631.91ed376096079673828e.js +1 -0
- package/dist/chunk-45814.2d787e4c45ea4eed738b.js +1 -0
- package/dist/chunk-46187.64927d85fa8962de9d90.js +1 -0
- package/dist/chunk-46623.9947ca9f92b9854e4c19.js +1 -0
- package/dist/{chunk-47145.9666bf5242e5cd840334.js → chunk-47145.c210e286a9b1d68a5d4a.js} +1 -1
- package/dist/{chunk-47610.9cdb867d2d27052f5c60.js → chunk-47610.bc6611aa02eeec8db919.js} +1 -1
- package/dist/{chunk-7802.c073d9cde178c9ad0f54.js → chunk-48077.94b2bcbbf99c1b412395.js} +1 -1
- package/dist/chunk-48645.00d6e2c767722527c04b.js +1 -0
- package/dist/chunk-50603.db2d85c8277f5d4be8e6.js +1 -0
- package/dist/chunk-50681.5b2787f97b6cfa2f60a3.js +1 -0
- package/dist/chunk-51057.d3aff53d711b4dbe2a68.js +1 -0
- package/dist/chunk-51544.c7c47f31473765978095.js +99 -0
- package/dist/chunk-51776.40c741a093e66885ddbd.js +1 -0
- package/dist/chunk-5243.38ede90cafc48c03b1aa.js +1 -0
- package/dist/chunk-54855.b9137f7b280835d9a6ef.js +1 -0
- package/dist/chunk-55009.c94a27239babc4897a84.js +1 -0
- package/dist/{chunk-55208.e70a76de3f33670270e7.js → chunk-55208.af3b76b1fc6311cfd237.js} +1 -1
- package/dist/{chunk-55348.41e9f542487999e7455f.js → chunk-55348.686c175cb0e61f80a8f3.js} +1 -1
- package/dist/chunk-56470.556c2caaae71dbc1b9bd.js +1 -0
- package/dist/chunk-57217.b823974cd02852a084c8.js +1 -0
- package/dist/chunk-59899.81644b59bd81178ad0a1.js +1 -0
- package/dist/chunk-6147.af3872a1411da6fbf4ed.js +1 -0
- package/dist/chunk-61624.9df0bea262b6eb637d5c.js +1 -0
- package/dist/chunk-61777.288fa59c359172e6126d.js +1 -0
- package/dist/chunk-62575.b74e4d4776cba26445e1.js +1 -0
- package/dist/chunk-62797.d4f371619412d7768cdb.js +1 -0
- package/dist/chunk-63489.5a8dce1cb48833d5098f.js +1 -0
- package/dist/chunk-63493.3fb8d713d01a768e3b9d.js +1 -0
- package/dist/chunk-63659.1c034f19e5cb1b3bb845.js +6 -0
- package/dist/chunk-6396.8e97e330cabfd435e595.js +1 -0
- package/dist/chunk-64108.2dbbf1c6eafebb45dd0b.js +1 -0
- package/dist/chunk-6425.58c76096ff75c179bbd0.js +1 -0
- package/dist/chunk-64570.c5abfeda2d7189588444.js +1 -0
- package/dist/chunk-65201.7a20a96bc4b63cdebac4.js +1 -0
- package/dist/chunk-65402.7ab1c0dfe662f9bde6d3.js +1 -0
- package/dist/chunk-65408.38bc9ffc89865c6de993.js +1 -0
- package/dist/chunk-67744.a20db61a624bf24be4c8.js +1 -0
- package/dist/chunk-67772.5742c8d21b6a0d48b45b.js +1 -0
- package/dist/chunk-69395.5ae310358e8037e47cea.js +1 -0
- package/dist/chunk-69465.94bf8c54128357a98b12.js +1 -0
- package/dist/chunk-69640.67bd5723c8dec93c7d35.js +1 -0
- package/dist/{chunk-71306.a936c4b0e9b978916d67.js → chunk-71306.eccd63887ac7c3406abd.js} +1 -1
- package/dist/{chunk-72969.59b9bb9406979abd2ad4.js → chunk-72969.47092d634da9a6969ecf.js} +7 -7
- package/dist/chunk-74251.44b44efc01520f07e00b.js +1 -0
- package/dist/chunk-74933.ab405f32e2cff2cdd84d.js +1 -0
- package/dist/chunk-76284.254502b1d77c1de47af3.js +1 -0
- package/dist/chunk-76667.98deb701ea4b5031b79c.js +1 -0
- package/dist/chunk-77385.69a8e97aeb8a75f27884.js +1 -0
- package/dist/chunk-77801.0075955446d760439982.js +1 -0
- package/dist/chunk-77890.24784c3b08b996a228fa.js +1 -0
- package/dist/chunk-7802.59c80f4e7a6fe3aca2a1.js +1 -0
- package/dist/chunk-7813.f28415e6e0480720cab3.js +1 -0
- package/dist/chunk-79258.1b988912f1bb8efa5f13.js +1 -0
- package/dist/chunk-80569.04a73392ac26218c9fe7.js +1 -0
- package/dist/{chunk-83136.dec3b88f3927ec5b0d54.js → chunk-83136.809c2d87aac4cbf33a9c.js} +1 -1
- package/dist/chunk-83864.b63ee961a4df265a5280.js +1 -0
- package/dist/chunk-84567.f954e8bdfcf816a84898.js +1 -0
- package/dist/chunk-8485.7e12ce9ed24aeba2f5b7.js +1 -0
- package/dist/chunk-84899.0dc926df213a81bdf407.js +1 -0
- package/dist/chunk-86133.144af952341736a58372.js +1 -0
- package/dist/chunk-86275.24d26f4dd8ecff940178.js +1 -0
- package/dist/chunk-87528.a421714d48229639fa03.js +1 -0
- package/dist/{chunk-89182.b33e543dcd32234ab9b3.js → chunk-89182.3670d4924a5412a0de5f.js} +1 -1
- package/dist/chunk-8992.32a58c0540d1fa7ccaee.js +1 -0
- package/dist/chunk-90008.80de96aa57b9515e18b2.js +1 -0
- package/dist/chunk-90616.ec520e8875ef5e0517b7.js +1 -0
- package/dist/chunk-90731.035b07edeba90881e486.js +1 -0
- package/dist/chunk-90846.4d10be711987b973fdbc.js +1 -0
- package/dist/chunk-92789.a864d1fd6e4eb478c7b8.js +1 -0
- package/dist/{chunk-1766.2ce3c5eea8b4df4a5d42.js → chunk-93236.e1914e888f5ea1db182a.js} +1 -1
- package/dist/chunk-94194.2a78eae9bf6ec9dbcafb.js +1 -0
- package/dist/chunk-95409.830b15294582db6f05e9.js +1 -0
- package/dist/chunk-96332.f81441fdb08acd52a402.js +1 -0
- package/dist/chunk-96410.f3e8ccef9b74dd15e5cf.js +1 -0
- package/dist/chunk-96679.2ce8f980519d1894e256.js +1 -0
- package/dist/chunk-97359.9fea99651ccf00bfb6ab.js +1 -0
- package/dist/chunk-97536.7c308a35c1fb7335cde1.js +1 -0
- package/dist/chunk-98636.704c73c1056e301d04e6.js +1 -0
- package/dist/chunk-99359.c8b798bdd150da73d79b.js +1 -0
- package/dist/chunk-actions.85668fe88943b670e4d9.js +1 -0
- package/dist/chunk-code-editor.a9ce0b5dfe5c6224a935.js +1 -0
- package/dist/chunk-docs-actions.01fb99caf1e95cbe69bd.js +1 -0
- package/dist/chunk-phone-formatter.50199e325bcd29d91e58.js +1 -0
- package/dist/chunk-vendor-fontawesome.dd2be8558ad1a2bb14cd.js +7 -0
- package/dist/chunk-vendor-libphonenumber-js.11c5886c5f63e2afbde1.js +1 -0
- package/dist/ckeditor4/ckeditor-new.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/js/codemirror.addon.merge.min.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/js/codemirror.addons.min.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/js/codemirror.min.js +1 -1
- package/dist/index.js +78 -13
- package/package.json +1 -1
- package/dist/chunk-10561.201de36026c275f1e9af.js +0 -8
- package/dist/chunk-11211.926d9638327e0efad40e.js +0 -1
- package/dist/chunk-11281.576243eb67d0f56d5e28.js +0 -1
- package/dist/chunk-12260.6d09de73e7fe1ae9d72a.js +0 -1
- package/dist/chunk-15802.146075f3b6e0867dfb94.js +0 -1
- package/dist/chunk-19249.8692aacecaf00d03255c.js +0 -1
- package/dist/chunk-19592.5c79e7650797b40ff348.js +0 -1
- package/dist/chunk-20047.7e292bdc185653e20047.js +0 -1
- package/dist/chunk-21843.389fa58d1988f10127a2.js +0 -1
- package/dist/chunk-22030.fe79db6fd95d0b90cbf8.js +0 -1
- package/dist/chunk-22981.3fde02827aba40775960.js +0 -1
- package/dist/chunk-24499.a631aed256959430cd61.js +0 -1
- package/dist/chunk-2451.d8a73f1ea3d309b2514e.js +0 -1
- package/dist/chunk-24522.fbf1b70126485d175367.js +0 -1
- package/dist/chunk-24854.4e7379b40a481e724d8d.js +0 -1
- package/dist/chunk-25039.6019d09735e921cbc78e.js +0 -1
- package/dist/chunk-26335.2dc6db848213a1fbf863.js +0 -1
- package/dist/chunk-26605.2f25129f5f4770c729f6.js +0 -1
- package/dist/chunk-28507.61b1b50b51c1b0c9c733.js +0 -1
- package/dist/chunk-29072.b3fdfd9815fd7e1d0ce6.js +0 -1
- package/dist/chunk-29755.6c9218bc21f6ff34c232.js +0 -1
- package/dist/chunk-30470.6a67f86d48a5db19cef4.js +0 -1
- package/dist/chunk-30897.8a660b7a96c71fd003be.js +0 -1
- package/dist/chunk-31255.005592c481ce094dd183.js +0 -1
- package/dist/chunk-31985.2d57d01b09e8351790f9.js +0 -1
- package/dist/chunk-33050.f6c41b97edc485114855.js +0 -1
- package/dist/chunk-34678.4a3d6b9878d9177f1a13.js +0 -1
- package/dist/chunk-37210.f8445182dc028e794aa9.js +0 -1
- package/dist/chunk-38223.8dc9134b95f91f7729c8.js +0 -1
- package/dist/chunk-39643.f4fb264bb5df5a9d2d81.js +0 -1
- package/dist/chunk-41170.12580798be5b61a92bb8.js +0 -1
- package/dist/chunk-44417.df904fa45a8304efdaf9.js +0 -1
- package/dist/chunk-45631.5fd88296a8a66f3df698.js +0 -1
- package/dist/chunk-45814.10275f4079f1d0827ba7.js +0 -1
- package/dist/chunk-46187.afef3dafa925bc8ef13f.js +0 -1
- package/dist/chunk-46623.1279fca408d8eef8d565.js +0 -1
- package/dist/chunk-48077.2fb0b2742a962906b7b4.js +0 -1
- package/dist/chunk-51057.adb220a7470a2c9062d3.js +0 -1
- package/dist/chunk-5243.ee71f57c73e80f87629a.js +0 -1
- package/dist/chunk-55009.0d5da94e279cbdfe723a.js +0 -1
- package/dist/chunk-56470.982607cc9a4aa4d5ca5d.js +0 -1
- package/dist/chunk-57217.900f6c296a9f8afffa57.js +0 -1
- package/dist/chunk-59899.01d1bca17584ae227c9a.js +0 -1
- package/dist/chunk-6147.9a8a75f0197a1ecf99cd.js +0 -1
- package/dist/chunk-61777.531f6b5370cfff653af7.js +0 -1
- package/dist/chunk-62575.36e66bf2ce9d21db8e7e.js +0 -1
- package/dist/chunk-62797.768ca65582be64c0f354.js +0 -1
- package/dist/chunk-63489.06b07e0f45fd3448362a.js +0 -1
- package/dist/chunk-6396.6782db80cca3b5a9bca5.js +0 -1
- package/dist/chunk-64108.48d41ee44d4be7e5e319.js +0 -1
- package/dist/chunk-64570.f6edc0c6bf6cf77509c8.js +0 -1
- package/dist/chunk-65408.8ce27d20f7461341b72f.js +0 -1
- package/dist/chunk-66672.4d6c9d397b9c66c7df45.js +0 -1
- package/dist/chunk-67744.d9e9ab2d5681b49a4397.js +0 -1
- package/dist/chunk-67772.20f99232e9aca7a89724.js +0 -1
- package/dist/chunk-76667.3378264c896fd671408e.js +0 -1
- package/dist/chunk-77385.105a95ec12f71a39392d.js +0 -1
- package/dist/chunk-79258.3be81f3cc638458f0544.js +0 -1
- package/dist/chunk-80569.b397fa7e0bc8a6a30c74.js +0 -1
- package/dist/chunk-84567.c6459754fc12d4a43ea4.js +0 -1
- package/dist/chunk-86275.9bb476a380a6c78e366f.js +0 -1
- package/dist/chunk-90008.4e4800bb5dd8b5d8f190.js +0 -1
- package/dist/chunk-90616.2065ebaa4e700cb050cb.js +0 -1
- package/dist/chunk-90731.debf1d82ea8d120be7bd.js +0 -1
- package/dist/chunk-90846.1fa1ead8c15f4ad0f759.js +0 -1
- package/dist/chunk-92789.a651a8882173aeea9aaf.js +0 -1
- package/dist/chunk-93236.87b618124f4c2689bfcf.js +0 -1
- package/dist/chunk-94194.4acac5b27ec3980e20e9.js +0 -1
- package/dist/chunk-96332.7603317cb6651cd7ac3e.js +0 -1
- package/dist/chunk-96679.70f165a867060dea0dd4.js +0 -1
- package/dist/chunk-97359.7e1cbe178906dbe30827.js +0 -1
- package/dist/chunk-97536.39d7b0e335bb9b864cf6.js +0 -1
- package/dist/chunk-actions.36b776322dc214d52602.js +0 -1
- package/dist/chunk-code-editor.960c6f046a6cb72f10e2.js +0 -1
- package/dist/chunk-docs-actions.979889a1bd9083681102.js +0 -1
- package/dist/chunk-phone-formatter.426a7ad83073a3a9db88.js +0 -1
- package/dist/chunk-vendor-fontawesome.4e9b85f1cc93e25fa170.js +0 -7
- package/dist/chunk-vendor-libphonenumber-js.12d68aad9e4cc8110972.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[86275],{86275(e,t,n){n.d(t,{A:()=>Ur});var r={};n.r(r),n.d(r,{FIRE_TOUCHED:()=>je,FORM_SUBMISSION_FAILED:()=>Re,FORM_SUBMITTED:()=>Pe,LOAD_DETAIL_VIEW:()=>Ee,NAVIGATE_TO_ACTION:()=>_e,NAVIGATE_TO_CREATE:()=>Fe,SET_ENTITY:()=>Te,SET_ENTITY_MODEL:()=>ke,SET_FIELD_DEFINITIONS:()=>Ne,SET_FORM_DEFINITION:()=>ge,SET_LAST_SAVE:()=>we,SET_MARKED:()=>Le,SET_TOUCHED:()=>Ie,SUBMIT_FORM:()=>De,TOUCH_ALL_FIELDS:()=>Oe,UNLOAD_DETAIL_VIEW:()=>Se,UPDATE_MARKED:()=>Ce,fireTouched:()=>Ge,loadDetailView:()=>Ve,navigateToAction:()=>Ze,navigateToCreate:()=>Ye,setEntity:()=>Ue,setEntityModel:()=>He,setFieldDefinitions:()=>ze,setFormDefinition:()=>Me,setFormSubmissionFailed:()=>Xe,setFormSubmitted:()=>et,setLastSave:()=>Be,setMarked:()=>$e,setTouched:()=>qe,submitForm:()=>Je,touchAllFields:()=>Ke,unloadDetailView:()=>We,updateMarked:()=>Qe});var i=n(64467),o=n(5556),a=n.n(o),s=n(6730),c=n(66590),u=n(10582),l=n(97699),d=n(12199),f=n(15277),p=n(42851),y=n(6192),m=n(11341),v=n(44606),A=n(17678),x=n(93700),h=n(41085),b=n(71468),E=n(91344),g=n(4883),T=n(87046),D=n(88208),w=n(41481),k=n(20652),S=n(50075),j=n(36949);const I="create",O="update";const F={NONE:"none",REDUCED:"reduced",FULL:"full"};var N,_,C,L,R,P,V=function(e,t){var n=t.useNiceFields;return e===I?F.NONE:n?F.FULL:F.REDUCED},M=["create_timestamp","update_timestamp","create_user","update_user","version"],U=function(e,t){var n=V(e,t),r=t.keyField;switch(n){case F.FULL:return[r].concat(M);case F.REDUCED:return[r];default:return[]}},J=n(57528),B=n(51510),H=n(26166),W=n(27113),G=n(5016),q=n(47616),K=n(33090),Y=B.Ay.div.withConfig({displayName:"StyledFooterWrapper"})(N||(N=(0,J.A)(["\n max-width: 650px;\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: ",";\n margin-right: ",";\n\n && {\n * {\n color: ",";\n font-size: ",";\n }\n }\n"])),H.A.font(0),H.A.font(0),W.D.shade2,H.A.font(-.8)),z=B.Ay.div.withConfig({displayName:"StyledFooterItemWrapper"})(_||(_=(0,J.A)(["\n display: flex;\n"]))),Z=(0,B.Ay)(G.oY).withConfig({displayName:"StyledFooterItemLabel"})(C||(C=(0,J.A)(["\n && {\n margin-right: ",";\n font-weight: ",";\n ","\n }\n"])),H.A.space(-1.37),q.A.fontWeight("bold"),K.s),Q=B.Ay.span.withConfig({displayName:"StyledFooterItemValue"})(L||(L=(0,J.A)(["\n flex: 1;\n overflow: hidden;\n"]))),$=B.Ay.span.withConfig({displayName:"StyledTimestampValueWrapper"})(R||(R=(0,J.A)(["\n display: flex;\n"]))),X=(0,B.Ay)(G.oY).withConfig({displayName:"StyledTimestampRelativeValue"})(P||(P=(0,J.A)(["\n && {\n margin-left: ",";\n }\n"])),H.A.space(-1.37)),ee=n(74848);const te=function(e){var t=e.labelId,n=e.valueComponent;return(0,ee.jsxs)(z,{children:[(0,ee.jsxs)(Z,{children:[(0,ee.jsx)(T.sA,{id:t}),":"]}),(0,ee.jsx)(Q,{children:(0,ee.jsx)(n,{})})]})};var ne=n(56375);const re=function(e){var t=e.value;return(0,ee.jsx)(ne.Ay.Span,{children:t})};var ie=n(76956),oe=n(81792);const ae=function(e){var t=e.value,n=oe.A.selectUnit(new Date(t));return(0,ee.jsxs)($,{children:[(0,ee.jsx)(ie.A,{value:t,type:"datetime"}),(0,ee.jsxs)(X,{children:["(",(0,ee.jsx)(T.uZ,{value:n.diffValue,unit:n.unit}),")"]})]})};const se=function(e){var t=e.entity,n=e.keyField;return(0,ee.jsxs)(Y,{children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)(te,{labelId:"client.entity-detail.footer.created",valueComponent:function(){return(0,ee.jsx)(ae,{value:t.paths.create_timestamp.value})}}),(0,ee.jsx)(te,{labelId:"client.entity-detail.footer.by",valueComponent:function(){return(0,ee.jsx)(re,{value:t.paths.create_user.value})}})]}),(0,ee.jsxs)("div",{children:[(0,ee.jsx)(te,{labelId:"client.entity-detail.footer.updated",valueComponent:function(){return(0,ee.jsx)(ae,{value:t.paths.update_timestamp.value})}}),(0,ee.jsx)(te,{labelId:"client.entity-detail.footer.by",valueComponent:function(){return(0,ee.jsx)(re,{value:t.paths.update_user.value})}})]}),(0,ee.jsxs)("div",{children:[(0,ee.jsx)(te,{labelId:"client.entity-detail.footer.version",valueComponent:function(){return(0,ee.jsx)(re,{value:t.paths.version.value})}}),(0,ee.jsx)(te,{labelId:"client.entity-detail.footer.key",valueComponent:function(){return(0,ee.jsx)(re,{value:t.paths[n].value})}})]})]})};const ce=function(e){var t=e.entity,n=e.keyField;return(0,ee.jsx)(Y,{children:(0,ee.jsx)("div",{children:(0,ee.jsx)(te,{labelId:"client.entity-detail.footer.key",valueComponent:function(){return(0,ee.jsx)(re,{value:t.paths[n].value})}})})})};const ue=function(e){var t=e.mode,n=e.entity,r=e.entityModel;switch(V(t,r)){case F.FULL:return(0,ee.jsx)(se,{entity:n,keyField:r.keyField});case F.REDUCED:return(0,ee.jsx)(ce,{entity:n,keyField:r.keyField});default:return null}};const le=(0,b.Ng)((function(e){return{mode:e.input.mode,entity:e.entityDetail.entity,entityModel:e.entityDetail.entityModel}}))(ue);var de,fe=n(46306),pe=n(77008),ye=function(e){return null==e?void 0:e.replace(".","_")},me=function(e,t,n,r,i,o){return"".concat(e,"-subgrid-").concat(t,"-").concat(n,"-").concat(r,"-").concat(i,"-").concat(o)};function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xe=B.Ay.div.withConfig({displayName:"StyledListApp"})(de||(de=(0,J.A)(["\n width: 100%;\n"])));const he=function(e){var t=e.detailFormName,n=e.formField,r=e.appId,i=e.entityName,o=e.entityKey,a=e.limit,s=void 0===a?25:a,c=e.showSearchForm,u=e.navigationStrategy,l=e.onRowClick,d=e.navigateToCreate,f=e.emitAction,p=e.locale,y=e.modifyFormDefinition,m=e.actionAppComponent,v=e.reportIds,A=ye(n.formSuffix),x="".concat(t,"_").concat(A),h=me(r,i,o,n.targetEntity,A,n.reverseRelation);return(0,ee.jsx)(xe,{children:(0,ee.jsx)(fe.Ay,{id:h,entityName:n.targetEntity,formName:x,limit:s,searchFormType:c?"simple_advanced":"none",navigationStrategy:u,showLink:!0,onRowClick:function(e){l&&l({id:e.id,gridName:n.formSuffix,relationName:n.path})},onNavigateToCreate:function(){d(n.path)},parent:Ae(Ae({key:o,model:i},n.reverseRelation?{reverseRelationName:n.reverseRelation,relationName:n.path}:{disableRelationNavigation:!0}),{},{formSuffix:n.formSuffix}),emitAction:f,store:pe.A.viewInfoSelector(h).store,onStoreCreate:function(e){pe.A.persistViewInfo(h,{store:e})},scrollBehaviour:"none",locale:p,modifyFormDefinition:y,actionAppComponent:m,reportIds:v,detailApp:Ur,isSubGrid:!0})})},be=he;var Ee="entityDetail/LOAD_DETAIL_VIEW",ge="entityDetail/SET_FORM_DEFINITION",Te="entityDetail/SET_ENTITY",De="entityDetail/SUBMIT_FORM",we="entityDetail/SET_LAST_SAVE",ke="entityDetail/SET_ENTITY_MODEL",Se="entityDetail/UNLOAD_DETAIL_VIEW",je="entityDetail/FIRE_TOUCHED",Ie="entityDetail/SET_TOUCHED",Oe="entityDetail/TOCH_ALL_FIELDS",Fe="entityDetail/NAVIGATE_TO_CREATE",Ne="entityDetail/SET_FIELD_DEFINITIONS",_e="entityDetail/NAVIGATE_TO_ACTION",Ce="entityDetail/UPDATE_MARKED",Le="entityDetail/SET_MARKED",Re="entityDetail/FORM_SUBMISSION_FAILED",Pe="entityDetail/FORM_SUBMITTED",Ve=function(){return{type:Ee}},Me=function(e){return{type:ge,payload:{formDefinition:e}}},Ue=function(e){return{type:Te,payload:{entity:e}}},Je=function(e){return{type:De,payload:{followUp:e}}},Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();return{type:we,payload:{lastSave:e}}},He=function(e){return{type:ke,payload:{entityModel:e}}},We=function(){return{type:Se}},Ge=function(e){return{type:je,payload:{touched:e}}},qe=function(e){return{type:Ie,payload:{touched:e}}},Ke=function(){return{type:Oe}},Ye=function(e){return{type:Fe,payload:{relationName:e}}},ze=function(e){return{type:Ne,payload:{fieldDefinitions:e}}},Ze=function(e,t){return{type:_e,payload:{definition:e,selection:t}}},Qe=function(e,t,n){return{type:Ce,payload:{entityName:e,entityId:t,marked:n}}},$e=function(e){return{type:Le,payload:{marked:e}}},Xe=function(){return{type:Re}},et=function(){return{type:Pe}},tt={onRowClick:function(e){return d.A.fireExternalEvent("onSubGridRowClick",{id:e.id,gridName:e.gridName,relationName:e.relationName})},navigateToCreate:Ye,emitAction:function(e){return s.A.dispatchEmittedAction(e)}};const nt=(0,b.Ng)((function(e,t){return{appId:e.input.appId,entityKey:e.entityDetail.entity.key,entityName:e.entityDetail.entity.model,detailFormName:e.entityDetail.formDefinition.id,navigationStrategy:e.input.navigationStrategy,locale:e.app.locale,modifyFormDefinition:e.input.modifyFormDefinition,actionAppComponent:e.input.actionAppComponent,reportIds:e.input.reportIds}}),tt)(be),rt=function(e,t){return(0,ee.jsx)(nt,{formField:e,showSearchForm:e.showSearchForm,limit:e.limit||void 0},t)};var it,ot,at,st,ct,ut=n(3634),lt=B.Ay.div.withConfig({displayName:"StyledErrorItemWrapper"})(it||(it=(0,J.A)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n"])),H.A.space(.4));const dt=function(e){var t=e.formErrors,n=null,r=[],i=m.A.formErrorsUtil.hasFieldErrors(t),o=m.A.formErrorsUtil.hasValidatorErrors(t),a=m.A.formErrorsUtil.hasRelatedEntityErrors(t),s=m.A.formErrorsUtil.getValidatorErrors(t),c=m.A.formErrorsUtil.getRelatedEntityErrorsCompact(t);if(m.A.formErrorsUtil.hasOutdatedError(t)){var u=m.A.formErrorsUtil.getOutdatedError(t),l=oe.A.selectUnit(new Date(u.updateTimestamp)),d="client.entity-detail.".concat(u.sameEntity?"outdated":"relatedOutdated","ErrorTitle");r.push((0,ee.jsxs)(lt,{children:[(0,ee.jsx)(ne.Ay.H5,{children:(0,ee.jsx)(T.sA,{id:d,values:{model:u.model,key:u.key}})}),(0,ee.jsx)(T.sA,{id:"client.entity-detail.outdatedErrorDescription",values:{ago:(0,ee.jsx)(T.uZ,{value:l.diffValue,unit:l.unit}),user:u.updateUser}})]},"outDatedError"))}return i&&r.push(o||a?at||(at=(0,ee.jsx)(lt,{children:(0,ee.jsx)(ne.Ay.H5,{children:(0,ee.jsx)(T.sA,{id:"client.entity-detail.invalidFieldsError"})})},"hasFieldErrors")):ot||(ot=(0,ee.jsx)(lt,{children:(0,ee.jsx)(T.sA,{id:"client.entity-detail.invalidFieldsError"})},"hasFieldErrors"))),o&&r.push((0,ee.jsxs)(lt,{children:[st||(st=(0,ee.jsx)(ne.Ay.H5,{children:(0,ee.jsx)(T.sA,{id:"client.entity-detail.validatorErrors"})})),s.map((function(e){return(0,ee.jsx)(m.A.ErrorItem,{message:e},"validator-".concat(e))}))]},"hasValidatorErrors")),a&&r.push((0,ee.jsxs)(lt,{children:[ct||(ct=(0,ee.jsx)(ne.Ay.H5,{children:(0,ee.jsx)(T.sA,{id:"client.entity-detail.invalidRelationErrors"})})),c.map((function(e){return(0,ee.jsx)(m.A.ErrorItem,{message:e},"related-".concat(e))}))]},"hasRelatedEntityErrors")),r.length>0&&(n=(0,ee.jsx)(ee.Fragment,{children:r.map((function(e){return e}))})),n};var ft,pt,yt=n(33150),mt=n(57488),vt=(0,B.Ay)(yt.A).withConfig({displayName:"StyledSaveButton"})(ft||(ft=(0,J.A)(["\n border: 1px solid transparent;\n ","\n ","\n display: block;\n"])),(function(e){var t=e.hasErrors,n=e.theme;return t&&"\n border-color: ".concat(n.colors.signal.danger,";\n background-color: ").concat(n.colors.paper,";\n && {\n color: ").concat("dark"===n.name?n.colors.text:n.colors.signal.danger,";\n }\n &:hover {\n background-color: ").concat(n.colors.signal.danger,";\n }\n ")}),(function(e){var t=e.theme;return"\n &:hover {\n color: ".concat("dark"===t.name?t.colors.text:t.colors.paper,";\n }\n ")})),At=B.Ay.span.withConfig({displayName:"StyledActionSpan"})(pt||(pt=(0,J.A)(["\n cursor: pointer;\n display: flex;\n height: 100%;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n &:hover {\n color: ",";\n }\n ","\n"])),mt.t7.color("secondaryLight"),(function(e){var t=e.marked,n=e.theme;return t&&"color: ".concat(n.colors.secondary,";")}));const xt=function(e){var t=e.submitting,n=e.mode,r=e.hasErrors,i=e.formErrors,o=e.icon,a=e.readonly,s=e.label;return n!==I&&a?null:(0,ee.jsx)(ut.A,{content:r?(0,ee.jsx)(dt,{formErrors:i}):null,placement:"bottom",children:(0,ee.jsx)(vt,{"data-cy":"btn-detail-form_submit",id:"detail-save_button",disabled:t,ink:"primary",label:s,look:r?"flat":"raised",pending:t,type:"submit",hasErrors:r,icon:r?"floppy-disk-circle-xmark":o})})};var ht={submitForm:Je};const bt=(0,b.Ng)(null,ht)((function(e){var t=e.submitting,n=e.mode,r=e.hasErrors,i=e.icon,o=e.label,a=e.formErrors,s=e.submitForm,c=e.properties,u=e.readonly;return n!==I&&u?null:(0,ee.jsx)(ut.A,{content:r?(0,ee.jsx)(dt,{formErrors:a}):null,placement:"bottom",children:(0,ee.jsx)(vt,{"data-cy":"btn-detail-form_advanced-submit",id:"detail-advanced_save_button",disabled:t||r,look:"raised",label:o,icon:i,onClick:function(){return s({action:null==c?void 0:c.action})}})})}));var Et=n(5544),gt=n(64116),Tt={updateMarked:Qe};const Dt=(0,b.Ng)((function(e){return{entityName:e.input.entityName,entityId:e.input.entityId,marked:e.entityDetail.marked}}),Tt)((function(e){var t=e.entityName,n=e.entityId,r=e.marked,i=e.updateMarked,o=(0,g.useState)(!1),a=(0,Et.A)(o,2),s=a[0],c=a[1];(0,g.useEffect)((function(){r||c(!1)}),[r]);return(0,ee.jsx)(ne.Ay.Span,{children:(0,ee.jsx)(At,{marked:r,onClick:function(e){e.stopPropagation(),i(t,n,!r)},onMouseEnter:function(){return c(!0)},onMouseLeave:function(){return c(!1)},children:(0,ee.jsx)(gt.A,{icon:r||s?"star-full":"star"})})})}));var wt,kt,St,jt,It,Ot=B.Ay.form.withConfig({displayName:"StyledForm"})(wt||(wt=(0,J.A)(["\n display: flex;\n flex-direction: column;\n padding-bottom: ",";\n height: 100%;\n\n ","\n"])),H.A.space(-.5),(function(e){return"inline"===e.scrollBehaviour&&"overflow-y: auto;"})),Ft=(0,B.Ay)(yt.A).withConfig({displayName:"StyledSaveButton"})(kt||(kt=(0,J.A)(["\n ","\n display: block;\n"])),(function(e){return e.hasErrors&&"\n background-color: ".concat(mt.t7.color("paper"),";\n ")})),Nt=(B.Ay.div.withConfig({displayName:"StyledActionWrapper"})(St||(St=(0,J.A)(["\n "," {\n width: 100%;\n max-width: fit-content;\n justify-content: center;\n box-sizing: border-box;\n\n > * {\n overflow: hidden;\n }\n }\n"])),Ft),B.Ay.span.withConfig({displayName:"StyledActionSpan"})(jt||(jt=(0,J.A)(["\n cursor: pointer;\n display: flex;\n height: 100%;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n &:hover {\n color: ",";\n }\n ","\n"])),mt.t7.color("secondaryLight"),(function(e){var t=e.marked,n=e.theme;return t&&"color: ".concat(n.colors.secondary,";")})),n(60436)),_t=n(5287),Ct=n.n(_t),Lt=function(e){var t=Object.entries(e).filter((function(e){return(0,Et.A)(e,2)[1].writable})).map((function(e){return(0,Et.A)(e,1)[0]})),n=Object.entries(e).filter((function(e){var t=(0,Et.A)(e,2)[1];return"entity"===t.type&&null!==t.value})).flatMap((function(e){var t=(0,Et.A)(e,2),n=t[0],r=t[1];return Lt(r.value.paths).map((function(e){return"".concat(n,".").concat(e)}))}));return[].concat((0,Nt.A)(t),(0,Nt.A)(n))};function Rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Vt=(0,k.A)({form:"detailForm",destroyOnUnmount:!1})((function(e){var t=e.fireTouched,n=e.dirty,r=e.submitting,o=e.mode,a=e.formErrors,s=e.valid,c=e.submitForm,u=e.entity,l=e.formDefinition,d=e.fieldDefinitions,f=e.formValues,p=e.anyTouched,y=e.form,v=e.customRenderedActions,A=e.scrollBehaviour,x=e.entityModel,h=e.labelPosition,b=e.hideFooter,E=e.formId,T=(0,g.useRef)(null);S.A.useAutofocus(T);var D=m.A.hooks.useFormEvents({submitForm:c});(0,g.useEffect)((function(){t(n)}),[n,t]);var w=!function(e,t){var n=Lt(e),r=t.filter((function(e){return!e.readonly})).map((function(e){return e.path}));return Ct()(n,r).length>0}(u.paths,d),k=(0,g.useMemo)((function(){return Pt({save:function(e){return(0,ee.jsx)(xt,Pt({submitting:r,mode:o,hasErrors:!s&&p,formErrors:a,readonly:w},e))},save_with_follow_up:function(e){return(0,ee.jsx)(bt,Pt({submitting:r,mode:o,hasErrors:!s&&p,formErrors:a,readonly:w},e))},mark:function(e){return(0,ee.jsx)(Dt,Pt({},e))}},v)}),[r,o,s,p,a,v,w]),I=j.A.isInAdminEmbedded()&&!b;return(0,ee.jsxs)(Ot,Pt(Pt({},D),{},{ref:T,scrollBehaviour:A,children:[(0,ee.jsx)(m.A.FormBuilder,{entity:u,formName:y,formId:E,formDefinition:l,formValues:f,fieldMappingType:l.readOnly?"readonly":"editable",mode:o,componentMapping:(0,i.A)({},m.A.componentTypes.SUB_TABLE,rt),customRenderedActions:k,entityModel:x,labelPosition:h,readonly:"create"!==o&&w}),I&&(It||(It=(0,ee.jsx)(le,{})))]}))}));var Mt={submitForm:Je,fireTouched:Ge,logError:l.A.logError};const Ut=(0,b.Ng)((function(e){return{customRenderedActions:e.input.customRenderedActions,labelPosition:e.input.labelPosition,formDefinition:e.entityDetail.formDefinition,fieldDefinitions:e.entityDetail.fieldDefinitions,entity:e.entityDetail.entity,formValues:(0,w.A)("detailForm")(e),formErrors:m.A.selectors.getFormErrors("detailForm")(e),formInitialValues:(0,E.A)("detailForm")(e),lastSave:e.entityDetail.lastSave,scrollBehaviour:e.input.scrollBehaviour,entityModel:e.entityDetail.entityModel,hideFooter:e.input.hideFooter,formId:"".concat(e.input.entityName,"_").concat(e.input.formName,"_detail")}}),Mt)(Vt);const Jt=function(e){var t=e.unloadDetailView,n=e.mode,r=e.formInitialValues,i=e.fieldDefinitions,o=e.formDefinition;(0,g.useEffect)((function(){return function(){t()}}),[t]);var a,s=m.A.hooks.useAsyncValidation({formInitialValues:r,fieldDefinitions:i,formDefinition:o,mode:n}),c=m.A.hooks.useSyncValidation({fieldDefinitions:i,formDefinition:o}),u=(0,T.tz)();return(0,ee.jsx)(D.A,{required:[r],loadingText:(a="client.entity-detail.loadingText",u.formatMessage({id:a})),children:(0,ee.jsx)(Ut,{mode:n,validate:c,asyncValidate:s,asyncBlurFields:m.A.getAsyncBlurFields(i)})})};var Bt={unloadDetailView:We,logError:l.A.logError};const Ht=(0,b.Ng)((function(e,t){return{entityName:e.input.entityName,entityId:e.input.entityId,mode:e.input.mode,entityModel:e.entityDetail.entityModel,formDefinition:e.entityDetail.formDefinition,fieldDefinitions:e.entityDetail.fieldDefinitions,formInitialValues:(0,E.A)("detailForm")(e)}}),Bt)(Jt);var Wt=n(54756),Gt=n.n(Wt),qt=n(69917);const Kt={new:Gt().mark((function e(){return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,qt.yJ)(Ye());case 1:case"end":return e.stop()}}),e)})),fullscreen:Gt().mark((function e(t,n){return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,qt.yJ)(Ze(t,n));case 1:case"end":return e.stop()}}),e)}))};var Yt=n(29756),zt=n(61159),Zt=n(27399),Qt=n(44383),$t=n.n(Qt),Xt=n(41472),en=n(65728),tn=n(78605),nn=n(25544),rn=n(93750),on=n(83350),an=n(53971),sn=n(25212),cn=n(81933);function un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return Gt().mark((function r(){var i,o,a;return Gt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i={method:"PATCH",queryParams:{_paths:n.join(","),_disableDefaults:!0},body:e,acceptedErrorCodes:["VALIDATION_FAILED"],acceptedStatusCodes:[404,409]},o="entities/2.0/".concat(e.model,"/").concat(e.key),r.next=1,(0,qt.T1)(rn.A.requestSaga,o,i);case 1:if("VALIDATION_FAILED"!==(a=r.sent).body.errorCode){r.next=2;break}throw new cn.n(m.A.validationErrorToFormError(e,t,a.body.errors));case 2:if(409!==a.status||!a.body.information){r.next=3;break}throw new rn.A.InformationError(a.body.information);case 3:return r.abrupt("return",a.body);case 4:case"end":return r.stop()}}),r)}))()}function ln(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return Gt().mark((function i(){var o,a,s,c,u;return Gt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={method:"POST",queryParams:{_paths:r.join(","),_disableDefaults:!0},body:e,acceptedErrorCodes:["VALIDATION_FAILED"],acceptedStatusCodes:[403,409]},a=(null==n?void 0:n.createEndpoint)||"entities/2.0/".concat(e.model),i.next=1,(0,qt.T1)(rn.A.requestSaga,a,o);case 1:if(201!==(s=i.sent).status){i.next=2;break}return c=s.headers.get("Location"),u=c.split("/").pop(),i.abrupt("return",u);case 2:if(!s.body||"VALIDATION_FAILED"!==s.body.errorCode){i.next=3;break}throw new cn.n(m.A.validationErrorToFormError(e,t,s.body.errors));case 3:if(403!==s.status){i.next=4;break}throw new rn.A.ForbiddenException;case 4:if(409!==s.status||!s.body.information){i.next=5;break}throw new rn.A.InformationError(s.body.information);case 5:throw new Error("unexpected error during save",s);case 6:case"end":return i.stop()}}),i)}))()}function dn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var pn=Gt().mark(Un),yn=Gt().mark(Bn),mn=Gt().mark(Hn),vn=Gt().mark(Wn),An=Gt().mark(Gn),xn=Gt().mark(qn),hn=Gt().mark(Kn),bn=Gt().mark(Yn),En=Gt().mark(Zn),gn=Gt().mark(Qn),Tn=Gt().mark($n),Dn=Gt().mark(Xn),wn=Gt().mark(tr),kn=Gt().mark(nr),Sn=Gt().mark(or),jn=Gt().mark(ar),In=Gt().mark(cr),On=Gt().mark(pr),Fn=Gt().mark(yr);function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cn=function(e,t){var n;return null===(n=e.form[t])||void 0===n?void 0:n.initial},Ln=function(e){return e.entityDetail},Rn=function(e){return e.input},Pn=function(e){return e.app.messages},Vn="detailForm",Mn={formId:Vn,stateSelector:function(e){return _n(_n({},Rn(e)),Ln(e))}};function Un(){return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,qt.Q7)([(0,qt.p8)(u.A.INPUT_CHANGED,Jn),(0,qt.p8)(Ee,Yn),(0,qt.p8)(Se,qn),(0,qt.p8)(Oe,m.A.sagasUtils.touchAllFields,Mn),(0,qt.jP)(De,Xn),(0,qt.jP)(je,er),(0,qt.jP)(Fe,lr),(0,qt.jP)(nn.A.REMOTE_EVENT,pr),(0,qt.p8)(_e,dr),(0,qt.p8)(Ce,sr),(0,qt.p8)(c.A.actions.ACTION_INVOKED,ur),(0,qt.jP)(en.Ay.CHANGE,tr),(0,qt.jP)(en.Ay.INITIALIZE,tr)]);case 1:case"end":return e.stop()}}),pn)}function Jn(e){var t=e.payload;return Gt().mark((function e(){var n,r,i;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.input,r=Object.keys(n),i=["entityName","entityId","formName","mode","defaultValues"],!r.some((function(e){return i.includes(e)}))){e.next=2;break}return e.next=1,(0,qt.yJ)(We());case 1:return e.next=2,(0,qt.yJ)(Ve());case 2:case"end":return e.stop()}}),e)}))()}function Bn(e,t,n,r){var i,o,a,s,c,u,l,d;return Gt().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=1,(0,qt.Lt)(Rn);case 1:return i=f.sent,o=i.modifyFormDefinition,a=i.reportIds,f.next=2,(0,qt.T1)(rn.A.fetchForm,e,t);case 2:if(s=f.sent,!o){f.next=4;break}return f.next=3,(0,qt.T1)(o,s,{entityName:n,entityId:r});case 3:d=f.sent,f.next=5;break;case 4:d=s;case 5:return c=d,f.next=6,(0,qt.T1)(Hn,a,n,c);case 6:return u=f.sent,f.next=7,(0,qt.yJ)(Me(u));case 7:return f.next=8,(0,qt.T1)(m.A.getFieldDefinitions,u);case 8:return l=f.sent,f.next=9,(0,qt.yJ)(ze(l));case 9:return f.abrupt("return",{formDefinition:u,fieldDefinitions:l});case 10:case"end":return f.stop()}}),yn)}function Hn(e,t,n){var r,i,o,a;return Gt().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!((null==e?void 0:e.length)>0)){s.next=5;break}return s.next=1,(0,qt.yJ)(v.A.loadReports(e,t,"detail"));case 1:return s.next=2,(0,qt.s)(v.A.SET_REPORTS);case 2:return r=s.sent,i=r.payload,s.next=3,(0,qt.Lt)(Pn);case 3:return o=s.sent,a=o["client.actiongroup.output"],s.next=4,(0,qt.T1)(m.A.addReports,n,i.reports,a);case 4:return s.abrupt("return",s.sent);case 5:return s.abrupt("return",n);case 6:case"end":return s.stop()}}),mn)}function Wn(e){var t,n,i,o,a,s,c;return Gt().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=1,(0,qt.Lt)(Rn);case 1:return t=u.sent,n=t.entityName,i=t.entityId,o={entityModel:n,keys:[i]},u.next=2,(0,qt.T1)(rn.A.requestSaga,"client/delete/permissions",{method:"POST",body:o,acceptedStatusCodes:[403]});case 2:if(403!==(a=u.sent).status&&(200!==a.status||a.body.entities.some((function(e){return e.hasDeletePermission})))){u.next=4;break}return s=qt.yJ,c=r,u.next=3,(0,qt.T1)(m.A.removeActions,e,"delete");case 3:return u.next=4,s(c.setFormDefinition.call(c,u.sent));case 4:case"end":return u.stop()}}),vn)}function Gn(e,t,n){var r,i,o,a,s,c,u,l;return Gt().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=1,(0,qt.T1)(m.A.getUsedPaths,n,(function(e){return!0!==e.pseudoField}));case 1:return r=d.sent,d.next=2,(0,qt.Lt)(Rn);case 2:return i=d.sent,o=i.mode,d.next=3,(0,qt.Lt)(Ln);case 3:return a=d.sent,s=a.entityModel,d.next=4,(0,qt.T1)(U,o,s);case 4:return c=d.sent,u=[].concat((0,Nt.A)(r),(0,Nt.A)(c)),d.next=5,(0,qt.T1)(rn.A.fetchEntity,e,t,{paths:u});case 5:return l=d.sent,d.next=6,(0,qt.yJ)(Ue(l));case 6:return d.abrupt("return",l);case 7:case"end":return d.stop()}}),An)}function qn(){return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,qt.yJ)(Xt.A.destroy(Vn));case 1:return e.next=2,(0,qt.yJ)(Ue({}));case 2:case"end":return e.stop()}}),xn)}function Kn(e){var t;return Gt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,qt.T1)(rn.A.fetchModel,e);case 1:return t=n.sent,n.next=2,(0,qt.yJ)(He(t));case 2:return n.abrupt("return",t);case 3:case"end":return n.stop()}}),hn)}function Yn(){var e,t,n,r,i,o,a,s,c,u,l,d,f,p,y,v,A,x,h;return Gt().wrap((function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=1,(0,qt.Lt)(Rn);case 1:return e=b.sent,t=e.entityName,n=e.entityId,r=e.formName,i=e.mode,o=e.defaultValues,a=e.modifyEntityPaths,s=e.initialAction,b.next=2,(0,qt.T1)(Kn,t);case 2:return c=b.sent,b.next=3,(0,qt.T1)(Bn,r,i,t,n);case 3:if(u=b.sent,l=u.fieldDefinitions,d=u.formDefinition,i!==I){b.next=12;break}return b.next=4,(0,qt.yJ)(Ue({paths:{},model:t}));case 4:return b.next=5,(0,qt.T1)(m.A.getDefaultValues,l);case 5:if(f=b.sent,!o){b.next=7;break}return b.next=6,(0,qt.T1)(m.A.transformInputValues,o,c);case 6:h=b.sent,b.next=8;break;case 7:h={};case 8:return p=h,y=_n(_n({},f),p),v=a?_n({},a({})):{},b.next=9,(0,qt.T1)(an.A.getFlattenEntity,{model:t,paths:v});case 9:return A=b.sent,b.next=10,(0,qt.T1)(m.A.entityToFormValues,_n(_n({},A),y),l);case 10:return x=b.sent,b.next=11,(0,qt.yJ)(Xt.A.initialize(Vn,x));case 11:b.next=13;break;case 12:return b.next=13,(0,qt.T1)(rr);case 13:if(!s){b.next=14;break}return b.next=14,(0,qt.T1)(yr,d,s);case 14:if(!zn(null==d?void 0:d.children)){b.next=15;break}return b.next=15,(0,qt.T1)(Wn,d);case 15:case"end":return b.stop()}}),bn)}var zn=function(e){var t;return null==e||null===(t=e.find((function(e){return e.componentType===m.A.componentTypes.ACTION_BAR})))||void 0===t||null===(t=t.children)||void 0===t?void 0:t.some((function(e){return"delete"===e.id}))};function Zn(e,t){return Gt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,qt.T1)(un,e,t);case 1:if(404!==n.sent.status){n.next=3;break}return n.next=2,(0,qt.yJ)(d.A.fireExternalEvent("onEntityDeleted"));case 2:n.next=8;break;case 3:return n.next=4,(0,qt.T1)(rr);case 4:return n.next=5,(0,qt.yJ)(d.A.fireExternalEvent("onEntityUpdated"));case 5:return n.next=6,(0,qt.T1)(nr,"success","saveSuccessfulTitle","saveSuccessfulMessage");case 6:return n.next=7,(0,qt.yJ)(Be());case 7:return n.next=8,(0,qt.yJ)(Xt.A.stopSubmit(Vn));case 8:case"end":return n.stop()}}),En)}function Qn(e,t,n){var r,i,o;return Gt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=1,(0,qt.T1)(m.A.sagasUtils.getCurrentEntityState,Mn);case 1:return r=a.sent,i=r.formDefinition,a.next=2,(0,qt.T1)(ln,e,t,i);case 2:return o=a.sent,a.next=3,(0,qt.yJ)(d.A.fireExternalEvent("onEntityCreated",{id:o,followUp:n}));case 3:return a.next=4,(0,qt.T1)(nr,"success","createSuccessfulTitle","createSuccessfulMessage");case 4:case"end":return a.stop()}}),gn)}function $n(){var e,t,n,r,i,o;return Gt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=1,(0,qt.T1)(m.A.sagasUtils.getCurrentEntityState,Mn);case 1:return e=a.sent,t=e.formValues,n=e.initialValues,r=e.mode,i=e.fieldDefinitions,o=e.formDefinition,a.next=2,(0,qt.T1)(m.A.submitValidation,t,n,i,o,r);case 2:case"end":return a.stop()}}),Tn)}function Xn(e){var t,n,r,i,o,a,s,c,u,l,d;return Gt().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,f.next=1,(0,qt.Lt)((0,tn.A)(Vn));case 1:if(f.sent){f.next=4;break}return f.next=2,(0,qt.T1)(m.A.sagasUtils.handleInvalidForm,Mn);case 2:return f.next=3,(0,qt.yJ)(Xe());case 3:f.next=15;break;case 4:return f.next=5,(0,qt.yJ)(Xt.A.startSubmit(Vn));case 5:return f.next=6,(0,qt.Lt)(Rn);case 6:return t=f.sent,n=t.mode,f.next=7,(0,qt.Lt)(Ln);case 7:return r=f.sent,i=r.fieldDefinitions,f.next=8,(0,qt.T1)($n);case 8:return f.next=9,(0,qt.T1)(m.A.sagasUtils.getCurrentEntityState,Mn);case 9:return o=f.sent,a=o.dirtyFormValues,f.next=10,(0,qt.T1)(m.A.formValuesToFlattenEntity,a,i);case 10:return s=f.sent,c=m.A.splitFlattenEntity(s,i),f.next=11,(0,qt.T1)(an.A.toEntity,c.entity);case 11:if(u=f.sent,n!==O){f.next=13;break}return f.next=12,(0,qt.T1)(Zn,u,i);case 12:f.next=14;break;case 13:if(n!==I){f.next=14;break}return f.next=14,(0,qt.T1)(Qn,u,i,null==e||null===(l=e.payload)||void 0===l?void 0:l.followUp);case 14:return f.next=15,(0,qt.yJ)(et());case 15:f.next=18;break;case 16:return f.prev=16,d=f.catch(0),f.next=17,(0,qt.T1)(m.A.sagasUtils.handleSubmitError,Mn,d);case 17:return f.next=18,(0,qt.yJ)(Xe());case 18:case"end":return f.stop()}}),Dn,null,[[0,16]])}function er(e){var t=e.payload;return Gt().mark((function e(){var n,r,i;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.touched,e.next=1,(0,qt.Lt)(Ln);case 1:if(r=e.sent,i=r.touched,n===i){e.next=3;break}return e.next=2,(0,qt.yJ)(d.A.fireExternalEvent("onTouchedChange",{touched:n}));case 2:return e.next=3,(0,qt.yJ)(qe(n));case 3:case"end":return e.stop()}}),e)}))()}function tr(){var e,t,n,r,i,o,a;return Gt().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=1,(0,qt.Lt)(Ln);case 1:return e=s.sent,t=e.fieldDefinitions,s.next=2,(0,qt.T1)(m.A.sagasUtils.getCurrentEntityState,Mn);case 2:return n=s.sent,r=n.formValues,s.next=3,(0,qt.T1)(m.A.formValuesToFlattenEntity,r,t);case 3:return i=s.sent,o=m.A.splitFlattenEntity(i,t),s.next=4,(0,qt.T1)(an.A.toEntity,o.entity);case 4:return a=s.sent,s.next=5,(0,qt.yJ)(d.A.fireExternalEvent("onFormValuesChange",{formValues:r,entity:a}));case 5:case"end":return s.stop()}}),wn)}function nr(e,t,n){return Gt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,(0,qt.yJ)(y.A.toaster({type:e,title:"client.entity-detail.".concat(t),body:"client.entity-detail.".concat(n)}));case 1:case"end":return r.stop()}}),kn)}function rr(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Gt().mark((function t(){var n,r,i,o,a,s,c,u,l,d,f,p,y;return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,qt.Lt)(Rn);case 1:return n=t.sent,r=n.entityName,i=n.entityId,o=n.formName,a=n.mode,s=n.modifyEntityPaths,t.next=2,(0,qt.Lt)(Ln);case 2:if(c=t.sent,u=c.fieldDefinitions,l=c.formDefinition,!c.entityModel.markable||!l.markable){t.next=3;break}return t.next=3,(0,qt.Zy)(ar,r,i);case 3:return t.next=4,(0,qt.T1)(Gn,r,i,u);case 4:return d=t.sent,s&&(d.paths=s(d.paths)),t.next=5,(0,qt.T1)(an.A.getFlattenEntity,d);case 5:return f=t.sent,t.next=6,(0,qt.T1)(on.A.enhanceEntityWithDisplayExpressions,f,o,u,a);case 6:return t.next=7,(0,qt.T1)(on.A.enhanceEntityWithDisplays,f,u);case 7:return t.next=8,(0,qt.T1)(cr,f,u,e);case 8:return p=t.sent,y=e?{}:{keepDirty:!0,keepValues:!1},t.next=9,(0,qt.yJ)(Xt.A.initialize(Vn,p,y));case 9:case"end":return t.stop()}}),t)}))()}var ir=function(e){return(null==e?void 0:e.reduce((function(e,t){var n=ir(t.children||[]),r=t.componentType===m.A.componentTypes.SUB_TABLE?[t]:[];return[].concat((0,Nt.A)(e),r,(0,Nt.A)(n))}),[]))||[]};function or(){var e,t,n,r,i,o,a;return Gt().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=1,(0,qt.Lt)(Ln);case 1:return e=s.sent,t=e.formDefinition,n=e.entity,s.next=2,(0,qt.Lt)(Rn);case 2:if(r=s.sent,i=r.appId,o=null==n?void 0:n.key,a=null==n?void 0:n.model,null!=t&&t.children&&a&&null!=o){s.next=3;break}return s.abrupt("return");case 3:ir(t.children).forEach((function(e){var t,n=ye(e.formSuffix),r=me(i,a,o,e.targetEntity,n,e.reverseRelation),s=null===(t=pe.A.viewInfoSelector(r))||void 0===t?void 0:t.store;s&&s.dispatch({type:"list/REFRESH"})}));case 4:case"end":return s.stop()}}),Sn)}function ar(e,t){var n;return Gt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,(0,qt.T1)(rn.A.fetchMarked,e,t);case 1:return n=r.sent,r.next=2,(0,qt.yJ)($e(n));case 2:case"end":return r.stop()}}),jn)}function sr(e){var t=e.payload,n=t.entityName,r=t.entityId,i=t.marked;return Gt().mark((function e(){return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,qt.yJ)($e(i));case 1:return e.next=2,(0,qt.T1)(rn.A.setMarked,n,r,i);case 2:case"end":return e.stop()}}),e)}))()}function cr(e,t,n){var r,i;return Gt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=1,(0,qt.T1)(m.A.entityToFormValues,e,t);case 1:if(r=o.sent,!n){o.next=2;break}return o.abrupt("return",r);case 2:return o.next=3,(0,qt.Lt)(Cn,Vn);case 3:return i=o.sent,o.abrupt("return",_n(_n({},r),$t()(i,["version",an.A.metaFields.VERSION,"update_timestamp","update_user"])));case 4:case"end":return o.stop()}}),In)}function ur(e){var t=e.payload;return Gt().mark((function e(n,r){var i,o,a,s,u;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.definition,o=t.response,e.next=1,(0,qt.Lt)(Rn);case 1:if(a=e.sent,s=a.entityId,u=a.mode,null===(n=o.flags)||void 0===n||!n.selectionDeleted){e.next=3;break}return e.next=2,(0,qt.yJ)(d.A.fireExternalEvent("onEntityDeleted"));case 2:e.next=7;break;case 3:if("delete"===i.id||"create"===u||!1===(null===(r=o.flags)||void 0===r?void 0:r.reloadDetail)){e.next=7;break}return e.next=4,(0,qt.T1)(rr,!0);case 4:return e.next=5,(0,qt.T1)(or);case 5:return e.next=6,(0,qt.yJ)(c.A.reevaluateActionCondition(s));case 6:return e.next=7,(0,qt.yJ)(d.A.fireExternalEvent("onRefresh"));case 7:case"end":return e.stop()}}),e)}))()}function lr(e){var t=e.payload;return Gt().mark((function e(){var n,r;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,qt.Lt)(Rn);case 1:return n=e.sent,r=n.navigationStrategy,e.next=2,(0,qt.T1)(r.navigateToCreateRelative,t.relationName);case 2:case"end":return e.stop()}}),e)}))()}function dr(e){var t=e.payload;return Gt().mark((function e(){var n,r,i,o;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.definition,r=t.selection,e.next=1,(0,qt.Lt)(Rn);case 1:return i=e.sent,o=i.navigationStrategy,e.next=2,(0,qt.T1)(o.navigateToActionRelative,n,r);case 2:case"end":return e.stop()}}),e)}))()}var fr=function(e,t,n){return!!e.payload.entities.find((function(e){return e.entityName===t&&e.key===n}))||e.payload.parent&&e.payload.parent.model===t&&e.payload.parent.key===n};function pr(e){var t,n,r,i,o,a;return Gt().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload.event,s.next=1,(0,qt.Lt)(Rn);case 1:if(n=s.sent,r=n.entityName,i=n.entityId,"action-trigger-event"!==t.type){s.next=3;break}return s.next=2,(0,qt.yJ)((o=t.payload).func.apply(o,(0,Nt.A)(t.payload.args)));case 2:s.next=10;break;case 3:if(!fr(t,r,i)){s.next=10;break}a=t.type,s.next="entity-delete-event"===a?4:"entity-update-event"===a?6:10;break;case 4:return s.next=5,(0,qt.yJ)(d.A.fireExternalEvent("onEntityDeleted"));case 5:case 9:return s.abrupt("continue",10);case 6:return s.next=7,(0,qt.T1)(rr,t.payload.reload||!1);case 7:return s.next=8,(0,qt.T1)(or);case 8:if(!t.payload.reload){s.next=9;break}return s.next=9,(0,qt.yJ)(c.A.reevaluateActionCondition(i));case 10:case"end":return s.stop()}}),On)}function yr(e,t){var n,r,i,o,a;return Gt().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!(n=mr(e.children.find((function(e){return"action-bar"===e.componentType})),t))){s.next=2;break}return s.next=1,(0,qt.Lt)(Rn);case 1:return r=s.sent,i=r.entityName,o=r.entityId,a=c.A.getSingleEntitySelection(i,o),s.next=2,(0,qt.yJ)(c.A.actions.actionInvoke(n,a));case 2:sn.A.removeFromQuery("action");case 3:case"end":return s.stop()}}),Fn)}var mr=function(e,t){var n,r=dn(e.children||[]);try{for(r.s();!(n=r.n()).done;){var i=n.value;if("action-group"===i.componentType){var o=mr(i,t);if(o)return o}else if("action"===i.componentType&&i.id===t)return i}}catch(e){r.e(e)}finally{r.f()}},vr=Gt().mark(Tr),Ar=Gt().mark(Dr),xr=["new","copy"],hr=["save_with_follow_up"],br=function(e){return e.canExecuteOnPendingChanges},Er=function(e){return e.saveWithoutConfirm};function gr(e){var t=e.definition;return Gt().mark((function e(){var n,r;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,qt.T1)(Yt.A,Vn);case 1:return n=e.sent,e.next=2,(0,qt.Lt)(n);case 2:if(!e.sent||(o=void 0,a=void 0,o=(i=t).id,a=i.fullscreen,xr.includes(o)||hr.includes(o)||a)||br(t)){e.next=9;break}if(!Er(t)){e.next=4;break}return e.next=3,(0,qt.T1)(Dr);case 3:case 8:return e.abrupt("return",e.sent);case 4:return e.next=5,(0,qt.T1)(Tr,t.id);case 5:if("continue"!==(r=e.sent)){e.next=6;break}return e.abrupt("return",{abort:!1});case 6:if("abort"!==r){e.next=7;break}return e.abrupt("return",{abort:!0});case 7:if("save"!==r){e.next=9;break}return e.next=8,(0,qt.T1)(Dr);case 9:return e.abrupt("return",{abort:!1});case 10:case"end":return e.stop()}var i,o,a}),e)}))()}function Tr(e){var t;return Gt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,qt.T1)(zt.Ix);case 1:return t=n.sent,n.next=2,(0,qt.yJ)(y.A.modal("action-pending-changes-".concat(e),"client.entity-detail.confirmDirtyBeforeActionTitle","client.entity-detail.confirmDirtyBeforeAction",(function(e){var n=e.close;return(0,ee.jsx)(Zt.A,{onYes:function(){n(),t.put("save")},onNo:function(){n(),t.put("continue")}})}),!0,(function(){return t.put("abort")})));case 2:return n.next=3,(0,qt.s)(t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),vr)}function Dr(){var e,t;return Gt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,qt.yJ)(Je());case 1:return n.next=2,(0,qt.O4)({submitted:(0,qt.s)(Pe),failed:(0,qt.s)(Re)});case 2:return e=n.sent,t=!e.submitted,n.abrupt("return",{abort:t});case 3:case"end":return n.stop()}}),Ar)}var wr=n(12049),kr=n(98671),Sr=(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},ge,kr.A.singleTransferReducer("formDefinition")),Te,kr.A.singleTransferReducer("entity")),we,kr.A.singleTransferReducer("lastSave")),ke,kr.A.singleTransferReducer("entityModel")),Ie,kr.A.singleTransferReducer("touched")),Ne,kr.A.singleTransferReducer("fieldDefinitions")),Le,kr.A.singleTransferReducer("marked")),jr={formDefinition:{},entity:{},entityModel:{},touched:!1,fieldDefinitions:[],marked:!1};const Ir=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jr,t=arguments.length>1?arguments[1]:void 0,n=Sr[t.type];return n?n(e,t):e},Or={entityDetail:Ir,form:wr.A};var Fr=[Un];const Nr=[{ctrl:!0,alt:!0,code:"KeyS",actions:[Je()]}];var _r;function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rr="entity-detail",Pr=["onSubGridRowClick","onEntityCreated","onEntityUpdated","onEntityDeleted","onFormValuesChange","onTouchedChange","onRefresh","emitAction"],Vr=function(e,t,n,r){var i=_r||(_r=(0,ee.jsx)(Ht,{})),o=u.A.createStore(Or,Fr,Lr(Lr({},{scrollBehaviour:"inline"}),t),Rr);return d.A.addToStore(o,(function(e){return u.A.getEvents(Pr,e.input)})),s.A.addToStore(o,(function(e){return e.input.emitAction})),l.A.addToStore(o,!1),y.A.addToStore(o,!1),m.A.addToStore(o,Mn),v.A.addToStore(o),c.A.addToStore(o,(function(e){return{formApp:A.A,listApp:e.input.listApp,detailApp:Mr,customActions:Lr(Lr({},Kt),e.input.customActions||{}),appComponent:e.input.actionAppComponent,navigationStrategy:e.input.navigationStrategy,context:{viewName:"detail",formName:e.input.formName},customPreparationHandlers:[gr],customActionEventHandlers:e.input.customActionEventHandlers}})),f.A.addToStore(o,(function(e){var t,n;return{listApp:e.input.listApp,detailApp:Mr,docsApp:e.input.docsApp,navigationStrategy:e.input.navigationStrategy,chooseDocument:e.input.chooseDocument,formDefinition:null===(t=e.entityDetail)||void 0===t?void 0:t.formDefinition,entity:null===(n=e.entityDetail)||void 0===n?void 0:n.entity}})),p.A.addToStore(o,Nr),u.A.createApp(Rr,i,o,{input:t,events:n,actions:[Ve()],publicPath:r,textResourceModules:["actiongroup","component","common","entity-list","entity-detail"]})};u.A.registerAppInRegistry(Rr,Vr);var Mr=function(e){var t=u.A.useApp({initApp:Vr,props:e,packageName:e.id,externalEvents:Pr}).component;return(0,ee.jsx)(ee.Fragment,{children:t})};Mr.propTypes=Lr(Lr({entityName:a().string.isRequired,entityId:a().string,formName:a().string.isRequired,mode:a().oneOf(["update","create"]),defaultValues:a().array},Pr.reduce((function(e,t){return e[t]=a().func,e}),{})),{},{navigationStrategy:h.A.propTypes,chooseDocument:a().func,actionAppComponent:a().elementType,customActions:a().object,customRenderedActions:a().objectOf(a().func),modifyFormDefinition:a().func,modifyEntityPaths:a().func,reportIds:a().arrayOf(a().string),listApp:a().func,docsApp:a().func,scrollBehaviour:x.M,labelPosition:a().oneOf(["inside","outside-responsive","outside"]),initialAction:a().string,hideFooter:a().bool});const Ur=Mr}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[50681,87528],{50681(E,T,R){function N(E){E.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}R.r(T),R.d(T,{default:()=>N}),N.displayName="basic",N.aliases=[]},87528(E,T,R){R.r(T),R.d(T,{default:()=>I});var N=R(50681);function I(E){E.register(N.default),E.languages.vbnet=E.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}I.displayName="vbnet",I.aliases=[]}}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[89182],{30454(e){"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=i(r[0]);o!==r[0]&&(t[r[0]]=o)}r=n.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var c=s[a];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},73055(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var s=n[i],a=e[s];(o?-1!==t.indexOf(s):t(s,a,e))&&(r[s]=a)}return r}},51535(e,t,r){var n=r(43360),o=r(30641),i=r(15389);e.exports=function(e,t){var r={};return t=i(t,3),o(e,(function(e,o,i){n(r,o,t(e,o,i))})),r}},86663(e,t,r){"use strict";const n=r(24280),o=r(30454),i=r(528),s=r(73055),a=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function h(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!o&&u(r,e).includes(e.arrayFormatSeparator);r=i?u(r,e):r;const s=o||i?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);n[t]=s};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?u(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],i):n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;let[e,s]=i(t.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:u(s,t),r(u(e,t),s,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=f(r[e],t);else n[e]=f(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=p,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",o,"]"].join("")]:[...r,[l(t,e),"[",l(o,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),":list="].join("")]:[...r,[l(t,e),":list=",l(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[l(r,e),t,l(o,e)].join("")]:[[n,l(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),o={};for(const t of Object.keys(e))r(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const o=e[r];return void 0===o?"":null===o?l(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":o.reduce(n(r),[]).join("&"):l(r,t)+"="+l(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const n=h(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),s=Object.assign(i,e.query);let c=t.stringify(s,r);c&&(c=`?${c}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[a]?l(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${c}${u}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[a]:!1},n);const{url:o,query:i,fragmentIdentifier:c}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:s(i,r),fragmentIdentifier:c},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},29336(e,t,r){"use strict";var n=r(33567);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},12238(e,t,r){e.exports=r(29336)()},33567(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},73413(e,t,r){"use strict";r.d(t,{A:()=>R});var n=r(4883),o=r(49385),i=r.n(o),s=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var u=function(e){var t,r;function o(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,l(t,r);var i=o.prototype;return i.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},i.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise((function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()}))},i.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},i.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,s));return n.createElement("div",a({},t,{ref:this.handleRecaptchaRef}))},o}(n.Component);u.displayName="ReCAPTCHA",u.propTypes={sitekey:i().string.isRequired,onChange:i().func,grecaptcha:i().object,theme:i().oneOf(["dark","light"]),type:i().oneOf(["image","audio"]),tabindex:i().number,onExpired:i().func,onErrored:i().func,size:i().oneOf(["compact","normal","invisible"]),stoken:i().string,hl:i().string,badge:i().oneOf(["bottomright","bottomleft","inline"]),isolated:i().bool},u.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var d=r(12238),h=r.n(d),p=r(4146),f=r.n(p);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}var m={},y=0;var v="onloadcallback";function E(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}const w=(b=function(){var e=E(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+v+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+v+"&render=explicit"},C=(C={callbackName:v,globalName:"grecaptcha",attributes:E().nonce?{nonce:E().nonce}:{}})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){var r,o;function i(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}o=t,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var s=i.prototype;return s.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+y++),this.__scriptLoaderID},s.setupScriptURL=function(){return this.__scriptURL="function"==typeof b?b():b,this.__scriptURL},s.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},s.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=m[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[C.callbackName]},s.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=C,o=n.globalName,i=n.callbackName,s=n.scriptId;if(o&&void 0!==window[o]&&(m[t]={loaded:!0,observers:{}}),m[t]){var a=m[t];return a&&(a.loaded||a.errored)?void this.asyncScriptLoaderHandleLoad(a):void(a.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},m[t]={loaded:!1,observers:c};var l=document.createElement("script");for(var u in l.src=t,l.async=!0,C.attributes)l.setAttribute(u,C.attributes[u]);s&&(l.id=s);var d=function(e){if(m[t]){var r=m[t].observers;for(var n in r)e(r[n])&&delete r[n]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=m[t];e&&(e.loaded=!0,d((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=m[t];e&&(e.errored=!0,d((function(t){return t(e),!0})))},document.body.appendChild(l)},s.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===C.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=m[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===C.removeOnUnmount&&delete m[e])},s.render=function(){var t=C.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(i[t]=void 0!==window[t]?window[t]:void 0),i.ref=o,(0,n.createElement)(e,i)},i}(n.Component),o=(0,n.forwardRef)((function(e,t){return(0,n.createElement)(r,g({},e,{forwardedRef:t}))}));return o.displayName="AsyncScriptLoader("+t+")",o.propTypes={asyncScriptOnLoad:h().func},f()(o,e)})(u);var b,C;const R=w},22501(e,t,r){"use strict";var n=r(1846);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},49385(e,t,r){e.exports=r(22501)()},1846(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},528(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},24280(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},36459(e,t,r){"use strict";r.d(t,{h:()=>O});var n,o=r(4883),i=Object.defineProperty,s=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))a.call(t,r)&&l(e,r,t[r]);if(s)for(var r of s(t))c.call(t,r)&&l(e,r,t[r]);return e},d=(e,t)=>{var r={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&s)for(var n of s(e))t.indexOf(n)<0&&c.call(e,n)&&(r[n]=e[n]);return r};(e=>{const t=class t{constructor(e,r,n,i){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let e=0;e<this.size;e++)s.push(!1);for(let e=0;e<this.size;e++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(n);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(i=t,e=r),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(r,n){const o=e.QrSegment.makeSegments(r);return t.encodeSegments(o,n)}static encodeBinary(r,n){const o=e.QrSegment.makeBytes(r);return t.encodeSegments([o],n)}static encodeSegments(e,n,i=1,a=40,c=-1,l=!0){if(!(t.MIN_VERSION<=i&&i<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=i;;u++){const r=8*t.getNumDataCodewords(u,n),o=s.getTotalBits(e,u);if(o<=r){d=o;break}if(u>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let h=[];for(const t of e){r(t.mode.modeBits,4,h),r(t.numChars,t.mode.numCharCountBits(u),h);for(const e of t.getData())h.push(e)}o(h.length==d);const p=8*t.getNumDataCodewords(u,n);o(h.length<=p),r(0,Math.min(4,p-h.length),h),r(0,(8-h.length%8)%8,h),o(h.length%8==0);for(let e=236;h.length<p;e^=253)r(e,8,h);let f=[];for(;8*f.length<h.length;)f.push(0);return h.forEach(((e,t)=>f[t>>>3]|=e<<7-(7&t))),new t(u,n,f,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)0==r&&0==n||0==r&&n==t-1||r==t-1&&0==n||this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let r=t;for(let e=0;e<10;e++)r=r<<1^1335*(r>>>9);const i=21522^(t<<10|r);o(i>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,n(i,e));this.setFunctionModule(8,7,n(i,6)),this.setFunctionModule(8,8,n(i,7)),this.setFunctionModule(7,8,n(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,n(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,n(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,n(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const r=n(t,e),o=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(o,i,r),this.setFunctionModule(i,o,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const o=Math.max(Math.abs(n),Math.abs(r)),i=e+n,s=t+r;0<=i&&i<this.size&&0<=s&&s<this.size&&this.setFunctionModule(i,s,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){const r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],s=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],a=Math.floor(t.getNumRawDataModules(r)/8),c=i-a%i,l=Math.floor(a/i);let u=[];const d=t.reedSolomonComputeDivisor(s);for(let r=0,n=0;r<i;r++){let o=e.slice(n,n+l-s+(r<c?0:1));n+=o.length;const i=t.reedSolomonComputeRemainder(o,d);r<c&&o.push(0),u.push(o.concat(i))}let h=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,r)=>{(e!=l-s||r>=c)&&h.push(t[e])}));return o(h.length==a),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){const s=t-i,a=!(t+1&2)?this.size-1-o:o;!this.isFunction[a][s]&&r<8*e.length&&(this.modules[a][s]=n(e[r>>>3],7-(7&r)),r++)}}o(r==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,o=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[r][s]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[r][s],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,o=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[s][r]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[s][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){const o=this.modules[r][n];o==this.modules[r][n+1]&&o==this.modules[r+1][n]&&o==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let r=0;for(const e of this.modules)r=e.reduce(((e,t)=>e+(t?1:0)),r);const n=this.size*this.size,i=Math.ceil(Math.abs(20*r-10*n)/n)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return o(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let o=0;o<e;o++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map((e=>0));for(const o of e){const e=o^n.shift();n.push(0),r.forEach(((r,o)=>n[o]^=t.reedSolomonMultiply(r,e)))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return o(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];function r(e,t,r){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function n(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}e.QrCode=t;const i=class e{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let n=[];for(const e of t)r(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let n=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);r(parseInt(t.substring(e,e+o),10),3*o+1,n),e+=o}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let n,o=[];for(n=0;n+2<=t.length;n+=2){let i=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),r(i,11,o)}return n<t.length&&r(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)r(t,8,n);else if(t<16384)r(2,2,n),r(t,14,n);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,n),r(t,21,n)}return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=i;e.QrSegment=i})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2);e.Ecc=t})(t=e.QrCode||(e.QrCode={}))})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]);e.Mode=t})(t=e.QrSegment||(e.QrSegment={}))})(n||(n={}));var h=n,p={L:h.QrCode.Ecc.LOW,M:h.QrCode.Ecc.MEDIUM,Q:h.QrCode.Ecc.QUARTILE,H:h.QrCode.Ecc.HIGH},f=128,g="L",m="#FFFFFF",y="#000000",v=!1,E=1;
|
|
1
|
+
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[89182],{30454(e){"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=i(r[0]);o!==r[0]&&(t[r[0]]=o)}r=n.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var c=s[a];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},73055(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var s=n[i],a=e[s];(o?-1!==t.indexOf(s):t(s,a,e))&&(r[s]=a)}return r}},73916(e,t,r){var n=r(43360),o=r(30641),i=r(15389);e.exports=function(e,t){var r={};return t=i(t,3),o(e,(function(e,o,i){n(r,o,t(e,o,i))})),r}},86663(e,t,r){"use strict";const n=r(24280),o=r(30454),i=r(528),s=r(73055),a=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function h(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!o&&u(r,e).includes(e.arrayFormatSeparator);r=i?u(r,e):r;const s=o||i?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);n[t]=s};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?u(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],i):n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;let[e,s]=i(t.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:u(s,t),r(u(e,t),s,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=f(r[e],t);else n[e]=f(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=p,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",o,"]"].join("")]:[...r,[l(t,e),"[",l(o,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),":list="].join("")]:[...r,[l(t,e),":list=",l(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[l(r,e),t,l(o,e)].join("")]:[[n,l(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),o={};for(const t of Object.keys(e))r(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const o=e[r];return void 0===o?"":null===o?l(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":o.reduce(n(r),[]).join("&"):l(r,t)+"="+l(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const n=h(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),s=Object.assign(i,e.query);let c=t.stringify(s,r);c&&(c=`?${c}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[a]?l(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${c}${u}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[a]:!1},n);const{url:o,query:i,fragmentIdentifier:c}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:s(i,r),fragmentIdentifier:c},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},29336(e,t,r){"use strict";var n=r(33567);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},12238(e,t,r){e.exports=r(29336)()},33567(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},73413(e,t,r){"use strict";r.d(t,{A:()=>R});var n=r(4883),o=r(49385),i=r.n(o),s=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var u=function(e){var t,r;function o(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,l(t,r);var i=o.prototype;return i.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},i.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise((function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()}))},i.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},i.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,s));return n.createElement("div",a({},t,{ref:this.handleRecaptchaRef}))},o}(n.Component);u.displayName="ReCAPTCHA",u.propTypes={sitekey:i().string.isRequired,onChange:i().func,grecaptcha:i().object,theme:i().oneOf(["dark","light"]),type:i().oneOf(["image","audio"]),tabindex:i().number,onExpired:i().func,onErrored:i().func,size:i().oneOf(["compact","normal","invisible"]),stoken:i().string,hl:i().string,badge:i().oneOf(["bottomright","bottomleft","inline"]),isolated:i().bool},u.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var d=r(12238),h=r.n(d),p=r(4146),f=r.n(p);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}var m={},y=0;var v="onloadcallback";function E(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}const w=(b=function(){var e=E(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+v+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+v+"&render=explicit"},C=(C={callbackName:v,globalName:"grecaptcha",attributes:E().nonce?{nonce:E().nonce}:{}})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){var r,o;function i(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}o=t,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var s=i.prototype;return s.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+y++),this.__scriptLoaderID},s.setupScriptURL=function(){return this.__scriptURL="function"==typeof b?b():b,this.__scriptURL},s.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},s.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=m[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[C.callbackName]},s.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=C,o=n.globalName,i=n.callbackName,s=n.scriptId;if(o&&void 0!==window[o]&&(m[t]={loaded:!0,observers:{}}),m[t]){var a=m[t];return a&&(a.loaded||a.errored)?void this.asyncScriptLoaderHandleLoad(a):void(a.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},m[t]={loaded:!1,observers:c};var l=document.createElement("script");for(var u in l.src=t,l.async=!0,C.attributes)l.setAttribute(u,C.attributes[u]);s&&(l.id=s);var d=function(e){if(m[t]){var r=m[t].observers;for(var n in r)e(r[n])&&delete r[n]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=m[t];e&&(e.loaded=!0,d((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=m[t];e&&(e.errored=!0,d((function(t){return t(e),!0})))},document.body.appendChild(l)},s.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===C.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=m[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===C.removeOnUnmount&&delete m[e])},s.render=function(){var t=C.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(i[t]=void 0!==window[t]?window[t]:void 0),i.ref=o,(0,n.createElement)(e,i)},i}(n.Component),o=(0,n.forwardRef)((function(e,t){return(0,n.createElement)(r,g({},e,{forwardedRef:t}))}));return o.displayName="AsyncScriptLoader("+t+")",o.propTypes={asyncScriptOnLoad:h().func},f()(o,e)})(u);var b,C;const R=w},22501(e,t,r){"use strict";var n=r(1846);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},49385(e,t,r){e.exports=r(22501)()},1846(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},528(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},24280(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},36459(e,t,r){"use strict";r.d(t,{h:()=>O});var n,o=r(4883),i=Object.defineProperty,s=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))a.call(t,r)&&l(e,r,t[r]);if(s)for(var r of s(t))c.call(t,r)&&l(e,r,t[r]);return e},d=(e,t)=>{var r={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&s)for(var n of s(e))t.indexOf(n)<0&&c.call(e,n)&&(r[n]=e[n]);return r};(e=>{const t=class t{constructor(e,r,n,i){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let e=0;e<this.size;e++)s.push(!1);for(let e=0;e<this.size;e++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(n);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(i=t,e=r),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(r,n){const o=e.QrSegment.makeSegments(r);return t.encodeSegments(o,n)}static encodeBinary(r,n){const o=e.QrSegment.makeBytes(r);return t.encodeSegments([o],n)}static encodeSegments(e,n,i=1,a=40,c=-1,l=!0){if(!(t.MIN_VERSION<=i&&i<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=i;;u++){const r=8*t.getNumDataCodewords(u,n),o=s.getTotalBits(e,u);if(o<=r){d=o;break}if(u>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let h=[];for(const t of e){r(t.mode.modeBits,4,h),r(t.numChars,t.mode.numCharCountBits(u),h);for(const e of t.getData())h.push(e)}o(h.length==d);const p=8*t.getNumDataCodewords(u,n);o(h.length<=p),r(0,Math.min(4,p-h.length),h),r(0,(8-h.length%8)%8,h),o(h.length%8==0);for(let e=236;h.length<p;e^=253)r(e,8,h);let f=[];for(;8*f.length<h.length;)f.push(0);return h.forEach(((e,t)=>f[t>>>3]|=e<<7-(7&t))),new t(u,n,f,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)0==r&&0==n||0==r&&n==t-1||r==t-1&&0==n||this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let r=t;for(let e=0;e<10;e++)r=r<<1^1335*(r>>>9);const i=21522^(t<<10|r);o(i>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,n(i,e));this.setFunctionModule(8,7,n(i,6)),this.setFunctionModule(8,8,n(i,7)),this.setFunctionModule(7,8,n(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,n(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,n(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,n(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const r=n(t,e),o=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(o,i,r),this.setFunctionModule(i,o,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const o=Math.max(Math.abs(n),Math.abs(r)),i=e+n,s=t+r;0<=i&&i<this.size&&0<=s&&s<this.size&&this.setFunctionModule(i,s,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){const r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],s=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],a=Math.floor(t.getNumRawDataModules(r)/8),c=i-a%i,l=Math.floor(a/i);let u=[];const d=t.reedSolomonComputeDivisor(s);for(let r=0,n=0;r<i;r++){let o=e.slice(n,n+l-s+(r<c?0:1));n+=o.length;const i=t.reedSolomonComputeRemainder(o,d);r<c&&o.push(0),u.push(o.concat(i))}let h=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,r)=>{(e!=l-s||r>=c)&&h.push(t[e])}));return o(h.length==a),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){const s=t-i,a=!(t+1&2)?this.size-1-o:o;!this.isFunction[a][s]&&r<8*e.length&&(this.modules[a][s]=n(e[r>>>3],7-(7&r)),r++)}}o(r==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,o=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[r][s]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[r][s],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,o=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[s][r]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[s][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){const o=this.modules[r][n];o==this.modules[r][n+1]&&o==this.modules[r+1][n]&&o==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let r=0;for(const e of this.modules)r=e.reduce(((e,t)=>e+(t?1:0)),r);const n=this.size*this.size,i=Math.ceil(Math.abs(20*r-10*n)/n)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return o(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let o=0;o<e;o++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map((e=>0));for(const o of e){const e=o^n.shift();n.push(0),r.forEach(((r,o)=>n[o]^=t.reedSolomonMultiply(r,e)))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return o(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];function r(e,t,r){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function n(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}e.QrCode=t;const i=class e{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let n=[];for(const e of t)r(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let n=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);r(parseInt(t.substring(e,e+o),10),3*o+1,n),e+=o}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let n,o=[];for(n=0;n+2<=t.length;n+=2){let i=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),r(i,11,o)}return n<t.length&&r(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)r(t,8,n);else if(t<16384)r(2,2,n),r(t,14,n);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,n),r(t,21,n)}return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=i;e.QrSegment=i})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2);e.Ecc=t})(t=e.QrCode||(e.QrCode={}))})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]);e.Mode=t})(t=e.QrSegment||(e.QrSegment={}))})(n||(n={}));var h=n,p={L:h.QrCode.Ecc.LOW,M:h.QrCode.Ecc.MEDIUM,Q:h.QrCode.Ecc.QUARTILE,H:h.QrCode.Ecc.HIGH},f=128,g="L",m="#FFFFFF",y="#000000",v=!1,E=1;
|
|
2
2
|
/**
|
|
3
3
|
* @license qrcode.react
|
|
4
4
|
* Copyright (c) Paul O'Shannessy
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[8992],{8992(e,t,n){e=n.nmd(e),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("./text_highlight_rules").TextHighlightRules,a=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},a.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};o.inherits(a,r),a.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},a.getStartRule=function(e){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:e}},a.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.JsDocCommentHighlightRules=a})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,a=e("./text_highlight_rules").TextHighlightRules,i="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",s=function(e){var t={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},n=this.createKeywordMapper(t,"identifier"),o="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",a="(function)(\\s*)(\\*?)",s={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(t).join("|")+"\\b)"+i+")(\\s*)(\\()"};this.$rules={no_regex:[r.getStartRule("doc-start"),c("no_regex"),s,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{include:"numeric_constants"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+i+")(\\s*)(=)(\\s*)"+a+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+i+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+i+")(\\s*)(:)(\\s*)"+a+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+a+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:n,regex:i},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:a+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:i},{regex:"",token:"empty",next:"no_regex"}],start:[r.getStartRule("doc-start"),c("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{include:"numeric_constants"},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[c("function_arguments"),{token:"variable.parameter",regex:i},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:o},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:o},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}],numeric_constants:[{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F_]+|[oO][0-7_]+|[bB][01_]+)\b/},{token:"constant.numeric",regex:/(?:\d[\d_]*(?:\.[\d_]*)?|\.\d[\d_]*)(?:[eE][+-]?\d+\b)?/}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:o},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+i+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),e&&0==e.jsx||l.call(this)),this.embedRules(r,"doc-",[r.getEndRule("no_regex")]),this.normalizeRules()};function l(){var e=i.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var o="/"==e.charAt(1)?2:1;return 1==o?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==o&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==o?"":"end-")+"tag-open.xml",value:e.slice(0,o)},{type:"meta.tag.tag-name.xml",value:e.substr(o)}]},regex:"</?(?:"+e+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,c("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function c(e){return[{token:"comment",regex:/\/\*/,next:[r.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[r.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}o.inherits(s,a),t.JavaScriptHighlightRules=s})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var o=e("../range").Range,r=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var r=n[1].length,a=e.findMatchingBracket({row:t,column:r});if(!a||a.row==t)return 0;var i=this.$getIndent(e.getLine(a.row));e.replace(new o(t,0,t,r-1),i)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(r.prototype),t.MatchingBraceOutdent=r})),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],(function(e,t,n){"use strict";var o=e("../../lib/oop"),r=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator;function i(e,t){return e&&e.type.lastIndexOf(t+".xml")>-1}var s=function(){this.add("string_dquotes","insertion",(function(e,t,n,o,r){if('"'==r||"'"==r){var s=r,l=o.doc.getTextRange(n.getSelectionRange());if(""!==l&&"'"!==l&&'"'!=l&&n.getWrapBehavioursEnabled())return{text:s+l+s,selection:!1};var c=n.getCursorPosition(),u=o.doc.getLine(c.row).substring(c.column,c.column+1),d=new a(o,c.row,c.column),g=d.getCurrentToken();if(u==s&&(i(g,"attribute-value")||i(g,"string")))return{text:"",selection:[1,1]};if(g||(g=d.stepBackward()),!g)return;for(;i(g,"tag-whitespace")||i(g,"whitespace");)g=d.stepBackward();var m=!u||u.match(/\s/);if(i(g,"attribute-equals")&&(m||">"==u)||i(g,"decl-attribute-equals")&&(m||"?"==u))return{text:s+s,selection:[1,1]}}})),this.add("string_dquotes","deletion",(function(e,t,n,o,r){var a=o.doc.getTextRange(r);if(!r.isMultiLine()&&('"'==a||"'"==a)&&o.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)==a)return r.end.column++,r})),this.add("autoclosing","insertion",(function(e,t,n,o,r){if(">"==r){var s=n.getSelectionRange().start,l=new a(o,s.row,s.column),c=l.getCurrentToken()||l.stepBackward();if(!c||!(i(c,"tag-name")||i(c,"tag-whitespace")||i(c,"attribute-name")||i(c,"attribute-equals")||i(c,"attribute-value")))return;if(i(c,"reference.attribute-value"))return;if(i(c,"attribute-value")){var u=l.getCurrentTokenColumn()+c.value.length;if(s.column<u)return;if(s.column==u){var d=l.stepForward();if(d&&i(d,"attribute-value"))return;l.stepBackward()}}if(/^\s*>/.test(o.getLine(s.row).slice(s.column)))return;for(;!i(c,"tag-name");)if("<"==(c=l.stepBackward()).value){c=l.stepForward();break}var g=l.getCurrentTokenRow(),m=l.getCurrentTokenColumn();if(i(l.stepBackward(),"end-tag-open"))return;var p=c.value;if(g==s.row&&(p=p.substring(0,s.column-m)),this.voidElements&&this.voidElements.hasOwnProperty(p.toLowerCase()))return;return{text:"></"+p+">",selection:[1,1]}}})),this.add("autoindent","insertion",(function(e,t,n,o,r){if("\n"==r){var s=n.getCursorPosition(),l=o.getLine(s.row),c=new a(o,s.row,s.column),u=c.getCurrentToken();if(i(u,"")&&-1!==u.type.indexOf("tag-close")){if("/>"==u.value)return;for(;u&&-1===u.type.indexOf("tag-name");)u=c.stepBackward();if(!u)return;var d=u.value,g=c.getCurrentTokenRow();if(!(u=c.stepBackward())||-1!==u.type.indexOf("end-tag"))return;if(this.voidElements&&!this.voidElements[d]||!this.voidElements){var m=o.getTokenAt(s.row,s.column+1),p=(l=o.getLine(g),this.$getIndent(l)),h=p+o.getTabString();return m&&"</"===m.value?{text:"\n"+h+"\n"+p,selection:[1,h.length,1,h.length]}:{text:"\n"+h}}}}}))};o.inherits(s,r),t.XmlBehaviour=s})),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],(function(e,t,n){"use strict";var o=e("../../lib/oop"),r=e("../../token_iterator").TokenIterator,a=e("../behaviour/cstyle").CstyleBehaviour,i=e("../behaviour/xml").XmlBehaviour,s=function(){var e=new i({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(e),this.inherit(a),this.add("autoclosing-fragment","insertion",(function(e,t,n,o,a){if(">"==a){var i=n.getSelectionRange().start,s=new r(o,i.row,i.column),l=s.getCurrentToken()||s.stepBackward();if(!l)return;if("<"==l.value)return{text:"></>",selection:[1,1]}}}))};o.inherits(s,a),t.JavaScriptBehaviour=s})),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var o=e("../../lib/oop"),r=e("../../range").Range,a=e("./fold_mode").FoldMode,i=t.FoldMode=function(e,t){a.call(this),this.voidElements=e||{},this.optionalEndTags=o.mixin({},this.voidElements),t&&o.mixin(this.optionalEndTags,t)};o.inherits(i,a);var s=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function l(e,t){return e&&e.type&&e.type.lastIndexOf(t+".xml")>-1}(function(){this.getFoldWidget=function(e,t,n){var o=this._getFirstTagInLine(e,n);return o?o.closing||!o.tagName&&o.selfClosing?"markbeginend"===t?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(e,n,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(e,n)},this.getCommentFoldWidget=function(e,t){return/comment/.test(e.getState(t))&&/<!-/.test(e.getLine(t))?"start":""},this._getFirstTagInLine=function(e,t){for(var n=e.getTokens(t),o=new s,r=0;r<n.length;r++){var a=n[r];if(l(a,"tag-open")){if(o.end.column=o.start.column+a.value.length,o.closing=l(a,"end-tag-open"),!(a=n[++r]))return null;if(o.tagName=a.value,""===a.value){if(!(a=n[++r]))return null;o.tagName=a.value}for(o.end.column+=a.value.length,r++;r<n.length;r++)if(a=n[r],o.end.column+=a.value.length,l(a,"tag-close")){o.selfClosing="/>"==a.value;break}return o}if(l(a,"tag-close"))return o.selfClosing="/>"==a.value,o;o.start.column+=a.value.length}return null},this._findEndTagInLine=function(e,t,n,o){for(var r=e.getTokens(t),a=0,i=0;i<r.length;i++){var s=r[i];if(!((a+=s.value.length)<o-1)&&l(s,"end-tag-open")&&(l(s=r[i+1],"tag-name")&&""===s.value&&(s=r[i+2]),s&&s.value==n))return!0}return!1},this.getFoldWidgetRange=function(e,t,n){if(!this._getFirstTagInLine(e,n))return this.getCommentFoldWidget(e,n)&&e.getCommentFoldRange(n,e.getLine(n).length);var o=e.getMatchingTags({row:n,column:0});return o?new r(o.openTag.end.row,o.openTag.end.column,o.closeTag.start.row,o.closeTag.start.column):void 0}}).call(i.prototype)})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var o=e("../../lib/oop"),r=e("../../range").Range,a=e("./fold_mode").FoldMode,i=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};o.inherits(i,a),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var o=e.getLine(n);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var r=this._getFoldWidgetBase(e,t,n);return!r&&this.startRegionRe.test(o)?"start":r},this.getFoldWidgetRange=function(e,t,n,o){var r,a=e.getLine(n);if(this.startRegionRe.test(a))return this.getCommentRegionBlock(e,a,n);if(r=a.match(this.foldingStartMarker)){var i=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,i);var s=e.getCommentFoldRange(n,i+r[0].length,1);return s&&!s.isMultiLine()&&(o?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t&&(r=a.match(this.foldingStopMarker))){i=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,i):e.getCommentFoldRange(n,i,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),o=n.search(/\S/),a=t,i=n.length,s=t+=1,l=e.getLength();++t<l;){var c=(n=e.getLine(t)).search(/\S/);if(-1!==c){if(o>c)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=a)break;if(u.isMultiLine())t=u.end.row;else if(o==c)break}s=t}}return new r(a,i,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var o=t.search(/\s*$/),a=e.getLength(),i=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<a;){t=e.getLine(n);var c=s.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(n>i)return new r(i,o,n,t.length)}}.call(i.prototype)})),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var o=e("../../lib/oop"),r=e("./xml").FoldMode,a=e("./cstyle").FoldMode,i=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end))),this.xmlFoldMode=new r};o.inherits(i,a),function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var o=this.getFoldWidgetBase(e,t,n);return o||this.xmlFoldMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n,o){var r=this.getFoldWidgetRangeBase(e,t,n,o);return r||this.xmlFoldMode.getFoldWidgetRange(e,t,n)}}.call(i.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],(function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("./text").Mode,a=e("./javascript_highlight_rules").JavaScriptHighlightRules,i=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,l=e("./behaviour/javascript").JavaScriptBehaviour,c=e("./folding/javascript").FoldMode,u=function(){this.HighlightRules=a,this.$outdent=new i,this.$behaviour=new l,this.foldingRules=new c};o.inherits(u,r),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(e,t,n){var o=this.$getIndent(t),r=this.getTokenizer().getLineTokens(t,e),a=r.tokens,i=r.state;if(a.length&&"comment"==a[a.length-1].type)return o;if("start"==e||"no_regex"==e)t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/)&&(o+=n);else if("doc-start"==e&&("start"==i||"no_regex"==i))return"";return o},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new s(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(u.prototype),t.Mode=u})),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var o=e("../lib/oop"),r=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),a=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",i=t.supportFunction="rgb|rgba|url|attr|counter|counters",s=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",d=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",g=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",m=function(){var e=this.createKeywordMapper({"support.function":i,"support.constant":s,"support.type":a,"support.constant.color":l,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:u},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+u+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:d},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:g},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};o.inherits(m,r),t.CssHighlightRules=m})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";var o={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},r=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));o.hasOwnProperty(n)||(o[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,o){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var r=t.getLine(n.row).substr(0,n.column),a=/\([^)]*$/.test(r);return a&&(r=r.substr(r.lastIndexOf("(")+1)),/:[^;]+$/.test(r)?(/([\w\-]+):[^:]*$/.test(r),this.getPropertyValueCompletions(e,t,n,o)):this.getPropertyCompletions(e,t,n,o,a)}return[]},this.getPropertyCompletions=function(e,t,n,r,a){return a=a||!1,Object.keys(o).map((function(e){return{caption:e,snippet:e+": $0"+(a?"":";"),meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,n,r){var a=t.getLine(n.row).substr(0,n.column),i=(/([\w\-]+):[^:]*$/.exec(a)||{})[1];if(!i)return[];var s=[];return i in o&&"object"==typeof o[i]&&(s=Object.keys(o[i])),s.map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))}}).call(r.prototype),t.CssCompletions=r})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var o=e("../../lib/oop"),r=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),a=e("../../token_iterator").TokenIterator,i=function(){this.inherit(r),this.add("colon","insertion",(function(e,t,n,o,r){if(":"===r&&n.selection.isEmpty()){var i=n.getCursorPosition(),s=new a(o,i.row,i.column),l=s.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=s.stepBackward()),l&&"support.type"===l.type){var c=o.doc.getLine(i.row);if(":"===c.substring(i.column,i.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(c.substring(i.column)))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,o,r){var i=o.doc.getTextRange(r);if(!r.isMultiLine()&&":"===i){var s=n.getCursorPosition(),l=new a(o,s.row,s.column),c=l.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=l.stepBackward()),c&&"support.type"===c.type)if(";"===o.doc.getLine(r.start.row).substring(r.end.column,r.end.column+1))return r.end.column++,r}})),this.add("semicolon","insertion",(function(e,t,n,o,r){if(";"===r&&n.selection.isEmpty()){var a=n.getCursorPosition();if(";"===o.doc.getLine(a.row).substring(a.column,a.column+1))return{text:"",selection:[1,1]}}})),this.add("!important","insertion",(function(e,t,n,o,r){if("!"===r&&n.selection.isEmpty()){var a=n.getCursorPosition(),i=o.doc.getLine(a.row);if(/^\s*(;|}|$)/.test(i.substring(a.column)))return{text:"!important",selection:[10,10]}}}))};o.inherits(i,r),t.CssBehaviour=i})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("./text").Mode,a=e("./css_highlight_rules").CssHighlightRules,i=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,u=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=a,this.$outdent=new i,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new u};o.inherits(d,r),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var o=this.$getIndent(t),r=this.getTokenizer().getLineTokens(t,e).tokens;return r.length&&"comment"==r[r.length-1].type||t.match(/^.*\{\s*$/)&&(o+=n),o},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,o){return this.$completer.getCompletions(e,t,n,o)},this.createWorker=function(e){var t=new s(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(d.prototype),t.Mode=d})),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("./text_highlight_rules").TextHighlightRules,a=function(e){var t="[_:a-zA-ZÀ-][-_:.a-zA-Z0-9À-]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+t+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:t},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+t+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"--\x3e",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+t+":)?"+t+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:t},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===a&&this.normalizeRules()};(function(){this.embedTagRules=function(e,t,n){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(<)("+n+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:t+"start"}]}),this.$rules[n+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(e,t,n){return n.splice(0),this.token}}],this.embedRules(e,t,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(</)("+n+"(?=\\s|>|$))",next:n+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(r.prototype),o.inherits(a,r),t.XmlHighlightRules=a})),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],(function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("../lib/lang"),a=e("./css_highlight_rules").CssHighlightRules,i=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./xml_highlight_rules").XmlHighlightRules,l=r.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),c=function(){s.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(e,t){var n=l[t];return["meta.tag.punctuation."+("<"==e?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(a,"css-","style"),this.embedTagRules(new i({jsx:!1}).getRules(),"js-","script"),this.constructor===c&&this.normalizeRules()};o.inherits(c,s),t.HtmlHighlightRules=c})),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var o=e("../../lib/oop"),r=e("./fold_mode").FoldMode,a=t.FoldMode=function(e,t){this.defaultMode=e,this.subModes=t};o.inherits(a,r),function(){this.$getMode=function(e){for(var t in"string"!=typeof e&&(e=e[0]),this.subModes)if(0===e.indexOf(t))return this.subModes[t];return null},this.$tryMode=function(e,t,n,o){var r=this.$getMode(e);return r?r.getFoldWidget(t,n,o):""},this.getFoldWidget=function(e,t,n){return this.$tryMode(e.getState(n-1),e,t,n)||this.$tryMode(e.getState(n),e,t,n)||this.defaultMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n){var o=this.$getMode(e.getState(n-1));return o&&o.getFoldWidget(e,t,n)||(o=this.$getMode(e.getState(n))),o&&o.getFoldWidget(e,t,n)||(o=this.defaultMode),o.getFoldWidgetRange(e,t,n)}}.call(a.prototype)})),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var o=e("../../lib/oop"),r=e("./mixed").FoldMode,a=e("./xml").FoldMode,i=e("./cstyle").FoldMode,s=t.FoldMode=function(e,t){r.call(this,new a(e,t),{"js-":new i,"css-":new i})};o.inherits(s,r)})),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],(function(e,t,n){"use strict";var o=e("../token_iterator").TokenIterator,r=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"].concat(["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"]),a={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},i=Object.keys(a);function s(e,t){return e.type.lastIndexOf(t+".xml")>-1}function l(e,t){for(var n=new o(e,t.row,t.column),r=n.getCurrentToken();r&&!s(r,"tag-name");)r=n.stepBackward();if(r)return r.value}var c=function(){};(function(){this.getCompletions=function(e,t,n,o){var r=t.getTokenAt(n.row,n.column);if(!r)return[];if(s(r,"tag-name")||s(r,"tag-open")||s(r,"end-tag-open"))return this.getTagCompletions(e,t,n,o);if(s(r,"tag-whitespace")||s(r,"attribute-name"))return this.getAttributeCompletions(e,t,n,o);if(s(r,"attribute-value"))return this.getAttributeValueCompletions(e,t,n,o);var a=t.getLine(n.row).substr(0,n.column);return/&[a-z]*$/i.test(a)?this.getHTMLEntityCompletions(e,t,n,o):[]},this.getTagCompletions=function(e,t,n,o){return i.map((function(e){return{value:e,meta:"tag",score:1e6}}))},this.getAttributeCompletions=function(e,t,n,o){var i=l(t,n);if(!i)return[];var s=r;return i in a&&(s=s.concat(Object.keys(a[i]))),s.map((function(e){return{caption:e,snippet:e+'="$0"',meta:"attribute",score:1e6}}))},this.getAttributeValueCompletions=function(e,t,n,r){var i=l(t,n),c=function(e,t){for(var n=new o(e,t.row,t.column),r=n.getCurrentToken();r&&!s(r,"attribute-name");)r=n.stepBackward();if(r)return r.value}(t,n);if(!i)return[];var u=[];return i in a&&c in a[i]&&"object"==typeof a[i][c]&&(u=Object.keys(a[i][c])),u.map((function(e){return{caption:e,snippet:e,meta:"attribute value",score:1e6}}))},this.getHTMLEntityCompletions=function(e,t,n,o){return["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"].map((function(e){return{caption:e,snippet:e,meta:"html entity",score:1e6}}))}}).call(c.prototype),t.HtmlCompletions=c})),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],(function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("../lib/lang"),a=e("./text").Mode,i=e("./javascript").Mode,s=e("./css").Mode,l=e("./html_highlight_rules").HtmlHighlightRules,c=e("./behaviour/xml").XmlBehaviour,u=e("./folding/html").FoldMode,d=e("./html_completions").HtmlCompletions,g=e("../worker/worker_client").WorkerClient,m=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],p=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],h=function(e){this.fragmentContext=e&&e.fragmentContext,this.HighlightRules=l,this.$behaviour=new c,this.$completer=new d,this.createModeDelegates({"js-":i,"css-":s}),this.foldingRules=new u(this.voidElements,r.arrayToMap(p))};o.inherits(h,a),function(){this.blockComment={start:"\x3c!--",end:"--\x3e"},this.voidElements=r.arrayToMap(m),this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.getCompletions=function(e,t,n,o){return this.$completer.getCompletions(e,t,n,o)},this.createWorker=function(e){if(this.constructor==h){var t=new g(["ace"],"ace/mode/html_worker","Worker");return t.attachToDocument(e.getDocument()),this.fragmentContext&&t.call("setOptions",[{context:this.fragmentContext}]),t.on("error",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}.call(h.prototype),t.Mode=h})),ace.define("ace/mode/twig_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/html_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var o=e("../lib/oop"),r=(e("../lib/lang"),e("./html_highlight_rules").HtmlHighlightRules),a=e("./text_highlight_rules").TextHighlightRules,i=function(){r.call(this);var e="autoescape|block|do|embed|extends|filter|flush|for|from|if|import|include|macro|sandbox|set|spaceless|use|verbatim";e=e+"|end"+e.replace(/\|/g,"|end");var t=this.createKeywordMapper({"keyword.control.twig":e,"support.function.twig":["abs|batch|capitalize|convert_encoding|date|date_modify|default|e|escape|first|format|join|json_encode|keys|last|length|lower|merge|nl2br|number_format|raw|replace|reverse|slice|sort|split|striptags|title|trim|upper|url_encode","attribute|constant|cycle|date|dump|parent|random|range|template_from_string","constant|divisibleby|sameas|defined|empty|even|iterable|odd"].join("|"),"keyword.operator.twig":"b-and|b-xor|b-or|in|is|and|or|not","constant.language.twig":"null|none|true|false"},"identifier");for(var n in this.$rules)this.$rules[n].unshift({token:"variable.other.readwrite.local.twig",regex:"\\{\\{-?",push:"twig-start"},{token:"meta.tag.twig",regex:"\\{%-?",push:"twig-start"},{token:"comment.block.twig",regex:"\\{#-?",push:"twig-comment"});this.$rules["twig-comment"]=[{token:"comment.block.twig",regex:".*-?#\\}",next:"pop"}],this.$rules["twig-start"]=[{token:"variable.other.readwrite.local.twig",regex:"-?\\}\\}",next:"pop"},{token:"meta.tag.twig",regex:"-?%\\}",next:"pop"},{token:"string",regex:"'",next:"twig-qstring"},{token:"string",regex:'"',next:"twig-qqstring"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:t,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator.assignment",regex:"=|~"},{token:"keyword.operator.comparison",regex:"==|!=|<|>|>=|<=|==="},{token:"keyword.operator.arithmetic",regex:"\\+|-|/|%|//|\\*|\\*\\*"},{token:"keyword.operator.other",regex:"\\.\\.|\\|"},{token:"punctuation.operator",regex:/\?|:|,|;|\./},{token:"paren.lparen",regex:/[\[\({]/},{token:"paren.rparen",regex:/[\])}]/},{token:"text",regex:"\\s+"}],this.$rules["twig-qqstring"]=[{token:"constant.language.escape",regex:/\\[\\"$#ntr]|#{[^"}]*}/},{token:"string",regex:'"',next:"twig-start"},{defaultToken:"string"}],this.$rules["twig-qstring"]=[{token:"constant.language.escape",regex:/\\[\\'ntr]}/},{token:"string",regex:"'",next:"twig-start"},{defaultToken:"string"}],this.normalizeRules()};o.inherits(i,a),t.TwigHighlightRules=i})),ace.define("ace/mode/twig",["require","exports","module","ace/lib/oop","ace/mode/html","ace/mode/twig_highlight_rules","ace/mode/matching_brace_outdent"],(function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("./html").Mode,a=e("./twig_highlight_rules").TwigHighlightRules,i=e("./matching_brace_outdent").MatchingBraceOutdent,s=function(){r.call(this),this.HighlightRules=a,this.$outdent=new i};o.inherits(s,r),function(){this.blockComment={start:"{#",end:"#}"},this.getNextLineIndent=function(e,t,n){var o=this.$getIndent(t),r=this.getTokenizer().getLineTokens(t,e),a=r.tokens;r.state;if(a.length&&"comment"==a[a.length-1].type)return o;"start"==e&&(t.match(/^.*[\{\(\[]\s*$/)&&(o+=n));return o},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.$id="ace/mode/twig"}.call(s.prototype),t.Mode=s})),ace.require(["ace/mode/twig"],(function(t){e&&(e.exports=t)}))}}]);
|